Tealium_Tags - Version 0.4.4

Version Notes

0.4.4 - strip commas from all dollar values
0.4.3 - fix for bad array on order page
0.4.2 - added simple discount array
0.4.0 - fix for individual discounts and number formats
0.3.1 - fix for configurable product arrays
0.3.0 - fix for missing support message
0.2.0 - fix for product page tag syntax
0.1.0 - initial release

Download this release

Release Info

Developer Tealium Inc.
Extension Tealium_Tags
Version 0.4.4
Comparing to
See all releases


Code changes from version 0.4.3 to 0.4.4

app/design/frontend/base/default/template/tealium_tags/catalogsearch_result_index.phtml CHANGED
@@ -17,6 +17,6 @@ if (!$helper->isEnabled($store)) {
17
  page_name: "search results",
18
  page_type: "search",
19
  search_results: "<?php echo $this->getResultCount(); ?>",
20
- search_keyword: "<?php echo $this->helper('catalogsearch')->getEscapedQueryText(); ?>"
21
  };
22
  </script>
17
  page_name: "search results",
18
  page_type: "search",
19
  search_results: "<?php echo $this->getResultCount(); ?>",
20
+ search_keyword: ["<?php echo $this->helper('catalogsearch')->getEscapedQueryText(); ?>"]
21
  };
22
  </script>
app/design/frontend/base/default/template/tealium_tags/checkout_cart_index.phtml CHANGED
@@ -19,8 +19,8 @@ foreach ($quote->getAllVisibleItems() as $item) {
19
  $ids[] = $item->getProductId();
20
  $skus[] = $item->getSku();
21
  $names[] = $item->getName();
22
- $qtys[] = number_format($item->getQty(),0);
23
- $prices[] = number_format($item->getPrice(),2);
24
  }
25
 
26
  ?>
@@ -38,4 +38,4 @@ foreach ($quote->getAllVisibleItems() as $item) {
38
  product_quantity: ["<?php echo implode('","', $qtys) ?>"],
39
  product_list_price: ["<?php echo implode('","', $prices) ?>"]
40
  };
41
- </script>
19
  $ids[] = $item->getProductId();
20
  $skus[] = $item->getSku();
21
  $names[] = $item->getName();
22
+ $qtys[] = number_format($item->getQty(),0,".","");
23
+ $prices[] = number_format($item->getPrice(),2,".","");
24
  }
25
 
26
  ?>
38
  product_quantity: ["<?php echo implode('","', $qtys) ?>"],
39
  product_list_price: ["<?php echo implode('","', $prices) ?>"]
40
  };
41
+ </script>
app/design/frontend/base/default/template/tealium_tags/checkout_onepage.phtml CHANGED
@@ -19,8 +19,8 @@ foreach ($quote->getAllVisibleItems() as $item) {
19
  $ids[] = $item->getProductId();
20
  $skus[] = $item->getSku();
21
  $names[] = $item->getName();
22
- $qtys[] = number_format($item->getQty(),0);
23
- $prices[] = number_format($item->getPrice(),2);
24
  }
25
 
26
  ?>
@@ -38,4 +38,4 @@ foreach ($quote->getAllVisibleItems() as $item) {
38
  product_quantity: ["<?php echo implode('","', $qtys) ?>"],
39
  product_list_price: ["<?php echo implode('","', $prices) ?>"]
40
  };
41
- </script>
19
  $ids[] = $item->getProductId();
20
  $skus[] = $item->getSku();
21
  $names[] = $item->getName();
22
+ $qtys[] = number_format($item->getQty(),0,".","");
23
+ $prices[] = number_format($item->getPrice(),2,".","");
24
  }
25
 
26
  ?>
38
  product_quantity: ["<?php echo implode('","', $qtys) ?>"],
39
  product_list_price: ["<?php echo implode('","', $prices) ?>"]
40
  };
