Version Notes
Stable release. Compatible with older versions. Feed creation has been optimized to handle larger loads. The option to choose the store is now available. Can retrieve associated products for grouped types.Bug fixes.Has support for PHP V5.2. Quantity script has now been added. Flat Catalog support has been added,
Download this release
Release Info
Developer | Intelligent Reach |
Extension | Intelligent_Reach |
Version | 1.0.42 |
Comparing to | |
See all releases |
Code changes from version 1.0.41 to 1.0.42
- app/code/local/IntelligentReach/AmazonPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/DebenhamsPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/EbayPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/Integration/etc/config.xml +1 -1
- app/code/local/IntelligentReach/LazadaPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/OrderExporter/etc/config.xml +1 -1
- app/code/local/IntelligentReach/PlayPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/RakutenPayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/TradeMePayment/etc/config.xml +1 -1
- app/code/local/IntelligentReach/WestfieldPayment/etc/config.xml +1 -1
- intelligentreach_integration.php +3 -3
- intelligentreach_integration_opt.php +3 -3
- intelligentreach_integration_pre.php +3 -3
- intelligentreach_integration_qty.php +3 -3
- ircronscripts/intelligentreach_integration_cron.php +27 -24
- ircronscripts/intelligentreach_integration_cron_opt.php +28 -25
- ircronscripts/intelligentreach_integration_cron_pre.php +27 -24
- ircronscripts/intelligentreach_integration_cron_qty_price.php +3 -3
- package.xml +4 -4
app/code/local/IntelligentReach/AmazonPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_AmazonPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_AmazonPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_AmazonPayment>
|
5 |
+
<version>1.0.42</version>
|
6 |
</IntelligentReach_AmazonPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/DebenhamsPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_DebenhamsPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_DebenhamsPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_DebenhamsPayment>
|
5 |
+
<version>1.0.42</version>
|
6 |
</IntelligentReach_DebenhamsPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/EbayPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_EbayPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_EbayPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_EbayPayment>
|
5 |
+
<version>1.0.42</version>
|
6 |
</IntelligentReach_EbayPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/Integration/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_Integration>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_Integration>
|
7 |
</modules>
|
8 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_Integration>
|
5 |
+
<version>1.0.42</version>
|
6 |
</IntelligentReach_Integration>
|
7 |
</modules>
|
8 |
<frontend>
|
app/code/local/IntelligentReach/LazadaPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_LazadaPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_LazadaPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_LazadaPayment>
|
5 |
+
<version>1.0.42</version>
|
6 |
</IntelligentReach_LazadaPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/OrderExporter/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_OrderExporter>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_OrderExporter>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_OrderExporter>
|
5 |
+
<version>1.0.42</version>
|
6 |
</IntelligentReach_OrderExporter>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/PlayPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_PlayPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_PlayPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_PlayPayment>
|
5 |
+
<version>1.0.42</version>
|
6 |
</IntelligentReach_PlayPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/RakutenPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_RakutenPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_RakutenPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_RakutenPayment>
|
5 |
+
<version>1.0.42</version>
|
6 |
</IntelligentReach_RakutenPayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/TradeMePayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_TradeMePayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_TradeMePayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_TradeMePayment>
|
5 |
+
<version>1.0.42</version>
|
6 |
</IntelligentReach_TradeMePayment>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/IntelligentReach/WestfieldPayment/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_WestfieldPayment>
|
5 |
-
<version>1.0.
|
6 |
</IntelligentReach_WestfieldPayment>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<IntelligentReach_WestfieldPayment>
|
5 |
+
<version>1.0.42</version>
|
6 |
</IntelligentReach_WestfieldPayment>
|
7 |
</modules>
|
8 |
<global>
|
intelligentreach_integration.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/** Version 1.0.
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
@@ -15,8 +15,8 @@ class IntelligentReach
|
|
15 |
private $_splitby = 100;
|
16 |
private $_amountOfProductsPerPage = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
-
private $_versionNumber = "1.0.
|
19 |
-
private $_lastUpdated = "
|
20 |
|
21 |
public function run()
|
22 |
{
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.42 Last updated by Kire on 24/08/2016 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
15 |
private $_splitby = 100;
|
16 |
private $_amountOfProductsPerPage = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
+
private $_versionNumber = "1.0.42";
|
19 |
+
private $_lastUpdated = "24/08/2016";
|
20 |
|
21 |
public function run()
|
22 |
{
|
intelligentreach_integration_opt.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/** Version 1.0.
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
@@ -15,8 +15,8 @@ class IntelligentReach
|
|
15 |
private $_splitby = 100;
|
16 |
private $_amountOfProductsPerPage = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
-
private $_versionNumber = "1.0.
|
19 |
-
private $_lastUpdated = "
|
20 |
|
21 |
public function run()
|
22 |
{
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.42 Last updated by Kire on 24/08/2016 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
15 |
private $_splitby = 100;
|
16 |
private $_amountOfProductsPerPage = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
+
private $_versionNumber = "1.0.42";
|
19 |
+
private $_lastUpdated = "24/08/2016";
|
20 |
|
21 |
public function run()
|
22 |
{
|
intelligentreach_integration_pre.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/** Version 1.0.
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
@@ -15,8 +15,8 @@ class IntelligentReach
|
|
15 |
private $_splitby = 100;
|
16 |
private $_amountOfProductsPerPage = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
-
private $_versionNumber = "1.0.
|
19 |
-
private $_lastUpdated = "
|
20 |
|
21 |
public function run()
|
22 |
{
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.42 Last updated by Kire on 24/08/2016 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
15 |
private $_splitby = 100;
|
16 |
private $_amountOfProductsPerPage = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
+
private $_versionNumber = "1.0.42";
|
19 |
+
private $_lastUpdated = "24/08/2016";
|
20 |
|
21 |
public function run()
|
22 |
{
|
intelligentreach_integration_qty.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/** Version 1.0.
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
@@ -15,8 +15,8 @@ class IntelligentReach
|
|
15 |
private $_splitby = 100;
|
16 |
private $_amountOfProductsPerPage = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
-
private $_versionNumber = "1.0.
|
19 |
-
private $_lastUpdated = "
|
20 |
|
21 |
public function run()
|
22 |
{
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.42 Last updated by Kire on 24/08/2016 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
15 |
private $_splitby = 100;
|
16 |
private $_amountOfProductsPerPage = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
+
private $_versionNumber = "1.0.42";
|
19 |
+
private $_lastUpdated = "24/08/2016";
|
20 |
|
21 |
public function run()
|
22 |
{
|
ircronscripts/intelligentreach_integration_cron.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/** Version 1.0.
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
ini_set('memory_limit', '2G');
|
@@ -13,8 +13,8 @@ $ir->run();
|
|
13 |
|
14 |
class IntelligentReach
|
15 |
{
|
16 |
-
private $_versionNumber = "1.0.
|
17 |
-
private $_lastUpdated = "
|
18 |
private $_outputDirectory = "output";
|
19 |
private $_fileName = "Feed";
|
20 |
private $_fileNameTemp = "";
|
@@ -341,41 +341,26 @@ class IntelligentReach
|
|
341 |
if((count($categories) == 0) || !isset($this->_categories[$categories[0]]))
|
342 |
return;
|
343 |
|
344 |
-
$
|
345 |
-
$parentCategories = array_reverse(explode(',',$categoryData['path_in_store']));
|
346 |
-
|
347 |
-
$output = '';
|
348 |
-
foreach($parentCategories as $parent)
|
349 |
-
{
|
350 |
-
if(isset($this->_categories[$parent]))
|
351 |
-
{
|
352 |
-
$output .= $this->_categories[$parent]['name'];
|
353 |
-
if($parent !== end($parentCategories))
|
354 |
-
$output .= ' > ';
|
355 |
-
}
|
356 |
-
}
|
357 |
|
358 |
if($output != "")
|
359 |
{
|
360 |
/** Old Category Path code: will be deleted in the future. **/
|
361 |
-
$feedData .= '<category_path><![CDATA['
|
362 |
/** End of Old Category path code **/
|
363 |
/** New Category Path code **/
|
364 |
-
$feedData .=
|
365 |
/** End of New Category Path code **/
|
366 |
}
|
367 |
|
368 |
/** New longest Category Path code **/
|
369 |
$validCategoryPaths = array();
|
370 |
-
$catPath = '';
|
371 |
foreach($categories as $cat)
|
372 |
{
|
|
|
373 |
if(isset($this->_categories[$cat]))
|
374 |
-
|
375 |
-
|
376 |
-
if ($cat !== end($categories))
|
377 |
-
$catPath .= ' > ';
|
378 |
-
}
|
379 |
if($catPath != "")
|
380 |
{
|
381 |
if($this->getIntelligentReachCategoryExclusions($storeId) != "")
|
@@ -493,6 +478,24 @@ class IntelligentReach
|
|
493 |
$this->_parentProducts = array(); // clear parent products
|
494 |
}
|
495 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
496 |
/**
|
497 |
* GZIPs a file on disk (appending .gz to the name)
|
498 |
*
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.42 Last updated by Kire on 24/08/2016 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
ini_set('memory_limit', '2G');
|
13 |
|
14 |
class IntelligentReach
|
15 |
{
|
16 |
+
private $_versionNumber = "1.0.42";
|
17 |
+
private $_lastUpdated = "24/08/2016";
|
18 |
private $_outputDirectory = "output";
|
19 |
private $_fileName = "Feed";
|
20 |
private $_fileNameTemp = "";
|
341 |
if((count($categories) == 0) || !isset($this->_categories[$categories[0]]))
|
342 |
return;
|
343 |
|
344 |
+
$output = $this->getCategoryPath($categories[0]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
|
346 |
if($output != "")
|
347 |
{
|
348 |
/** Old Category Path code: will be deleted in the future. **/
|
349 |
+
$feedData .= '<category_path><![CDATA['.$output.']]></category_path>';
|
350 |
/** End of Old Category path code **/
|
351 |
/** New Category Path code **/
|
352 |
+
$feedData .= '<ir_category_path><![CDATA['.$output.']]></ir_category_path>';
|
353 |
/** End of New Category Path code **/
|
354 |
}
|
355 |
|
356 |
/** New longest Category Path code **/
|
357 |
$validCategoryPaths = array();
|
|
|
358 |
foreach($categories as $cat)
|
359 |
{
|
360 |
+
$catPath = '';
|
361 |
if(isset($this->_categories[$cat]))
|
362 |
+
$catPath = $this->getCategoryPath($cat);
|
363 |
+
|
|
|
|
|
|
|
364 |
if($catPath != "")
|
365 |
{
|
366 |
if($this->getIntelligentReachCategoryExclusions($storeId) != "")
|
478 |
$this->_parentProducts = array(); // clear parent products
|
479 |
}
|
480 |
|
481 |
+
public function getCategoryPath($categoryPath)
|
482 |
+
{
|
483 |
+
$categoryData = $this->_categories[$categoryPath];
|
484 |
+
$categoryList = array_reverse(explode(',',$categoryData['path_in_store']));
|
485 |
+
|
486 |
+
$catPath = "";
|
487 |
+
foreach($categoryList as $cat)
|
488 |
+
{
|
489 |
+
if(isset($this->_categories[$cat]))
|
490 |
+
{
|
491 |
+
$catPath .= $this->_categories[$cat]['name'];
|
492 |
+
if ($cat !== end($categoryList))
|
493 |
+
$catPath .= ' > ';
|
494 |
+
}
|
495 |
+
}
|
496 |
+
return $catPath;
|
497 |
+
}
|
498 |
+
|
499 |
/**
|
500 |
* GZIPs a file on disk (appending .gz to the name)
|
501 |
*
|
ircronscripts/intelligentreach_integration_cron_opt.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/** Version 1.0.
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
ini_set('memory_limit', '2G');
|
@@ -13,8 +13,8 @@ $ir->run();
|
|
13 |
|
14 |
class IntelligentReach
|
15 |
{
|
16 |
-
private $_versionNumber = "1.0.
|
17 |
-
private $_lastUpdated = "
|
18 |
private $_outputDirectory = "output";
|
19 |
private $_fileName = "Feed";
|
20 |
private $_fileNameTemp = "";
|
@@ -131,7 +131,7 @@ class IntelligentReach
|
|
131 |
}
|
132 |
|
133 |
public function addAdditionalAttributeFilters($products)
|
134 |
-
{
|
135 |
if($this->_includeDisabled)
|
136 |
$products->addAttributeToFilter('status', array('gt' => 0));
|
137 |
else
|
@@ -342,41 +342,26 @@ class IntelligentReach
|
|
342 |
if((count($categories) == 0) || !isset($this->_categories[$categories[0]]))
|
343 |
return;
|
344 |
|
345 |
-
$
|
346 |
-
$parentCategories = array_reverse(explode(',',$categoryData['path_in_store']));
|
347 |
-
|
348 |
-
$output = '';
|
349 |
-
foreach($parentCategories as $parent)
|
350 |
-
{
|
351 |
-
if(isset($this->_categories[$parent]))
|
352 |
-
{
|
353 |
-
$output .= $this->_categories[$parent]['name'];
|
354 |
-
if($parent !== end($parentCategories))
|
355 |
-
$output .= ' > ';
|
356 |
-
}
|
357 |
-
}
|
358 |
|
359 |
if($output != "")
|
360 |
{
|
361 |
/** Old Category Path code: will be deleted in the future. **/
|
362 |
-
$feedData .= '<category_path><![CDATA['
|
363 |
/** End of Old Category path code **/
|
364 |
/** New Category Path code **/
|
365 |
-
$feedData .=
|
366 |
/** End of New Category Path code **/
|
367 |
}
|
368 |
|
369 |
/** New longest Category Path code **/
|
370 |
$validCategoryPaths = array();
|
371 |
-
$catPath = '';
|
372 |
foreach($categories as $cat)
|
373 |
{
|
|
|
374 |
if(isset($this->_categories[$cat]))
|
375 |
-
|
376 |
-
|
377 |
-
if ($cat !== end($categories))
|
378 |
-
$catPath .= ' > ';
|
379 |
-
}
|
380 |
if($catPath != "")
|
381 |
{
|
382 |
if($this->getIntelligentReachCategoryExclusions($storeId) != "")
|
@@ -494,6 +479,24 @@ class IntelligentReach
|
|
494 |
$this->_parentProducts = array(); // clear parent products
|
495 |
}
|
496 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
497 |
/**
|
498 |
* GZIPs a file on disk (appending .gz to the name)
|
499 |
*
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.42 Last updated by Kire on 24/08/2016 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
ini_set('memory_limit', '2G');
|
13 |
|
14 |
class IntelligentReach
|
15 |
{
|
16 |
+
private $_versionNumber = "1.0.42";
|
17 |
+
private $_lastUpdated = "24/08/2016";
|
18 |
private $_outputDirectory = "output";
|
19 |
private $_fileName = "Feed";
|
20 |
private $_fileNameTemp = "";
|
131 |
}
|
132 |
|
133 |
public function addAdditionalAttributeFilters($products)
|
134 |
+
{
|
135 |
if($this->_includeDisabled)
|
136 |
$products->addAttributeToFilter('status', array('gt' => 0));
|
137 |
else
|
342 |
if((count($categories) == 0) || !isset($this->_categories[$categories[0]]))
|
343 |
return;
|
344 |
|
345 |
+
$output = $this->getCategoryPath($categories[0]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
|
347 |
if($output != "")
|
348 |
{
|
349 |
/** Old Category Path code: will be deleted in the future. **/
|
350 |
+
$feedData .= '<category_path><![CDATA['.$output.']]></category_path>';
|
351 |
/** End of Old Category path code **/
|
352 |
/** New Category Path code **/
|
353 |
+
$feedData .= '<ir_category_path><![CDATA['.$output.']]></ir_category_path>';
|
354 |
/** End of New Category Path code **/
|
355 |
}
|
356 |
|
357 |
/** New longest Category Path code **/
|
358 |
$validCategoryPaths = array();
|
|
|
359 |
foreach($categories as $cat)
|
360 |
{
|
361 |
+
$catPath = '';
|
362 |
if(isset($this->_categories[$cat]))
|
363 |
+
$catPath = $this->getCategoryPath($cat);
|
364 |
+
|
|
|
|
|
|
|
365 |
if($catPath != "")
|
366 |
{
|
367 |
if($this->getIntelligentReachCategoryExclusions($storeId) != "")
|
479 |
$this->_parentProducts = array(); // clear parent products
|
480 |
}
|
481 |
|
482 |
+
public function getCategoryPath($categoryPath)
|
483 |
+
{
|
484 |
+
$categoryData = $this->_categories[$categoryPath];
|
485 |
+
$categoryList = array_reverse(explode(',',$categoryData['path_in_store']));
|
486 |
+
|
487 |
+
$catPath = "";
|
488 |
+
foreach($categoryList as $cat)
|
489 |
+
{
|
490 |
+
if(isset($this->_categories[$cat]))
|
491 |
+
{
|
492 |
+
$catPath .= $this->_categories[$cat]['name'];
|
493 |
+
if ($cat !== end($categoryList))
|
494 |
+
$catPath .= ' > ';
|
495 |
+
}
|
496 |
+
}
|
497 |
+
return $catPath;
|
498 |
+
}
|
499 |
+
|
500 |
/**
|
501 |
* GZIPs a file on disk (appending .gz to the name)
|
502 |
*
|
ircronscripts/intelligentreach_integration_cron_pre.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/** Version 1.0.
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
ini_set('memory_limit', '2G');
|
@@ -13,8 +13,8 @@ $ir->run();
|
|
13 |
|
14 |
class IntelligentReach
|
15 |
{
|
16 |
-
private $_versionNumber = "1.0.
|
17 |
-
private $_lastUpdated = "
|
18 |
private $_outputDirectory = "output";
|
19 |
private $_fileName = "Feed";
|
20 |
private $_fileNameTemp = "";
|
@@ -341,41 +341,26 @@ class IntelligentReach
|
|
341 |
if((count($categories) == 0) || !isset($this->_categories[$categories[0]]))
|
342 |
return;
|
343 |
|
344 |
-
$
|
345 |
-
$parentCategories = array_reverse(explode(',',$categoryData['path_in_store']));
|
346 |
-
|
347 |
-
$output = '';
|
348 |
-
foreach($parentCategories as $parent)
|
349 |
-
{
|
350 |
-
if(isset($this->_categories[$parent]))
|
351 |
-
{
|
352 |
-
$output .= $this->_categories[$parent]['name'];
|
353 |
-
if($parent !== end($parentCategories))
|
354 |
-
$output .= ' > ';
|
355 |
-
}
|
356 |
-
}
|
357 |
|
358 |
if($output != "")
|
359 |
{
|
360 |
/** Old Category Path code: will be deleted in the future. **/
|
361 |
-
$feedData .= '<category_path><![CDATA['
|
362 |
/** End of Old Category path code **/
|
363 |
/** New Category Path code **/
|
364 |
-
$feedData .=
|
365 |
/** End of New Category Path code **/
|
366 |
}
|
367 |
|
368 |
/** New longest Category Path code **/
|
369 |
$validCategoryPaths = array();
|
370 |
-
$catPath = '';
|
371 |
foreach($categories as $cat)
|
372 |
{
|
|
|
373 |
if(isset($this->_categories[$cat]))
|
374 |
-
|
375 |
-
|
376 |
-
if ($cat !== end($categories))
|
377 |
-
$catPath .= ' > ';
|
378 |
-
}
|
379 |
if($catPath != "")
|
380 |
{
|
381 |
if($this->getIntelligentReachCategoryExclusions($storeId) != "")
|
@@ -493,6 +478,24 @@ class IntelligentReach
|
|
493 |
$this->_parentProducts = array(); // clear parent products
|
494 |
}
|
495 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
496 |
/**
|
497 |
* GZIPs a file on disk (appending .gz to the name)
|
498 |
*
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.42 Last updated by Kire on 24/08/2016 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
ini_set('memory_limit', '2G');
|
13 |
|
14 |
class IntelligentReach
|
15 |
{
|
16 |
+
private $_versionNumber = "1.0.42";
|
17 |
+
private $_lastUpdated = "24/08/2016";
|
18 |
private $_outputDirectory = "output";
|
19 |
private $_fileName = "Feed";
|
20 |
private $_fileNameTemp = "";
|
341 |
if((count($categories) == 0) || !isset($this->_categories[$categories[0]]))
|
342 |
return;
|
343 |
|
344 |
+
$output = $this->getCategoryPath($categories[0]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
|
346 |
if($output != "")
|
347 |
{
|
348 |
/** Old Category Path code: will be deleted in the future. **/
|
349 |
+
$feedData .= '<category_path><![CDATA['.$output.']]></category_path>';
|
350 |
/** End of Old Category path code **/
|
351 |
/** New Category Path code **/
|
352 |
+
$feedData .= '<ir_category_path><![CDATA['.$output.']]></ir_category_path>';
|
353 |
/** End of New Category Path code **/
|
354 |
}
|
355 |
|
356 |
/** New longest Category Path code **/
|
357 |
$validCategoryPaths = array();
|
|
|
358 |
foreach($categories as $cat)
|
359 |
{
|
360 |
+
$catPath = '';
|
361 |
if(isset($this->_categories[$cat]))
|
362 |
+
$catPath = $this->getCategoryPath($cat);
|
363 |
+
|
|
|
|
|
|
|
364 |
if($catPath != "")
|
365 |
{
|
366 |
if($this->getIntelligentReachCategoryExclusions($storeId) != "")
|
478 |
$this->_parentProducts = array(); // clear parent products
|
479 |
}
|
480 |
|
481 |
+
public function getCategoryPath($categoryPath)
|
482 |
+
{
|
483 |
+
$categoryData = $this->_categories[$categoryPath];
|
484 |
+
$categoryList = array_reverse(explode(',',$categoryData['path_in_store']));
|
485 |
+
|
486 |
+
$catPath = "";
|
487 |
+
foreach($categoryList as $cat)
|
488 |
+
{
|
489 |
+
if(isset($this->_categories[$cat]))
|
490 |
+
{
|
491 |
+
$catPath .= $this->_categories[$cat]['name'];
|
492 |
+
if ($cat !== end($categoryList))
|
493 |
+
$catPath .= ' > ';
|
494 |
+
}
|
495 |
+
}
|
496 |
+
return $catPath;
|
497 |
+
}
|
498 |
+
|
499 |
/**
|
500 |
* GZIPs a file on disk (appending .gz to the name)
|
501 |
*
|
ircronscripts/intelligentreach_integration_cron_qty_price.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/** Version 1.0.
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
ini_set('memory_limit', '2G');
|
@@ -13,8 +13,8 @@ $ir->run();
|
|
13 |
|
14 |
class IntelligentReach
|
15 |
{
|
16 |
-
private $_versionNumber = "1.0.
|
17 |
-
private $_lastUpdated = "
|
18 |
private $_outputDirectory = "output";
|
19 |
private $_fileName = "Feed_Quantity_And_Price";
|
20 |
private $_fileNameTemp = "";
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.42 Last updated by Kire on 24/08/2016 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
ini_set('memory_limit', '2G');
|
13 |
|
14 |
class IntelligentReach
|
15 |
{
|
16 |
+
private $_versionNumber = "1.0.42";
|
17 |
+
private $_lastUpdated = "24/08/2016";
|
18 |
private $_outputDirectory = "output";
|
19 |
private $_fileName = "Feed_Quantity_And_Price";
|
20 |
private $_fileNameTemp = "";
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Intelligent_Reach</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL</license>
|
7 |
<channel>community</channel>
|
@@ -17,9 +17,9 @@ Intelligent reach also offers advanced insight and trading services; whilst ensu
|
|
17 |
Contact us to arrange a free E-commerce therapy session. Get advice about e-privacy compliance, tag management, analytics or BI implementations and Data quality as well as any key pain points or challenges which are hampering your growth.</description>
|
18 |
<notes>Stable release. Compatible with older versions. Feed creation has been optimized to handle larger loads. The option to choose the store is now available. Can retrieve associated products for grouped types.Bug fixes.Has support for PHP V5.2. Quantity script has now been added. Flat Catalog support has been added,</notes>
|
19 |
<authors><author><name>Intelligent Reach</name><user>IR</user><email>development@intelligentreach.com</email></author></authors>
|
20 |
-
<date>2016-08-
|
21 |
-
<time>
|
22 |
-
<contents><target name="mage"><dir name="."><file name="intelligentreach_integration.php" hash="
|
23 |
<compatible/>
|
24 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
25 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Intelligent_Reach</name>
|
4 |
+
<version>1.0.42</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL</license>
|
7 |
<channel>community</channel>
|
17 |
Contact us to arrange a free E-commerce therapy session. Get advice about e-privacy compliance, tag management, analytics or BI implementations and Data quality as well as any key pain points or challenges which are hampering your growth.</description>
|
18 |
<notes>Stable release. Compatible with older versions. Feed creation has been optimized to handle larger loads. The option to choose the store is now available. Can retrieve associated products for grouped types.Bug fixes.Has support for PHP V5.2. Quantity script has now been added. Flat Catalog support has been added,</notes>
|
19 |
<authors><author><name>Intelligent Reach</name><user>IR</user><email>development@intelligentreach.com</email></author></authors>
|
20 |
+
<date>2016-08-24</date>
|
21 |
+
<time>13:02:03</time>
|
22 |
+
<contents><target name="mage"><dir name="."><file name="intelligentreach_integration.php" hash="25e4cc27d310b28d058f9d6d558272bb"/><file name="intelligentreach_integration_qty.php" hash="3d3ba3a8025dd9624dd0bce24aacb085"/><file name="intelligentreach_integration_pre.php" hash="6227fc368b9f56a54e24d16380d5e013"/><file name="intelligentreach_integration_opt.php" hash="4d5c8ce2a4b1550e4d9dd61951a91cc8"/></dir><dir><dir name="app"><dir name="etc"><dir name="modules"><file name="IntelligentReach_Integration.xml" hash="6cdd19a11572e7073dbb3d746b6b57b6"/><file name="IntelligentReach_AmazonPayment.xml" hash="10faf651f19ea2298217be1a95707b7c"/><file name="IntelligentReach_EbayPayment.xml" hash="eb9acbd1b55da29e10b09981f0b7af8f"/><file name="IntelligentReach_DebenhamsPayment.xml" hash="649e25d5edf93ea84ce0a35240441ecb"/><file name="IntelligentReach_LazadaPayment.xml" hash="74ebd9f7bab6023049128e6de012b52c"/><file name="IntelligentReach_PlayPayment.xml" hash="c711e18f9a79c24bcddce4143ffb6fb6"/><file name="IntelligentReach_RakutenPayment.xml" hash="d70ce1efcf60b29ecc02fcea8df1f7e9"/><file name="IntelligentReach_TradeMePayment.xml" hash="367154d17430c1000c3798454be25dcb"/><file name="IntelligentReach_WestfieldPayment.xml" hash="b0ae5878bb26f86674ce88a50876496b"/><file name="IntelligentReach_OrderExporter.xml" hash="004c82baa9638e0fb23cc75f783b56e1"/></dir></dir><dir name="code"><dir name="local"><dir name="IntelligentReach"><dir name="Integration"><dir name="etc"><file name="config.xml" hash="8eb9ccb3229a06c42b9341bbcd73f172"/></dir></dir><dir name="AmazonPayment"><dir name="etc"><file name="config.xml" hash="7c02a0d0667058fb24b3f94ac3427999"/><file name="system.xml" hash="7b236978b8022dc4deda628640ea8689"/></dir><dir name="Helper"><file name="Data.php" hash="2e4ef89b210d0f992cd25b8ef5f4b96e"/></dir><dir name="Model"><file name="Pay.php" hash="4f706307986b9cd0f7cb64f69402cbd5"/></dir></dir><dir name="EbayPayment"><dir name="etc"><file name="config.xml" hash="9043967d5dceac52f273065d08e3ecb1"/><file name="system.xml" hash="7246fbf64d238328f74bd6445cc05b29"/></dir><dir name="Helper"><file name="Data.php" hash="0e112e22a4786f3624216628dee796a0"/></dir><dir name="Model"><file name="Pay.php" hash="9195dd4e2dbdeae9170220d78efc9f7b"/></dir></dir><dir name="DebenhamsPayment"><dir name="etc"><file name="config.xml" hash="de5e0a95524bafb495049af783aa8392"/><file name="system.xml" hash="fab15158ef26748821326174ca9d91eb"/></dir><dir name="Helper"><file name="Data.php" hash="24e03a8fb06b27480aae4e37f2dc54d8"/></dir><dir name="Model"><file name="Pay.php" hash="45162537d76f8c9e9ccc1ec493c59691"/></dir></dir><dir name="LazadaPayment"><dir name="etc"><file name="config.xml" hash="66ec229b09c24dec2cabac9a1a779fa7"/><file name="system.xml" hash="bf34e8ec60287c727d8221163f436c9c"/></dir><dir name="Helper"><file name="Data.php" hash="7eee4edb781ab93817979b61f314787f"/></dir><dir name="Model"><file name="Pay.php" hash="d52eafb63ab3bad2a390e2f83ebfab6e"/></dir></dir><dir name="PlayPayment"><dir name="etc"><file name="config.xml" hash="d75e6a1dafa68dc96c21268f2ab2bd98"/><file name="system.xml" hash="4afb9b545ca22d4043b0606222d734a6"/></dir><dir name="Helper"><file name="Data.php" hash="486d43158da7188608eb07d3c9e45845"/></dir><dir name="Model"><file name="Pay.php" hash="78432762a0020455de623fbe79166045"/></dir></dir><dir name="RakutenPayment"><dir name="etc"><file name="config.xml" hash="563c8b49d0819f98aeda8a1f0ca0305c"/><file name="system.xml" hash="6c19c11b0ad20305d3dd705a0e3f71b9"/></dir><dir name="Helper"><file name="Data.php" hash="87cc7e597d4f70a26911c861358d5695"/></dir><dir name="Model"><file name="Pay.php" hash="b52e5cb4fdb78db91c23bc929e8a70eb"/></dir></dir><dir name="TradeMePayment"><dir name="etc"><file name="config.xml" hash="fbdf10922872e75cdbe2729d749cbcce"/><file name="system.xml" hash="98893010b7a44f27611421780a09cd6a"/></dir><dir name="Helper"><file name="Data.php" hash="b789a1164f2296882e81d4dced4897a0"/></dir><dir name="Model"><file name="Pay.php" hash="74ba42a1af907d6159fcd8c507d533de"/></dir></dir><dir name="WestfieldPayment"><dir name="etc"><file name="config.xml" hash="4b24f643d4081e851383830ec441beb3"/><file name="system.xml" hash="de52dce1e16aaa20f62253a4a22f419f"/></dir><dir name="Helper"><file name="Data.php" hash="1d1fcc723fc60d73b004173094a8499e"/></dir><dir name="Model"><file name="Pay.php" hash="d398e69f34d1b7b4105d264eccf01799"/></dir></dir><dir name="OrderExporter"><dir name="etc"><file name="api.xml" hash="aee4a0fdb16e1e6b24de0f1b9bb3da99"/><file name="config.xml" hash="b68ff6c7a5304e62d76c4f54a63323e3"/><file name="system.xml" hash="6e41cdc209a85975879947a78bda24b2"/><file name="wsdl.xml" hash="a7361499844f83df32d923322633bab1"/><file name="wsi.xml" hash="a106a60efb3b7e50d3239343311e5a50"/></dir><dir name="Model"><file name="Carrier.php" hash="723819e51c4e1a644cc3de48dcac54c6"/><dir name="Cart"><file name="Api.php" hash="50339620188a9187ecd0afa6ede3fda7"/><dir name="Api"><file name="V2.php" hash="1703584c45f0eabc93b75b7814a970b9"/></dir><dir name="Shipping"><file name="Api.php" hash="547829c7eb8d0c22a4a13e5a8df2a2a3"/><dir name="Api"><file name="V2.php" hash="ebd0fc61544ddcf8a7dc8c5fece6ada5"/></dir></dir><dir name="Product"><file name="Api.php" hash="25f9320923ed59266fb55bba645a2cf1"/><dir name="Api"><file name="V2.php" hash="74912462ca1d3bab41381c4d1a489091"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Shipping.php" hash="7891ef0dc09150b7dda42e7f67e14584"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="4ef41fb017e9d210521d42cff2b43dd0"/></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="intelligentreach_integration.xml" hash="c45eb729e1e4b5025b25c20ac2723eeb"/></dir><dir name="template"><dir name="intelligentreach_integration"><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/><dir name="product"><file name="intelligentreach_integration.phtml" hash="0d1f3ce4a57d977d8955176b01e2f87d"/></dir><dir name="basket"><file name="intelligentreach_integration.phtml" hash="983743acab4cd1c2819ea4fb6eebe0b5"/></dir><dir name="checkout"><dir name="onepage"><file name="intelligentreach_integration.phtml" hash="dfcfe625fadaf06fb3b069cb9257b4cc"/></dir><dir name="multishipping"><file name="intelligentreach_integration.phtml" hash="206d1fe72ab530829ca274fd52e90108"/></dir></dir></dir></dir></dir></dir><dir name="enterprise"><dir name="default"><dir name="layout"><file name="intelligentreach_integration.xml" hash="c45eb729e1e4b5025b25c20ac2723eeb"/></dir><dir name="template"><dir name="intelligentreach_integration"><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/><dir name="product"><file name="intelligentreach_integration.phtml" hash="0d1f3ce4a57d977d8955176b01e2f87d"/></dir><dir name="basket"><file name="intelligentreach_integration.phtml" hash="983743acab4cd1c2819ea4fb6eebe0b5"/></dir><dir name="checkout"><dir name="onepage"><file name="intelligentreach_integration.phtml" hash="dfcfe625fadaf06fb3b069cb9257b4cc"/></dir><dir name="multishipping"><file name="intelligentreach_integration.phtml" hash="206d1fe72ab530829ca274fd52e90108"/></dir></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="intelligentreach_integration.xml" hash="c45eb729e1e4b5025b25c20ac2723eeb"/></dir><dir name="template"><dir name="intelligentreach_integration"><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/><dir name="product"><file name="intelligentreach_integration.phtml" hash="0d1f3ce4a57d977d8955176b01e2f87d"/></dir><dir name="basket"><file name="intelligentreach_integration.phtml" hash="983743acab4cd1c2819ea4fb6eebe0b5"/></dir><dir name="checkout"><dir name="onepage"><file name="intelligentreach_integration.phtml" hash="dfcfe625fadaf06fb3b069cb9257b4cc"/></dir><dir name="multishipping"><file name="intelligentreach_integration.phtml" hash="206d1fe72ab530829ca274fd52e90108"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="ircronscripts"><file name="intelligentreach_integration_cron.php" hash="a402d5f4499bb81b6df266ad398b439d"/><file name="intelligentreach_integration_cron_pre.php" hash="451cfc71f8e07009f21d384b870095db"/><file name="intelligentreach_integration_cron_qty_price.php" hash="d9887d80084b0882cffb5854e78c787b"/><file name="intelligentreach_integration_cron_opt.php" hash="c4787061d8a8c016cb5b00b262bd7a19"/></dir></dir></target></contents>
|
23 |
<compatible/>
|
24 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
25 |
</package>
|