yireo_googletagmanager - Version 1.3.4

Version Notes

No notes

Download this release

Release Info

Developer Yireo
Extension yireo_googletagmanager
Version 1.3.4
Comparing to
See all releases


Code changes from version 1.3.2 to 1.3.4

app/code/community/Yireo/GoogleTagManager/Helper/Data.php CHANGED
@@ -15,11 +15,11 @@ class Yireo_GoogleTagManager_Helper_Data extends Mage_Core_Helper_Abstract
15
  */
16
  public function isEnabled()
17
  {
18
- if ((bool)Mage::getStoreConfig('advanced/modules_disable_output/Yireo_GoogleTagManager')) {
19
  return false;
20
  }
21
 
22
- return (bool)$this->gertConfigValue('enabled');
23
  }
24
 
25
  /**
15
  */
16
  public function isEnabled()
17
  {
18
+ if ((bool) Mage::getStoreConfig('advanced/modules_disable_output/Yireo_GoogleTagManager')) {
19
  return false;
20
  }
21
 
22
+ return (bool)$this->getConfigValue('enabled');
23
  }
24
 
25
  /**
app/code/community/Yireo/GoogleTagManager/Model/Observer.php CHANGED
@@ -18,6 +18,10 @@ class Yireo_GoogleTagManager_Model_Observer
18
  */
19
  public function coreBlockAbstractToHtmlAfter($observer)
