yireo_googletagmanager - Version 1.3.10

Version Notes

No notes

Download this release

Release Info

Developer Yireo
Extension yireo_googletagmanager
Version 1.3.10
Comparing to
See all releases


Code changes from version 1.3.9 to 1.3.10

app/code/community/Yireo/GoogleTagManager/etc/config.xml CHANGED
@@ -12,7 +12,7 @@
12
  <config>
13
  <modules>
14
  <Yireo_GoogleTagManager>
15
- <version>1.3.9</version>
16
  </Yireo_GoogleTagManager>
17
  </modules>
18
 
12
  <config>
13
  <modules>
14
  <Yireo_GoogleTagManager>
15
+ <version>1.3.10</version>
16
  </Yireo_GoogleTagManager>
17
  </modules>
18
 
app/design/frontend/base/default/template/googletagmanager/category.phtml CHANGED
@@ -46,6 +46,6 @@ if ($this->isEnabled()) {
46
  }
47
 
48
  $this->addAttribute('categoryProducts', $categoryProducts);
49
- $this->getHelper()->addEcommerceData('impressions', $categoryProducts);
50
  }
51
- }
46
  }
47
 
48
  $this->addAttribute('categoryProducts', $categoryProducts);
49
+ $this->getModuleHelper()->addEcommerceData('impressions', $categoryProducts);
50
  }
51
+ }
app/design/frontend/base/default/template/googletagmanager/product.phtml CHANGED
@@ -20,7 +20,7 @@ if ($this->isEnabled()) {
20
  $this->addAttribute('productPrice', $product->getPrice());
21
 
22
  $categoryName = $product->getCategory()->getName();
23
- $this->getHelper()->addEcommerceData('actionField', array('list' => $categoryName));
24
 
25
  $productData = array(
26
  'name' => $product->getName(),
@@ -29,6 +29,6 @@ if ($this->isEnabled()) {
29
  'brand' => $product->getManufacturer(),
30
  'category' => $categoryName,
31
  );
32
- $this->getHelper()->addEcommerceData('detail', array($productData));
33
  }
34
  }
20
  $this->addAttribute('productPrice', $product->getPrice());
21
 
22
  $categoryName = $product->getCategory()->getName();
23
+ $this->getModuleHelper()->addEcommerceData('actionField', array('list' => $categoryName));
24
 
25
  $productData = array(
26
  'name' => $product->getName(),
29
  'brand' => $product->getManufacturer(),
30
  'category' => $categoryName,
31
  );
32
+ $this->getModuleHelper()->addEcommerceData('detail', array($productData));
33
  }
34
  }