41
+ </script>
app/design/frontend/base/default/template/tealium_tags/checkout_success.phtml CHANGED
@@ -22,15 +22,15 @@ foreach($order->getAllVisibleItems() as $item) {
22
  $ids[] = $item->getProductId();
23
  $skus[] = $item->getSku();
24
  $names[] = $item->getName();
25
- $qtys[] = number_format($item->getQtyOrdered(),0);
26
- $prices[] = number_format($item->getPrice(),2);
27
- $discount = number_format($item->getDiscountAmount(),2);
28
  $discounts[] = $discount;
29
  $applied_rules = explode(",", $item->getAppliedRuleIds());
30
  $discount_object = array();
31
  foreach ($applied_rules as $rule) {
32
- $quantity = number_format(Mage::getModel('salesrule/rule')->load($rule)->getDiscountQty(),0);
33
- $amount = number_format(Mage::getModel('salesrule/rule')->load($rule)->getDiscountAmount(),2);
34
  $type = Mage::getModel('salesrule/rule')->load($rule)->getSimpleAction();
35
  $discount_object[] = "{\"rule\":\"$rule\",\"quantity\":\"$quantity\",\"amount\":\"$amount\",\"type\":\"$type\"}";
36
  }
@@ -57,14 +57,14 @@ foreach($order->getAllVisibleItems() as $item) {
57
  product_quantity: ["<?php echo implode('","', $qtys) ?>"],
58
  product_list_price: ["<?php echo implode('","', $prices) ?>"],
59
  order_id: "<?php echo $order->getIncrementId(); ?>",
60
- order_subtotal: "<?php echo number_format($order->getSubtotal(),2); ?>",
61
  order_payment_type: "<?php echo $order->getPayment() ? $order->getPayment()->getMethodInstance()->getTitle() : 'unknown'; ?>",
62
- order_total: "<?php echo number_format($order->getGrandTotal(),2); ?>",
63
  customer_email: "<?php echo $order->getCustomerEmail(); ?>",
64
- order_discount: "<?php echo number_format($order->getDiscountAmount(),2); ?>",
65
- order_shipping: "<?php echo number_format($order->getShippingAmount(),2); ?>",
66
- order_tax: "<?php echo number_format($order->getTaxAmount(),2); ?>",
67
- order_currency: "<?php echo number_format($order->getOrderCurrencyCode(),2); ?>"
68
  };
69
  </script>
70
 
22
  $ids[] = $item->getProductId();
23
  $skus[] = $item->getSku();
24
  $names[] = $item->getName();
25
+ $qtys[] = number_format($item->getQtyOrdered(),0,".","");
26
+ $prices[] = number_format($item->getPrice(),2,".","");
27
+ $discount = number_format($item->getDiscountAmount(),2,".","");
28
  $discounts[] = $discount;
29
  $applied_rules = explode(",", $item->getAppliedRuleIds());
30
  $discount_object = array();
31
  foreach ($applied_rules as $rule) {
32
+ $quantity = number_format(Mage::getModel('salesrule/rule')->load($rule)->getDiscountQty(),0,".","");
33
+ $amount = number_format(Mage::getModel('salesrule/rule')->load($rule)->getDiscountAmount(),2,".","");
34
  $type = Mage::getModel('salesrule/rule')->load($rule)->getSimpleAction();
35
  $discount_object[] = "{\"rule\":\"$rule\",\"quantity\":\"$quantity\",\"amount\":\"$amount\",\"type\":\"$type\"}";
36
  }
57
  product_quantity: ["<?php echo implode('","', $qtys) ?>"],
58
  product_list_price: ["<?php echo implode('","', $prices) ?>"],
59
  order_id: "<?php echo $order->getIncrementId(); ?>",
60
+ order_subtotal: "<?php echo number_format($order->getSubtotal(),2,".",""); ?>",
61
  order_payment_type: "<?php echo $order->getPayment() ? $order->getPayment()->getMethodInstance()->getTitle() : 'unknown'; ?>",
62
+ order_total: "<?php echo number_format($order->getGrandTotal(),2,".",""); ?>",
63
  customer_email: "<?php echo $order->getCustomerEmail(); ?>",
64
+ order_discount: "<?php echo number_format($order->getDiscountAmount(),2,".",""); ?>",
65
+ order_shipping: "<?php echo number_format($order->getShippingAmount(),2,".",""); ?>",
66
+ order_tax: "<?php echo number_format($order->getTaxAmount(),2,".",""); ?>",
67
+ order_currency: "<?php echo $order->getOrderCurrencyCode(); ?>"
68
  };
69
  </script>
70
 
app/design/frontend/base/default/template/tealium_tags/product_send.phtml CHANGED
@@ -26,7 +26,7 @@ $_category = Mage::getModel('catalog/category')->load($_category_id);;
26
  product_name: ["<?php echo $_product->getName(); ?>"],
27
  product_brand: ["<?php echo $_product->getBrand(); ?>"],
28
  product_category: ["<?php echo $_category ? $_category->getName() : 'no_category'; ?>"],
