Hic_Integration - Version 1.1.10

Version Notes

--fixed issue with line item data getting jumbled up

Download this release

Release Info

Developer HiConversion
Extension Hic_Integration
Version 1.1.10
Comparing to
See all releases


Code changes from version 1.1.9 to 1.1.10

app/code/community/Hic/Integration/Model/Data.php CHANGED
@@ -83,18 +83,19 @@ class Hic_Integration_Model_Data extends Varien_Object
83
  $collection = Mage::getResourceModel('catalog/product_collection')
84
  ->addFieldToFilter('entity_id', array('in' => $productIds ))
85
  ->addAttributeToSelect(array('name','description','sku','image'));
86
- $count = 0;
87
-
88
  foreach ($collection as $product) {
 
 
89
  $info = array();
90
- $info['ds'] = (float)$items[$count]->getDiscountAmount();
91
- $info['tx'] = (float)$items[$count]->getTaxAmount();
92
- $info['pr'] = (float)$items[$count]->getRowTotalInclTax();
93
- $info['bpr'] = (float)$items[$count]->getPrice();
94
  if ($isOrder) {
95
- $info['qt'] = (float)$items[$count]->getQtyOrdered();
96
  } else {
97
- $info['qt'] = (float)$items[$count]->getQty();
98
  }
99
  $info['desc'] = strip_tags($product->getDescription());
100
  $info['id'] = $product->getId();
@@ -105,7 +106,6 @@ class Hic_Integration_Model_Data extends Varien_Object
105
  $info['sku'] = $product->getSku();
106
  $info['cat'] = $this->_getCategoryNames($product);
107
  $data[] = $info;
108
- $count = $count + 1;
109
  }
110
  return $data;
111
  }
83
  $collection = Mage::getResourceModel('catalog/product_collection')
84
  ->addFieldToFilter('entity_id', array('in' => $productIds ))
85
  ->addAttributeToSelect(array('name','description','sku','image'));
86
+
 
87
  foreach ($collection as $product) {
88
+ // return order for collection is not always the same as the order of the input product ids
89
+ $index = array_search($product->getId(), $productIds);
90
  $info = array();
91
+ $info['ds'] = (float)$items[$index]->getDiscountAmount();
92
+ $info['tx'] = (float)$items[$index]->getTaxAmount();
93
+ $info['pr'] = (float)$items[$index]->getRowTotalInclTax();
94
+ $info['bpr'] = (float)$items[$index]->getPrice();
95
  if ($isOrder) {
96
+ $info['qt'] = (float)$items[$index]->getQtyOrdered();
97
  } else {
98
+ $info['qt'] = (float)$items[$index]->getQty();
99
  }
100
  $info['desc'] = strip_tags($product->getDescription());
101
  $info['id'] = $product->getId();
106
  $info['sku'] = $product->getSku();
107
  $info['cat'] = $this->_getCategoryNames($product);
108
  $data[] = $info;
 
109
  }
110
  return $data;
111
  }
app/design/frontend/base/default/template/hic/headAlways.phtml CHANGED
@@ -27,7 +27,7 @@ $helper = $this->helper('integration');
27
  var __hic = __hic || {};
