From 9c9b5755f74a4f1298c65f9e004795d1cf57ea87 Mon Sep 17 00:00:00 2001 From: Kristof Ringleff Date: Thu, 18 Sep 2014 09:39:42 +1200 Subject: [PATCH] 0.14.11 Release --- .../Fooman/GoogleAnalyticsPlus/Block/Remarketing.php | 6 +++--- .../community/Fooman/GoogleAnalyticsPlus/etc/config.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/code/community/Fooman/GoogleAnalyticsPlus/Block/Remarketing.php b/app/code/community/Fooman/GoogleAnalyticsPlus/Block/Remarketing.php index 78daff8..3575479 100644 --- a/app/code/community/Fooman/GoogleAnalyticsPlus/Block/Remarketing.php +++ b/app/code/community/Fooman/GoogleAnalyticsPlus/Block/Remarketing.php @@ -125,7 +125,7 @@ public function getProdId() $quote = Mage::getSingleton('checkout/session')->getQuote(); if ($quote) { foreach ($quote->getAllItems() as $item) { - $products[] = $this->getConfiguredFeedId($item); + $products[] = $this->getConfiguredFeedId($item->getProduct()); } } return $this->getArrayReturnValue($products, '', true); @@ -133,7 +133,7 @@ public function getProdId() case self::GA_PAGETYPE_PURCHASE: if ($this->_getOrder()) { foreach ($this->_getOrder()->getAllItems() as $item) { - $products[] = $this->getConfiguredFeedId($item); + $products[] = $this->getConfiguredFeedId($item->getProduct()); } } return $this->getArrayReturnValue($products, '', true); @@ -148,7 +148,7 @@ public function getProdId() */ public function getConfiguredFeedId ($product) { $idAttr = Mage::getStoreConfig('google/analyticsplus_dynremarketing/feed_product_id'); - $id = $product->getData($idAttr); + $id = $product->getDataUsingMethod($idAttr); // quote if id is not numeric if (!ctype_digit($id)) { $id = "'$id'"; diff --git a/app/code/community/Fooman/GoogleAnalyticsPlus/etc/config.xml b/app/code/community/Fooman/GoogleAnalyticsPlus/etc/config.xml index 12dbcc0..9125742 100644 --- a/app/code/community/Fooman/GoogleAnalyticsPlus/etc/config.xml +++ b/app/code/community/Fooman/GoogleAnalyticsPlus/etc/config.xml @@ -2,7 +2,7 @@ - 0.14.10 + 0.14.11