29
- <?php if ($_product->getSpecialPrice()!='') echo 'product_unit_price: ["'.number_format($_product->getSpecialPrice(),2) .'"],'; ?>
30
- product_list_price: ["<?php echo number_format($_product->getPrice(),2); ?>"]
31
  };
32
- </script>
26
  product_name: ["<?php echo $_product->getName(); ?>"],
27
  product_brand: ["<?php echo $_product->getBrand(); ?>"],
28
  product_category: ["<?php echo $_category ? $_category->getName() : 'no_category'; ?>"],
29
+ <?php if ($_product->getSpecialPrice()!='') echo 'product_unit_price: ["'.number_format($_product->getSpecialPrice(),2,".","") .'"],'; ?>
30
+ product_list_price: ["<?php echo number_format($_product->getPrice(),2,".",""); ?>"]
31
  };
32
+ </script>
app/design/frontend/base/default/template/tealium_tags/tag_product_list.phtml CHANGED
@@ -17,6 +17,6 @@ if (!$helper->isEnabled($store)) {
17
  page_name: "<?php echo $this->getLayout()->getBlock('head')->getTitle(); ?>",
18
  page_type: "tag product list",
19
  search_results: "<?php echo $this->getResultCount(); ?>",
20
- search_keyword: "<?php echo $this->getTag()->getName(); ?>"
21
  };
22
  </script>
17
  page_name: "<?php echo $this->getLayout()->getBlock('head')->getTitle(); ?>",
18
  page_type: "tag product list",
19
  search_results: "<?php echo $this->getResultCount(); ?>",
20
+ search_keyword: ["<?php echo $this->getTag()->getName(); ?>"]
21
  };
22
  </script>
package.xml CHANGED
@@ -1,24 +1,25 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tealium_Tags</name>
4
- <version>0.4.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Tealum tag management solution</summary>
10
  <description>Tealum tag management solution extension injects the Tealium javascript into your magento pages, and on specific pages injects special javascript so that you can access specific data elements such as product, category or cart data.</description>
11
- <notes>0.4.3 - fix for bad array on order page&#xD;
 
12
  0.4.2 - added simple discount array&#xD;
13
  0.4.0 - fix for individual discounts and number formats&#xD;
14
  0.3.1 - fix for configurable product arrays&#xD;
15
  0.3.0 - fix for missing support message&#xD;
16
  0.2.0 - fix for product page tag syntax&#xD;
17
  0.1.0 - initial release</notes>
18
- <authors><author><name>Tealium</name><user>Tealium</user><email>adam.corey@tealium.com</email></author></authors>
19
- <date>2013-11-20</date>
20
- <time>18:03:43</time>
21
- <contents><target name="magelocal"><dir name="Tealium"><dir name="Tags"><dir name="Helper"><file name="Data.php" hash="13a0233e34f932751381744f835f9a1d"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e6ec5ba973cdb97a9925f02575392865"/><file name="config.xml" hash="c736b55d5e3cc05cbf7bc27fe7a851e5"/><file name="system.xml" hash="417e95d1e84d9fc2f6d1886d308501b8"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tealium_Tags.xml" hash="3d6843433dffefb4600573950a83e765"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tealium_tags.xml" hash="8cc1b6255886de56c9a31ee63524f618"/></dir><dir name="template"><dir name="tealium_tags"><file name="base.phtml" hash="f09cb5b4e9b123e733e18164fe046673"/><file name="catalog_product_compare_index.phtml" hash="9383606f64e5a5918a42dade26427b82"/><file name="catalogsearch_advanced_result_index.phtml" hash="ae59d3320276e4b8697811317d913400"/><file name="catalogsearch_result_index.phtml" hash="de8a77ac81f67d05d24a174caebf5d7f"/><file name="catalogsearch_term_popular.phtml" hash="a181fe2776e1accee8b6ccb5fce43e89"/><file name="category.phtml" hash="54a9cf9d39d812fde48250dba5ff3b03"/><file name="checkout_cart_index.phtml" hash="7a141153bf2541c8773c9e02d8adedb9"/><file name="checkout_onepage.phtml" hash="c4e3f8a6f58ec14ee9af6bdcf12799c5"/><file name="checkout_success.phtml" hash="1c6a7434063569048dcf6be5cdb5fa0b"/><file name="cms.phtml" hash="01f737af394efe30f12747898c180e04"/><file name="customer.phtml" hash="6c31ee97cab35adfcc8467df0d099d47"/><file name="generic.phtml" hash="9581dfa0fa958b71e5e01391860ec2b7"/><file name="guest_sales.phtml" hash="727f38f359cf83d979cf83ef71fe75a5"/><file name="product.phtml" hash="0232bd6498afc204a26796bfc0f0e23f"/><file name="product_send.phtml" hash="5fef383640350706dbe195775c6cb6cc"/><file name="seo.phtml" hash="45d794ab2ce0bf3a9c7568203d3106e7"/><file name="tag_list_index.phtml" hash="a62362c42fc1639c63e7b940b13d4119"/><file name="tag_product_list.phtml" hash="c555519f13540a7cd68966ee0770d85d"/><file name=".checkout_success.phtml.swp" hash="9b57a7ce9a428a02d446520e721f9d27"/></dir></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tealium_Tags</name>
4
+ <version>0.4.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Tealum tag management solution</summary>
10
  <description>Tealum tag management solution extension injects the Tealium javascript into your magento pages, and on specific pages injects special javascript so that you can access specific data elements such as product, category or cart data.</description>