28
  (function(){
29
  try {
30
- __hic.version = "1.1.9";
31
  __hic.data = __hic.data || {};
32
  __hic.data.platform = "magento";
33
  __hic.data.pid = "<?php echo $helper->getSiteId(); ?>";
27
  var __hic = __hic || {};
28
  (function(){
29
  try {
30
+ __hic.version = "1.1.10";
31
  __hic.data = __hic.data || {};
32
  __hic.data.platform = "magento";
33
  __hic.data.pid = "<?php echo $helper->getSiteId(); ?>";
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Hic_Integration</name>
4
- <version>1.1.9</version>
5
  <stability>stable</stability>
6
  <license>MIT</license>
7
  <channel>community</channel>
@@ -12,11 +12,11 @@
12
  Data Capture: We productized our knowledge about the types of data collected by the most advanced web analytics solutions deployed on Magento stores. We then created an extension that provides solid data collection right out-of-the-box. There is no need for any additional custom tagging of your site. All other custom events and metric tracking is provisioned through our application interface. &#xD;
13
  &#xD;
14
  Customer Experience Optimization: The second role for the extension is to enable client-side testing, targeting, personalization, and customer experience optimization. To minimize technical complexity and IT dependency, we provide a visual designer tool that enables you to visually provision your optimization campaigns. The visual designs are then translated into lines of code that are transparently executed by the visitor&#x2019;s browser during the web page rendering process.</description>
15
- <notes>--added quantity to transaction and transaction line items</notes>
16
  <authors><author><name>HiConversion</name><user>hiconversion</user><email>dhenrickson@hiconversion.com</email></author></authors>
17
- <date>2017-03-07</date>
18
- <time>19:52:30</time>
19
- <contents><target name="magecommunity"><dir name="Hic"><dir name="Integration"><dir name="Block"><file name="Tag.php" hash="f78bcbe4f6ca77a1d5ba9915f00a00e9"/></dir><dir name="Helper"><file name="Data.php" hash="56e60fd9bf55cbbaf4e7770f717c665b"/></dir><file name="LICENSE.txt" hash="3b58e20f0b691c258d39cc034c5376eb"/><dir name="Model"><dir name="Container"><file name="Cache.php" hash="0b31d39b61a9c2c5306ddec38da89159"/><file name="Never.php" hash="8f55b957c44cd17cf833b65790ec2cda"/><file name="Page.php" hash="8c71028d0c2e4a8cf64252588ebd65d5"/><file name="Session.php" hash="73a07532644425b9fb8cc63de80704a5"/></dir><file name="Data.php" hash="c776f6d149419243b4902c762ffdf418"/><file name="Observer.php" hash="ab0ed8bd1c9cf92f1fc4d82edb7e4e9e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f122c26dfe576f4c09f83abe76424931"/><file name="cache.xml" hash="95b38442affa3bdcdbbe69d79f14b541"/><file name="config.xml" hash="52c9660805fa919fc3a1ebdb2a3af231"/><file name="system.xml" hash="099f557cbbd148bee56909732dd9a0cf"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="hic"><file name="hiconversion.xml" hash="05531c3232369fdfa0d285d5f0982420"/></dir></dir><dir name="template"><dir name="hic"><file name="body.phtml" hash="a337202d1f589d299392a3dc6a3da4e3"/><file name="headAlways.phtml" hash="4c56f8526547f6114d4da899b66b9aad"/><file name="headNever.phtml" hash="27a5c62062a4925eb49aa1cb9504aef0"/><file name="headPage.phtml" hash="d2a1ffa32e6b408e7497a95330264c9e"/><file name="headSession.phtml" hash="197eae4633258c4f353647af5fb34b9b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Hic_Integration.xml" hash="94fd9568fa202ad3d4773331e46d88c2"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>5.6.10</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Hic_Integration</name>
4
+ <version>1.1.10</version>
5
  <stability>stable</stability>
6
  <license>MIT</license>
7
  <channel>community</channel>
12
  Data Capture: We productized our knowledge about the types of data collected by the most advanced web analytics solutions deployed on Magento stores. We then created an extension that provides solid data collection right out-of-the-box. There is no need for any additional custom tagging of your site. All other custom events and metric tracking is provisioned through our application interface. &#xD;
13
  &#xD;
14
  Customer Experience Optimization: The second role for the extension is to enable client-side testing, targeting, personalization, and customer experience optimization. To minimize technical complexity and IT dependency, we provide a visual designer tool that enables you to visually provision your optimization campaigns. The visual designs are then translated into lines of code that are transparently executed by the visitor&#x2019;s browser during the web page rendering process.</description>
15
+ <notes>--fixed issue with line item data getting jumbled up</notes>
16
  <authors><author><name>HiConversion</name><user>hiconversion</user><email>dhenrickson@hiconversion.com</email></author></authors>
17
+ <date>2017-04-13</date>
18
+ <time>17:05:56</time>
19
+ <contents><target name="magecommunity"><dir name="Hic"><dir name="Integration"><dir name="Block"><file name="Tag.php" hash="f78bcbe4f6ca77a1d5ba9915f00a00e9"/></dir><dir name="Helper"><file name="Data.php" hash="56e60fd9bf55cbbaf4e7770f717c665b"/></dir><file name="LICENSE.txt" hash="3b58e20f0b691c258d39cc034c5376eb"/><dir name="Model"><dir name="Container"><file name="Cache.php" hash="0b31d39b61a9c2c5306ddec38da89159"/><file name="Never.php" hash="8f55b957c44cd17cf833b65790ec2cda"/><file name="Page.php" hash="8c71028d0c2e4a8cf64252588ebd65d5"/><file name="Session.php" hash="73a07532644425b9fb8cc63de80704a5"/></dir><file name="Data.php" hash="8a20828394723ab3ba6ca8487aef692c"/><file name="Observer.php" hash="ab0ed8bd1c9cf92f1fc4d82edb7e4e9e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f122c26dfe576f4c09f83abe76424931"/><file name="cache.xml" hash="95b38442affa3bdcdbbe69d79f14b541"/><file name="config.xml" hash="52c9660805fa919fc3a1ebdb2a3af231"/><file name="system.xml" hash="099f557cbbd148bee56909732dd9a0cf"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="hic"><file name="hiconversion.xml" hash="05531c3232369fdfa0d285d5f0982420"/></dir></dir><dir name="template"><dir name="hic"><file name="body.phtml" hash="a337202d1f589d299392a3dc6a3da4e3"/><file name="headAlways.phtml" hash="ce9932280aab32ee7b1f3a0896294776"/><file name="headNever.phtml" hash="27a5c62062a4925eb49aa1cb9504aef0"/><file name="headPage.phtml" hash="d2a1ffa32e6b408e7497a95330264c9e"/><file name="headSession.phtml" hash="197eae4633258c4f353647af5fb34b9b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Hic_Integration.xml" hash="94fd9568fa202ad3d4773331e46d88c2"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>5.6.10</max></php></required></dependencies>
22
  </package>