20
  {
 
 
 
 
21
  if ($this->getHelper()->isMethodObserver() == false) {
22
  return $this;
23
  }
@@ -47,7 +51,7 @@ class Yireo_GoogleTagManager_Model_Observer
47
  /**
48
  * @return Yireo_GoogleGears_Helper_Data
49
  */
50
- public function getHelper()
51
  {
52
  return Mage::helper('googletagmanager');
53
  }
18
  */
19
  public function coreBlockAbstractToHtmlAfter($observer)
20
  {
21
+ if ($this->getHelper()->isEnabled() == false) {
22
+ return $this;
23
+ }
24
+
25
  if ($this->getHelper()->isMethodObserver() == false) {
26
  return $this;
27
  }
51
  /**
52
  * @return Yireo_GoogleGears_Helper_Data
53
  */
54
+ protected function getHelper()
55
  {
56
  return Mage::helper('googletagmanager');
57
  }
app/code/community/Yireo/GoogleTagManager/etc/config.xml CHANGED
@@ -12,7 +12,7 @@
12
  <config>
13
  <modules>
14
  <Yireo_GoogleTagManager>
15
- <version>1.3.2</version>
16
  </Yireo_GoogleTagManager>
17
  </modules>
18
 
12
  <config>
13
  <modules>
14
  <Yireo_GoogleTagManager>
15
+ <version>1.3.4</version>
16
  </Yireo_GoogleTagManager>
17
  </modules>
18
 
app/design/frontend/base/default/template/googletagmanager/order.phtml CHANGED
@@ -15,10 +15,10 @@
15
  <?php $this->addAttribute('transactionId', $order->getIncrementId()); ?>
16
  <?php $this->addAttribute('transactionDate', $order->getCreatedAt()); ?>
17
  <?php $this->addAttribute('transactionAffiliation', Mage::app()->getWebsite()->getName()); ?>
18
- <?php $this->addAttribute('transactionTotal', $order->getGrandTotal()); ?>
19
- <?php $this->addAttribute('transactionSubtotal', $order->getSubtotal()); ?>
20
  <?php $this->addAttribute('transactionTax', $order->getGrandTotal() - $order->getSubtotal()); ?>
21
- <?php $this->addAttribute('transactionShipping', $order->getShippingAmount()); ?>
22
  <?php $this->addAttribute('transactionPayment', $order->getPayment()->getMethodInstance()->getTitle()); ?>
23
  <?php $this->addAttribute('transactionCurrency', Mage::app()->getStore()->getBaseCurrencyCode()); ?>
24
  <?php $this->addAttribute('transactionPromoCode', $order->getCouponCode()); ?>
15
  <?php $this->addAttribute('transactionId', $order->getIncrementId()); ?>
16
  <?php $this->addAttribute('transactionDate', $order->getCreatedAt()); ?>
17
  <?php $this->addAttribute('transactionAffiliation', Mage::app()->getWebsite()->getName()); ?>
18
+ <?php $this->addAttribute('transactionTotal', (float)$order->getGrandTotal()); ?>
19
+ <?php $this->addAttribute('transactionSubtotal', (float)$order->getSubtotal()); ?>
20
  <?php $this->addAttribute('transactionTax', $order->getGrandTotal() - $order->getSubtotal()); ?>
21
+ <?php $this->addAttribute('transactionShipping', (float)$order->getShippingAmount()); ?>
22
  <?php $this->addAttribute('transactionPayment', $order->getPayment()->getMethodInstance()->getTitle()); ?>
23
  <?php $this->addAttribute('transactionCurrency', Mage::app()->getStore()->getBaseCurrencyCode()); ?>
24
  <?php $this->addAttribute('transactionPromoCode', $order->getCouponCode()); ?>
package.xml CHANGED
@@ -1,2 +1,2 @@
1
  <?xml version="1.0"?>
2
- <package><name>yireo_googletagmanager</name><version>1.3.2</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>2015-09-29</date><time>0:16:26</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="e02dc5d555dd7a5195031d80e5308fc1"/><file name="custom.phtml" hash="2b4ae99a074d314241a1ba7127661c04"/><file name="customer.phtml" hash="a26d3c30a2a909ef7bd8bffe32f65fb2"/><file name="default.phtml" hash="28f3a12df2e7e745bb7b648c946d58c7"/><file name="order.phtml" hash="4e1ee315d6270f5ab310a288e8ffc603"/><file name="product.phtml" hash="e0af99cd595af21de5a97911d2d41fa1"/><file name="quote.phtml" hash="3303deca9e3012c8dcfda1e972e36ace"/><file name="script.phtml" hash="18e2d45895b95061ccf04c5af74e25a9"/></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="2dfe5069a1d0dea771d6d4bbb86c7c49"/><file name="system.xml" hash="c6d755d52247656fd8e6931503a5840a"/></dir><dir name="Model"><file name="Container.php" hash="782c5f85ca92dc39dff034768d9d7177"/><file name="Observer.php" hash="114ce303d3487ead4bd81ae084665525"/><dir name="Backend"><dir name="Source"><file name="Method.php" hash="d5e60a00a1f85fa658c02e9f895539d3"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="5ecdd9fdb3efdb6b169ef9f79eedbcf4"/></dir><dir name="Block"><file name="Category.php" hash="e1da36db1401d657a19e2c6291d70c38"/><file name="Custom.php" hash="fd1c528409d0186f9ec7de8391d2509c"/><file name="Customer.php" hash="a6f461d0210b141d3d3e0e4cfd80cc3a"/><file name="Default.php" hash="2c078f7152ac294a3d712193624c9fd4"/><file name="Order.php" hash="fe345f9b15b694158a494b055619361c"/><file name="Product.php" hash="02f816ccdb1a0b7a74f001dee0d0018d"/><file name="Quote.php" hash="17580bf20487ceb803421c0ca0575741"/><file name="Script.php" hash="3ddfa74f22197a17f6158b6b40c20abf"/></dir></dir></dir></dir></dir></dir></target></contents></package>
1
  <?xml version="1.0"?>
2
+ <package><name>yireo_googletagmanager</name><version>1.3.4</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>2015-11-17</date><time>8:26: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="e02dc5d555dd7a5195031d80e5308fc1"/><file name="custom.phtml" hash="2b4ae99a074d314241a1ba7127661c04"/><file name="customer.phtml" hash="a26d3c30a2a909ef7bd8bffe32f65fb2"/><file name="default.phtml" hash="28f3a12df2e7e745bb7b648c946d58c7"/><file name="order.phtml" hash="9d30380ebcb9f815ccea300d811de7d8"/><file name="product.phtml" hash="e0af99cd595af21de5a97911d2d41fa1"/><file name="quote.phtml" hash="3303deca9e3012c8dcfda1e972e36ace"/><file name="script.phtml" hash="18e2d45895b95061ccf04c5af74e25a9"/></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="b69a256856a96b80c2eefbf7c4e6db55"/><file name="system.xml" hash="c6d755d52247656fd8e6931503a5840a"/></dir><dir name="Model"><file name="Container.php" hash="782c5f85ca92dc39dff034768d9d7177"/><file name="Observer.php" hash="a1817fb438a919f00589070b8b746d69"/><dir name="Backend"><dir name="Source"><file name="Method.php" hash="d5e60a00a1f85fa658c02e9f895539d3"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="39e6bde767a341f2f9c68e00f3e0fb4e"/></dir><dir name="Block"><file name="Category.php" hash="e1da36db1401d657a19e2c6291d70c38"/><file name="Custom.php" hash="fd1c528409d0186f9ec7de8391d2509c"/><file name="Customer.php" hash="a6f461d0210b141d3d3e0e4cfd80cc3a"/><file name="Default.php" hash="2c078f7152ac294a3d712193624c9fd4"/><file name="Order.php" hash="fe345f9b15b694158a494b055619361c"/><file name="Product.php" hash="02f816ccdb1a0b7a74f001dee0d0018d"/><file name="Quote.php" hash="17580bf20487ceb803421c0ca0575741"/><file name="Script.php" hash="3ddfa74f22197a17f6158b6b40c20abf"/></dir></dir></dir></dir></dir></dir></target></contents></package>