11
+ <notes>0.4.4 - strip commas from all dollar values&#xD;
12
+ 0.4.3 - fix for bad array on order page&#xD;
13
  0.4.2 - added simple discount array&#xD;
14
  0.4.0 - fix for individual discounts and number formats&#xD;
15
  0.3.1 - fix for configurable product arrays&#xD;
16
  0.3.0 - fix for missing support message&#xD;
17
  0.2.0 - fix for product page tag syntax&#xD;
18
  0.1.0 - initial release</notes>
19
+ <authors><author><name>Tealium</name><user>Tealium</user><email>patrick.mcwilliams@tealium.com</email></author></authors>
20
+ <date>2014-01-31</date>
21
+ <time>18:18:15</time>
22
+ <contents><target name="magelocal"><dir name="Tealium"><dir name="Tags"><dir name="Helper"><file name="Data.php" hash="13a0233e34f932751381744f835f9a1d"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e6ec5ba973cdb97a9925f02575392865"/><file name="config.xml" hash="c736b55d5e3cc05cbf7bc27fe7a851e5"/><file name="system.xml" hash="417e95d1e84d9fc2f6d1886d308501b8"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tealium_Tags.xml" hash="3d6843433dffefb4600573950a83e765"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tealium_tags.xml" hash="8cc1b6255886de56c9a31ee63524f618"/></dir><dir name="template"><dir name="tealium_tags"><file name="base.phtml" hash="f09cb5b4e9b123e733e18164fe046673"/><file name="catalog_product_compare_index.phtml" hash="9383606f64e5a5918a42dade26427b82"/><file name="catalogsearch_advanced_result_index.phtml" hash="ae59d3320276e4b8697811317d913400"/><file name="catalogsearch_result_index.phtml" hash="c2544c41c935fc3ac484bb4a7879b500"/><file name="catalogsearch_term_popular.phtml" hash="a181fe2776e1accee8b6ccb5fce43e89"/><file name="category.phtml" hash="54a9cf9d39d812fde48250dba5ff3b03"/><file name="checkout_cart_index.phtml" hash="46a4ee6d2a99cb7a597d09697badcb75"/><file name="checkout_onepage.phtml" hash="f650661fa7c60874801e892bbbf148bc"/><file name="checkout_success.phtml" hash="6974a3fbc52a3e3183eb4dd23963d719"/><file name="cms.phtml" hash="01f737af394efe30f12747898c180e04"/><file name="customer.phtml" hash="6c31ee97cab35adfcc8467df0d099d47"/><file name="generic.phtml" hash="9581dfa0fa958b71e5e01391860ec2b7"/><file name="guest_sales.phtml" hash="727f38f359cf83d979cf83ef71fe75a5"/><file name="product.phtml" hash="0232bd6498afc204a26796bfc0f0e23f"/><file name="product_send.phtml" hash="3e6399f542fa5d07556711292723909f"/><file name="seo.phtml" hash="45d794ab2ce0bf3a9c7568203d3106e7"/><file name="tag_list_index.phtml" hash="a62362c42fc1639c63e7b940b13d4119"/><file name="tag_product_list.phtml" hash="65e7aee58805bf015f02e9dfdb42b6c5"/><file name=".checkout_success.phtml.swp" hash="9b57a7ce9a428a02d446520e721f9d27"/></dir></dir></dir></dir></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
25
  </package>