Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
0.14.11 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
fooman committed Sep 17, 2014
1 parent fcbad0c commit 9c9b575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ 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);
break;
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);
Expand All @@ -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'";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Fooman_GoogleAnalyticsPlus>
<version>0.14.10</version>
<version>0.14.11</version>
</Fooman_GoogleAnalyticsPlus>
</modules>

Expand Down

0 comments on commit 9c9b575

Please sign in to comment.