Intelligent_Reach - Version 1.0.21

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.21
Comparing to
See all releases


Code changes from version 1.0.20 to 1.0.21

intelligentreach_integration.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- /** Version 1.0.20 Last updated by Kire on 17/12/2014 * */
4
  ini_set('display_errors', 1);
5
  ini_set('max_execution_time', 1800);
6
  include_once 'app/Mage.php';
@@ -29,6 +29,7 @@ class IntelligentReach
29
  if ((isset($_GET["startingpage"]) && isset($_GET["endpage"])) || isset($_GET["getall"]))
30
  {
31
  header("Content-Type: text/xml; charset=UTF-8");
 
32
  echo '<?xml version="1.0" encoding="utf-8"?>
33
  <products>';
34
  $this->runTheTask(isset($_GET["getall"]) ? 1 : $_GET["startingpage"], isset($_GET["getall"]) ? $this->_lastPageNumber : $_GET["endpage"]);
@@ -141,7 +142,7 @@ class IntelligentReach
141
  flush();
142
  }
143
  }
144
-
145
  public function printProducts($args)
146
  {
147
  $baseUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
@@ -165,7 +166,7 @@ class IntelligentReach
165
 
166
  if (($key == 'url_path') || ($key == 'url_key'))
167
  $value = trim(str_replace('/intelligentreach_integration.php', '', $product->getProductUrl()));
168
-
169
  // This will pull the parents URL if the child variant is not visible individually.
170
  // So we can use the Parent URL if the child URL returns a 404.
171
  if(($key == 'visibility') && ($product->getVisibility() == Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE) && (isset($parentProduct)))
@@ -176,7 +177,7 @@ class IntelligentReach
176
 
177
  if ($key == 'thumbnail')
178
  $value = $baseUrl . "media/catalog/product" . $value;
179
-
180
  if (($value == '') && (isset($parentProduct)))
181
  {
182
  $attr = $parentProduct->getResource()->getAttribute($key);
@@ -184,19 +185,19 @@ class IntelligentReach
184
  continue;
185
  $value = $attr->getFrontend()->getValue($parentProduct);
186
  }
187
-
188
- // Print out all media gallery images.
189
- if($key == 'media_gallery')
190
- {
191
- for($i = 0; $i < count($value['images']); $i++)
192
- echo " <image_".($i + 1)."><![CDATA[". $baseUrl . "media/catalog/product" . $value['images'][$i]['file']."]]></image_".($i + 1).">";
193
- continue;
194
- }
195
-
196
- $value = "<![CDATA[$value]]>";
 
197
 
198
  $key = str_replace('"', '', $key);
199
-
200
  echo '<' . $key . '>' . $value . '</' . $key . '>';
201
  }
202
  }
1
  <?php
2
 
3
+ /** Version 1.0.21 Last updated by Kire on 12/01/2015 **/
4
  ini_set('display_errors', 1);
5
  ini_set('max_execution_time', 1800);
6
  include_once 'app/Mage.php';
29
  if ((isset($_GET["startingpage"]) && isset($_GET["endpage"])) || isset($_GET["getall"]))
30
  {
31
  header("Content-Type: text/xml; charset=UTF-8");
32
+ header("Cache-Control: no-cache, must-revalidate");
33
  echo '<?xml version="1.0" encoding="utf-8"?>
34
  <products>';
35
  $this->runTheTask(isset($_GET["getall"]) ? 1 : $_GET["startingpage"], isset($_GET["getall"]) ? $this->_lastPageNumber : $_GET["endpage"]);
142
  flush();
143
  }
144
  }
145
+
146
  public function printProducts($args)
147
  {
148
  $baseUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
166
 
167
  if (($key == 'url_path') || ($key == 'url_key'))
168
  $value = trim(str_replace('/intelligentreach_integration.php', '', $product->getProductUrl()));
169
+
170
  // This will pull the parents URL if the child variant is not visible individually.
171
  // So we can use the Parent URL if the child URL returns a 404.
172
  if(($key == 'visibility') && ($product->getVisibility() == Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE) && (isset($parentProduct)))
177
 
178
  if ($key == 'thumbnail')
179
  $value = $baseUrl . "media/catalog/product" . $value;
180
+
181
  if (($value == '') && (isset($parentProduct)))
182
  {
183
  $attr = $parentProduct->getResource()->getAttribute($key);
185
  continue;
186
  $value = $attr->getFrontend()->getValue($parentProduct);
187
  }
188
+
189
+ // Print out all media gallery images.
190
+ if($key == 'media_gallery')
191
+ {
192
+ for($i = 0; $i < count($value['images']); $i++)
193
+ echo " <image_".($i + 1)."><![CDATA[". $baseUrl . "media/catalog/product" . $value['images'][$i]['file']."]]></image_".($i + 1).">";
194
+ continue;
195
+ }
196
+
197
+ $value = htmlentities($value, ENT_SUBSTITUTE);
198
+ $value = "<![CDATA[$value]]>";
199
 
200
  $key = str_replace('"', '', $key);
 
201
  echo '<' . $key . '>' . $value . '</' . $key . '>';
202
  }
203
  }
intelligentreach_integration_qty.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- /** Version 1.0.16 Last updated by Kire on 24/02/2014 * */
4
  ini_set('display_errors', 1);
5
  ini_set('max_execution_time', 1800);
6
  include_once 'app/Mage.php';
@@ -29,6 +29,7 @@ class IntelligentReach
29
  if ((isset($_GET["startingpage"]) && isset($_GET["endpage"])) || isset($_GET["getall"]))
30
  {
31
  header("Content-Type: text/xml; charset=UTF-8");
 
32
  echo '<?xml version="1.0" encoding="utf-8"?>
33
  <products>';
34
  $this->runTheTask(isset($_GET["getall"]) ? 1 : $_GET["startingpage"], isset($_GET["getall"]) ? $this->_lastPageNumber : $_GET["endpage"]);
1
  <?php
2
 
3
+ /** Version 1.0.21 Last updated by Kire on 12/01/2015 **/
4
  ini_set('display_errors', 1);
5
  ini_set('max_execution_time', 1800);
6
  include_once 'app/Mage.php';
29
  if ((isset($_GET["startingpage"]) && isset($_GET["endpage"])) || isset($_GET["getall"]))
30
  {
31
  header("Content-Type: text/xml; charset=UTF-8");
32
+ header("Cache-Control: no-cache, must-revalidate");
33
  echo '<?xml version="1.0" encoding="utf-8"?>
34
  <products>';
35
  $this->runTheTask(isset($_GET["getall"]) ? 1 : $_GET["startingpage"], isset($_GET["getall"]) ? $this->_lastPageNumber : $_GET["endpage"]);
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Intelligent_Reach</name>
4
- <version>1.0.20</version>
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>2014-12-17</date>
21
- <time>17:02:09</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="f32b140907b5aee280271470f2cad658"/><file name="intelligentreach_integration_qty.php" hash="008425a81c39adc7c5c941ccca2e3950"/></dir></target></contents>
23
  <compatible/>
24
  <dependencies/>
25
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Intelligent_Reach</name>
4
+ <version>1.0.21</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-01-12</date>
21
+ <time>17:18:28</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="d1205c3fa4ba15cd3e63d983fa07d1e2"/><file name="intelligentreach_integration_qty.php" hash="1f7fa5f742bfe8ee66ba0cd8f02f31c0"/></dir></target></contents>
23
  <compatible/>
24
  <dependencies/>
25
  </package>