app/design/frontend/base/default/template/googletagmanager/product_addtocart.phtml CHANGED
@@ -19,7 +19,7 @@ $product = $this->getProduct();
19
  $data = array(
20
  'event' => 'addToCart',
21
  'ecommerce' => array(
22
- 'currencyCode' => $this->getHelper()->getCurrencyCode(),
23
  'click' => array(
24
  'products' => array(
25
  array(
@@ -32,4 +32,4 @@ $data = array(
32
  ),
33
  );
34
  ?>
35
- dataLayer.push(<?php echo $this->jsonEncode($data); ?>);
19
  $data = array(
20
  'event' => 'addToCart',
21
  'ecommerce' => array(
22
+ 'currencyCode' => $this->getModuleHelper()->getCurrencyCode(),
23
  'click' => array(
24
  'products' => array(
25
  array(
32
  ),
33
  );
34
  ?>
35
+ dataLayer.push(<?php echo $this->jsonEncode($data); ?>);
app/design/frontend/base/default/template/googletagmanager/product_removefromcart.phtml CHANGED
@@ -19,7 +19,7 @@ $product = $this->getProduct();
19
  $data = array(
20
  'event' => 'removeFromCart',
21
  'ecommerce' => array(
22
- 'currencyCode' => $this->getHelper()->getCurrencyCode(),
23
  'click' => array(
24
  'products' => array(
25
  array(
@@ -32,4 +32,4 @@ $data = array(
32
  ),
33
  );
34
  ?>
35
- dataLayer.push(<?php echo $this->jsonEncode($data); ?>);
19
  $data = array(
20
  'event' => 'removeFromCart',
21
  'ecommerce' => array(
22
+ 'currencyCode' => $this->getModuleHelper()->getCurrencyCode(),
23
  'click' => array(
24
  'products' => array(
25
  array(
32
  ),
33
  );
34
  ?>
35
+ dataLayer.push(<?php echo $this->jsonEncode($data); ?>);
package.xml CHANGED
@@ -1,2 +1,2 @@
1
  <?xml version="1.0"?>
2
- <package><name>yireo_googletagmanager</name><version>1.3.9</version><stability>stable</stability><license>Open Source License</license><channel>community</channel><extends></extends><summary>No summary</summary><description>No description</description><notes>No notes</notes><authors><author><name>Yireo</name><user>yireo</user><email>info@yireo.com</email></author></authors><date>2016-02-03</date><time>0:32:33</time><compatible></compatible><dependencies><required><php><min>5.4.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Yireo_GoogleTagManager.xml" hash="420bde8207c2ed151e50ef4b7df1c28f"/></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="googletagmanager"><file name="category.phtml" hash="ac826696d14d1985864563900264537b"/><file name="custom.phtml" hash="b888cea900aba4a488968ca88a42813d"/><file name="customer.phtml" hash="3db76ba18473a1c7f664c1b50db622a4"/><file name="default.phtml" hash="b2247df055e48fc6ae8cb535e8ec9f52"/><file name="ecommerce.phtml" hash="da3bbe9f182ff24a62ad84d7d8c8b7bc"/><file name="order.phtml" hash="5dadb37be8798f76651e9bbb55a9bf4a"/><file name="product.phtml" hash="c9c3856a68f686dd225738d7c3947d29"/><file name="product_addtocart.phtml" hash="61928e816993230f6de9925d83fe6219"/><file name="product_click.phtml" hash="1946b2edbcd2295cc21031e72293f268"/><file name="product_removefromcart.phtml" hash="694db96f70ab2fddc2d1e116582567e7"/><file name="quote.phtml" hash="18c5352672c1b6ef704e60f8c3f035f2"/><file name="script.phtml" hash="9fc6143f2237988f1ff4325d5cfc0969"/></dir></dir><dir name="layout"><file name="googletagmanager.xml" hash="4b2e83f2e964891da358c9a64647a043"/></dir></dir></dir></dir></dir><dir name="code"><dir name="community"><dir name="Yireo"><dir name="GoogleTagManager"><dir name="etc"><file name="config.xml" hash="fe3355ba2d164effd21306577dcec2ef"/><file name="system.xml" hash="1a0483ed2cd30bd1ec806797a8624225"/></dir><dir name="Model"><file name="Container.php" hash="70873159e8eb2254b8f701bc7ccf313e"/><file name="Observer.php" hash="fd35c56d813aac90583321588b355a0b"/><dir name="Backend"><dir name="Source"><file name="Method.php" hash="8af7a0459aaa78c93bf8c2d11a1bd46c"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="bfaf7740830c6f557fae81e108bd70f4"/></dir><dir name="Block"><file name="Category.php" hash="63aac465df78b4f57b93831ff02c6d55"/><file name="Custom.php" hash="e208f2669b99b54001d90730b1fa5e2f"/><file name="Customer.php" hash="b8c90683ce9860d530c1dfb16e15ecda"/><file name="Default.php" hash="8bedea987a1738d400eb2f0ddc10bb94"/><file name="Ecommerce.php" hash="13bb03fab65e9afe756bc087ba328302"/><file name="Order.php" hash="eaaa92e54a6f98c8c39ee484dff1a7bb"/><file name="Product.php" hash="7427e6ff8ef6efa9acaac933a3e76b4a"/><file name="Quote.php" hash="d4ada2d05f420e396849780ad547c1dd"/><file name="Script.php" hash="efe492a317563bfe87772f678a338088"/></dir></dir></dir></dir></dir></dir></target></contents></package>
1
  <?xml version="1.0"?>
2
+ <package><name>yireo_googletagmanager</name><version>1.3.10</version><stability>stable</stability><license>Open Source License</license><channel>community</channel><extends></extends><summary>No summary</summary><description>No description</description><notes>No notes</notes><authors><author><name>Yireo</name><user>yireo</user><email>info@yireo.com</email></author></authors><date>2016-02-09</date><time>4:47:12</time><compatible></compatible><dependencies><required><php><min>5.4.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Yireo_GoogleTagManager.xml" hash="420bde8207c2ed151e50ef4b7df1c28f"/></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="googletagmanager"><file name="category.phtml" hash="8ed9e3cadaa58ca7e41ad233736a112c"/><file name="custom.phtml" hash="b888cea900aba4a488968ca88a42813d"/><file name="customer.phtml" hash="3db76ba18473a1c7f664c1b50db622a4"/><file name="default.phtml" hash="b2247df055e48fc6ae8cb535e8ec9f52"/><file name="ecommerce.phtml" hash="da3bbe9f182ff24a62ad84d7d8c8b7bc"/><file name="order.phtml" hash="5dadb37be8798f76651e9bbb55a9bf4a"/><file name="product.phtml" hash="d7b8622019620c5609881924ab1657c0"/><file name="product_addtocart.phtml" hash="ead689aa81c78ac9bb182b96a6edbe90"/><file name="product_click.phtml" hash="1946b2edbcd2295cc21031e72293f268"/><file name="product_removefromcart.phtml" hash="f743569a3c3e5aa3bf209b44fe4fcd51"/><file name="quote.phtml" hash="18c5352672c1b6ef704e60f8c3f035f2"/><file name="script.phtml" hash="9fc6143f2237988f1ff4325d5cfc0969"/></dir></dir><dir name="layout"><file name="googletagmanager.xml" hash="4b2e83f2e964891da358c9a64647a043"/></dir></dir></dir></dir></dir><dir name="code"><dir name="community"><dir name="Yireo"><dir name="GoogleTagManager"><dir name="etc"><file name="config.xml" hash="888427ad96d17b297ca391e1f056790c"/><file name="system.xml" hash="1a0483ed2cd30bd1ec806797a8624225"/></dir><dir name="Model"><file name="Container.php" hash="70873159e8eb2254b8f701bc7ccf313e"/><file name="Observer.php" hash="fd35c56d813aac90583321588b355a0b"/><dir name="Backend"><dir name="Source"><file name="Method.php" hash="8af7a0459aaa78c93bf8c2d11a1bd46c"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="bfaf7740830c6f557fae81e108bd70f4"/></dir><dir name="Block"><file name="Category.php" hash="63aac465df78b4f57b93831ff02c6d55"/><file name="Custom.php" hash="e208f2669b99b54001d90730b1fa5e2f"/><file name="Customer.php" hash="b8c90683ce9860d530c1dfb16e15ecda"/><file name="Default.php" hash="8bedea987a1738d400eb2f0ddc10bb94"/><file name="Ecommerce.php" hash="13bb03fab65e9afe756bc087ba328302"/><file name="Order.php" hash="eaaa92e54a6f98c8c39ee484dff1a7bb"/><file name="Product.php" hash="7427e6ff8ef6efa9acaac933a3e76b4a"/><file name="Quote.php" hash="d4ada2d05f420e396849780ad547c1dd"/><file name="Script.php" hash="efe492a317563bfe87772f678a338088"/></dir></dir></dir></dir></dir></dir></target></contents></package>