Version Notes
--retrieving category names instead of ids
--added price info to product data
Download this release
Release Info
Developer | HiConversion |
Extension | Hic_Integration |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
app/code/community/Hic/Integration/Model/Data.php
CHANGED
@@ -35,6 +35,28 @@ class Hic_Integration_Model_Data extends Varien_Object
|
|
35 |
protected function _construct()
|
36 |
{
|
37 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
/**
|
40 |
* Returns product information for each product
|
@@ -57,7 +79,7 @@ class Hic_Integration_Model_Data extends Varien_Object
|
|
57 |
// request item information from product collection catalog
|
58 |
$collection = Mage::getResourceModel('catalog/product_collection')
|
59 |
->addFieldToFilter('entity_id', array('in' => $productIds ))
|
60 |
-
->addAttributeToSelect(array('name','description'));
|
61 |
$count = 0;
|
62 |
|
63 |
foreach ($collection as $product) {
|
@@ -77,7 +99,7 @@ class Hic_Integration_Model_Data extends Varien_Object
|
|
77 |
$info['nm'] = $product->getName();
|
78 |
$info['img'] = $product->getImageUrl();
|
79 |
$info['sku'] = $product->getSku();
|
80 |
-
$info['cat'] = $
|
81 |
$data[] = $info;
|
82 |
$count = $count + 1;
|
83 |
}
|
@@ -273,11 +295,12 @@ class Hic_Integration_Model_Data extends Varien_Object
|
|
273 |
{
|
274 |
// registry does not exist when we are cached
|
275 |
if ($product = Mage::registry('current_product')) {
|
276 |
-
$data['cat'] = $
|
277 |
$data['id'] = $product->getId();
|
278 |
$data['nm'] = $product->getName();
|
279 |
$data['url'] = $product->getProductUrl();
|
280 |
$data['sku'] = $product->getSku();
|
|
|
281 |
$data['img'] = Mage::getBaseUrl('media')
|
282 |
. self::CATALOG_URL . $product->getImage();
|
283 |
$this->setProduct($data);
|
35 |
protected function _construct()
|
36 |
{
|
37 |
}
|
38 |
+
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Returns category names for each product
|
42 |
+
* passed into function
|
43 |
+
*
|
44 |
+
* @param Mage_Catalog_Model_Product $product
|
45 |
+
* @return array $categoryNames
|
46 |
+
*/
|
47 |
+
protected function _getCategoryNames($product)
|
48 |
+
{
|
49 |
+
$catIds = $product->getCategoryIds();
|
50 |
+
$catCollection = Mage::getResourceModel('catalog/category_collection')
|
51 |
+
->addAttributeToFilter('entity_id', $catIds)
|
52 |
+
->addAttributeToSelect('name')
|
53 |
+
->addIsActiveFilter();
|
54 |
+
$categoryNames = array();
|
55 |
+
foreach ($catCollection as $category) {
|
56 |
+
$categoryNames[] = $category->getName();
|
57 |
+
}
|
58 |
+
return $categoryNames;
|
59 |
+
}
|
60 |
|
61 |
/**
|
62 |
* Returns product information for each product
|
79 |
// request item information from product collection catalog
|
80 |
$collection = Mage::getResourceModel('catalog/product_collection')
|
81 |
->addFieldToFilter('entity_id', array('in' => $productIds ))
|
82 |
+
->addAttributeToSelect(array('name','description','sku'));
|
83 |
$count = 0;
|
84 |
|
85 |
foreach ($collection as $product) {
|
99 |
$info['nm'] = $product->getName();
|
100 |
$info['img'] = $product->getImageUrl();
|
101 |
$info['sku'] = $product->getSku();
|
102 |
+
$info['cat'] = $this->_getCategoryNames($product);
|
103 |
$data[] = $info;
|
104 |
$count = $count + 1;
|
105 |
}
|
295 |
{
|
296 |
// registry does not exist when we are cached
|
297 |
if ($product = Mage::registry('current_product')) {
|
298 |
+
$data['cat'] = $this->_getCategoryNames($product);
|
299 |
$data['id'] = $product->getId();
|
300 |
$data['nm'] = $product->getName();
|
301 |
$data['url'] = $product->getProductUrl();
|
302 |
$data['sku'] = $product->getSku();
|
303 |
+
$data['bpr'] = $product->getPrice();
|
304 |
$data['img'] = Mage::getBaseUrl('media')
|
305 |
. self::CATALOG_URL . $product->getImage();
|
306 |
$this->setProduct($data);
|
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.
|
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.4";
|
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.
|
5 |
<stability>stable</stability>
|
6 |
<license>MIT</license>
|
7 |
<channel>community</channel>
|
@@ -12,13 +12,12 @@
|
|
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. 
|
13 |

|
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’s browser during the web page rendering process.</description>
|
15 |
-
<notes
|
16 |
-
|
17 |
-
-Resolved issue with head tag integration</notes>
|
18 |
<authors><author><name>HiConversion</name><user>hiconversion</user><email>dhenrickson@hiconversion.com</email></author></authors>
|
19 |
-
<date>2015-07
|
20 |
-
<time>
|
21 |
-
<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="
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.2.0</min><max>5.6.10</max></php></required></dependencies>
|
24 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Hic_Integration</name>
|
4 |
+
<version>1.1.4</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. 
|
13 |

|
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’s browser during the web page rendering process.</description>
|
15 |
+
<notes>--retrieving category names instead of ids
|
16 |
+
--added price info to product data</notes>
|
|
|
17 |
<authors><author><name>HiConversion</name><user>hiconversion</user><email>dhenrickson@hiconversion.com</email></author></authors>
|
18 |
+
<date>2015-08-07</date>
|
19 |
+
<time>17:33:22</time>
|
20 |
+
<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="5b4316fd95fe2005dc97c9e375ab998f"/><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="84f57114eb854ccee4f0973a61fff7ca"/><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>
|
21 |
<compatible/>
|
22 |
<dependencies><required><php><min>5.2.0</min><max>5.6.10</max></php></required></dependencies>
|
23 |
</package>
|