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.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Intelligent_Reach |
Version | 1.0.22 |
Comparing to | |
See all releases |
Code changes from version 1.0.21 to 1.0.22
- intelligentreach_integration.php +11 -5
- intelligentreach_integration_qty.php +2 -1
- package.xml +4 -4
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,6 +15,7 @@ class IntelligentReach
|
|
15 |
{
|
16 |
private $_splitby = 100;
|
17 |
private $_lastPageNumber = 0;
|
|
|
18 |
|
19 |
public function run()
|
20 |
{
|
@@ -70,6 +71,7 @@ class IntelligentReach
|
|
70 |
echo "<p>If you want to skip this step in the future, you can manually enter the Store Id in the URL.<br />";
|
71 |
echo "e.g. http://www.exampledomain.com/intelligentreach_integration.php?storeid=1</p>";
|
72 |
echo "<p><strong>NB:</strong> The Store Id parameter name is case sensitive. Only use \"storeid=\" not another variation.</p>";
|
|
|
73 |
}
|
74 |
|
75 |
public function getSections($sections)
|
@@ -93,10 +95,10 @@ class IntelligentReach
|
|
93 |
{
|
94 |
$sections = ceil($this->_lastPageNumber / $this->_splitby);
|
95 |
echo "<h2>Please select a section to return the products.</h2>";
|
96 |
-
echo "<div class='sections' style='float:left;'>";
|
97 |
$this->getSections($sections);
|
98 |
echo "</div>";
|
99 |
-
echo "<div class='instructions' style='float:left; padding-left:
|
100 |
echo "<h3>Instructions</h3>";
|
101 |
echo "<p>The parameter <strong>'splitby'</strong> in the URL splits pages into sections, each page contains (unless specified otherwise) the default amount of 100 products.</p>";
|
102 |
echo "<p>So setting <strong>'splitby'</strong> to equal 100 will bring back 1,000 products per page and 10,000 products per section, if there are 40,000 products in the store then this will return 4 sections. </p>";
|
@@ -107,6 +109,9 @@ class IntelligentReach
|
|
107 |
echo "<p>You can also retrieve all products but using the 'getall' parameter</p>";
|
108 |
echo "<strong>e.g.</strong> http://www.exampledomain.com/intelligentreach_integration.php?storeid=1&<strong>getall=1</strong></p>";
|
109 |
echo "</div>";
|
|
|
|
|
|
|
110 |
}
|
111 |
|
112 |
// Gets all the products in the catalog in the specific store view,
|
@@ -117,7 +122,8 @@ class IntelligentReach
|
|
117 |
if (isset($_GET["amountofproducts"]))
|
118 |
$amountOfProductsPerPage = $_GET["amountofproducts"];
|
119 |
|
120 |
-
|
|
|
121 |
$products->setPage($page, $amountOfProductsPerPage);
|
122 |
$products->addAttributeToSelect('*');
|
123 |
$products->addAttributeToFilter('status', array('eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED));
|
@@ -194,7 +200,7 @@ class IntelligentReach
|
|
194 |
continue;
|
195 |
}
|
196 |
|
197 |
-
$value = htmlentities($value, ENT_SUBSTITUTE);
|
198 |
$value = "<![CDATA[$value]]>";
|
199 |
|
200 |
$key = str_replace('"', '', $key);
|
1 |
<?php
|
2 |
|
3 |
+
/** Version 1.0.22 Last updated by Kire on 18/02/2015 **/
|
4 |
ini_set('display_errors', 1);
|
5 |
ini_set('max_execution_time', 1800);
|
6 |
include_once 'app/Mage.php';
|
15 |
{
|
16 |
private $_splitby = 100;
|
17 |
private $_lastPageNumber = 0;
|
18 |
+
private $_versionDisplay = "Version 1.0.22 <br />Last updated on 18/02/2015";
|
19 |
|
20 |
public function run()
|
21 |
{
|
71 |
echo "<p>If you want to skip this step in the future, you can manually enter the Store Id in the URL.<br />";
|
72 |
echo "e.g. http://www.exampledomain.com/intelligentreach_integration.php?storeid=1</p>";
|
73 |
echo "<p><strong>NB:</strong> The Store Id parameter name is case sensitive. Only use \"storeid=\" not another variation.</p>";
|
74 |
+
echo "<h5>".$this->_versionDisplay."</h5></div>";
|
75 |
}
|
76 |
|
77 |
public function getSections($sections)
|
95 |
{
|
96 |
$sections = ceil($this->_lastPageNumber / $this->_splitby);
|
97 |
echo "<h2>Please select a section to return the products.</h2>";
|
98 |
+
echo "<div class='sections' style='float:left; padding-left:50px;'>";
|
99 |
$this->getSections($sections);
|
100 |
echo "</div>";
|
101 |
+
echo "<div class='instructions' style='float:left; padding-left:50px;'>";
|
102 |
echo "<h3>Instructions</h3>";
|
103 |
echo "<p>The parameter <strong>'splitby'</strong> in the URL splits pages into sections, each page contains (unless specified otherwise) the default amount of 100 products.</p>";
|
104 |
echo "<p>So setting <strong>'splitby'</strong> to equal 100 will bring back 1,000 products per page and 10,000 products per section, if there are 40,000 products in the store then this will return 4 sections. </p>";
|
109 |
echo "<p>You can also retrieve all products but using the 'getall' parameter</p>";
|
110 |
echo "<strong>e.g.</strong> http://www.exampledomain.com/intelligentreach_integration.php?storeid=1&<strong>getall=1</strong></p>";
|
111 |
echo "</div>";
|
112 |
+
echo "<div style='float:left; padding-left:50px;'><h5>";
|
113 |
+
echo $this->_versionDisplay;
|
114 |
+
echo "</h5></div>";
|
115 |
}
|
116 |
|
117 |
// Gets all the products in the catalog in the specific store view,
|
122 |
if (isset($_GET["amountofproducts"]))
|
123 |
$amountOfProductsPerPage = $_GET["amountofproducts"];
|
124 |
|
125 |
+
$products = Mage::getResourceModel('catalog/product_collection');
|
126 |
+
$products->setStoreId($_GET["storeid"]);
|
127 |
$products->setPage($page, $amountOfProductsPerPage);
|
128 |
$products->addAttributeToSelect('*');
|
129 |
$products->addAttributeToFilter('status', array('eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED));
|
200 |
continue;
|
201 |
}
|
202 |
|
203 |
+
$value = htmlentities($value, ENT_COMPAT | ENT_SUBSTITUTE, "UTF-8");
|
204 |
$value = "<![CDATA[$value]]>";
|
205 |
|
206 |
$key = str_replace('"', '', $key);
|
intelligentreach_integration_qty.php
CHANGED
@@ -117,7 +117,8 @@ class IntelligentReach
|
|
117 |
if (isset($_GET["amountofproducts"]))
|
118 |
$amountOfProductsPerPage = $_GET["amountofproducts"];
|
119 |
|
120 |
-
|
|
|
121 |
$products->setPage($page, $amountOfProductsPerPage);
|
122 |
$products->addAttributeToSelect('*');
|
123 |
$products->addAttributeToFilter('status', array('eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED));
|
117 |
if (isset($_GET["amountofproducts"]))
|
118 |
$amountOfProductsPerPage = $_GET["amountofproducts"];
|
119 |
|
120 |
+
$products = Mage::getResourceModel('catalog/product_collection');
|
121 |
+
$products->setStoreId($_GET["storeid"]);
|
122 |
$products->setPage($page, $amountOfProductsPerPage);
|
123 |
$products->addAttributeToSelect('*');
|
124 |
$products->addAttributeToFilter('status', array('eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED));
|
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.</notes>
|
19 |
<authors><author><name>Intelligent Reach</name><user>auto-converted</user><email>development@intelligentreach.com</email></author></authors>
|
20 |
-
<date>2015-
|
21 |
-
<time>
|
22 |
-
<contents><target name="mage"><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"/></dir></dir><dir name="code"><dir name="local"><dir name="IntelligentReach"><dir name="Integration"><dir name="etc"><file name="config.xml" hash="a9244662abbf57f766826a21fce30d8e"/></dir></dir><dir name="AmazonPayment"><dir name="etc"><file name="config.xml" hash="9b3b3b1b3a5331a576f3f1f137465618"/><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="cb9c59584f6bd3290620cd11ba44018a"/></dir></dir><dir name="EbayPayment"><dir name="etc"><file name="config.xml" hash="47311b20d05ffdd1f2768000d6d7ad6d"/><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="35d0697bcd84250cc4e39ca108a8ecad"/></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"><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="818d2226ed607d78b709d72cb6c05538"/></dir></dir><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/></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"><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="818d2226ed607d78b709d72cb6c05538"/></dir></dir><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/></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"><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="818d2226ed607d78b709d72cb6c05538"/></dir></dir><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/></dir></dir></dir></dir></dir></dir></dir><dir name="."><file name="intelligentreach_integration.php" hash="
|
23 |
<compatible/>
|
24 |
<dependencies/>
|
25 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Intelligent_Reach</name>
|
4 |
+
<version>1.0.22</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.</notes>
|
19 |
<authors><author><name>Intelligent Reach</name><user>auto-converted</user><email>development@intelligentreach.com</email></author></authors>
|
20 |
+
<date>2015-02-18</date>
|
21 |
+
<time>11:24:01</time>
|
22 |
+
<contents><target name="mage"><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"/></dir></dir><dir name="code"><dir name="local"><dir name="IntelligentReach"><dir name="Integration"><dir name="etc"><file name="config.xml" hash="a9244662abbf57f766826a21fce30d8e"/></dir></dir><dir name="AmazonPayment"><dir name="etc"><file name="config.xml" hash="9b3b3b1b3a5331a576f3f1f137465618"/><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="cb9c59584f6bd3290620cd11ba44018a"/></dir></dir><dir name="EbayPayment"><dir name="etc"><file name="config.xml" hash="47311b20d05ffdd1f2768000d6d7ad6d"/><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="35d0697bcd84250cc4e39ca108a8ecad"/></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"><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="818d2226ed607d78b709d72cb6c05538"/></dir></dir><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/></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"><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="818d2226ed607d78b709d72cb6c05538"/></dir></dir><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/></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"><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="818d2226ed607d78b709d72cb6c05538"/></dir></dir><file name="intelligentreach_integration.phtml" hash="cfcf6e1c2de50fa66258a820fb296775"/></dir></dir></dir></dir></dir></dir></dir><dir name="."><file name="intelligentreach_integration.php" hash="294408457f614614f00bb1d1063ec88c"/><file name="intelligentreach_integration_qty.php" hash="dd935d1733b35552df935f3e78fbcf44"/></dir></target></contents>
|
23 |
<compatible/>
|
24 |
<dependencies/>
|
25 |
</package>
|