shoppingfeeder - Version 1.3.7

Version Notes

This provides a fix for superfluous attribute values that aren't set.

Also adds ability to only limit import of configurable products to parent product

Download this release

Release Info

Developer ShoppingFeeder
Extension shoppingfeeder
Version 1.3.7
Comparing to
See all releases


Code changes from version 1.3.6 to 1.3.7

app/code/community/ShoppingFeeder/Service/Model/Offers.php CHANGED
@@ -290,7 +290,7 @@ class ShoppingFeeder_Service_Model_Offers extends Mage_Core_Model_Abstract
290
  return $p;
291
  }
292
 
293
- public function getItems($page = null, $numPerPage = 1000, $lastUpdate = null, $store = null, $priceCurrency = null, $priceCurrencyRate = null)
294
  {
295
  /* @var Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection $collection */
296
  $collection = Mage::getModel('catalog/product')->getCollection()
@@ -329,7 +329,7 @@ class ShoppingFeeder_Service_Model_Offers extends Mage_Core_Model_Abstract
329
  */
330
 
331
  //if we have a configurable product, capture the variants
332
- if ($product->getTypeId() == 'configurable')
333
  {
334
  /** @var Mage_Catalog_Model_Product_Type_Configurable $configModel */
335
  $configModel = Mage::getModel('catalog/product_type_configurable');
290
  return $p;
291
  }
292
 
293
+ public function getItems($page = null, $numPerPage = 1000, $lastUpdate = null, $store = null, $priceCurrency = null, $priceCurrencyRate = null, $allowVariants = true)
294
  {
295
  /* @var Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection $collection */
296
  $collection = Mage::getModel('catalog/product')->getCollection()
329
  */
330
 
331
  //if we have a configurable product, capture the variants
332
+ if ($product->getTypeId() == 'configurable' && $allowVariants)
333
  {
334
  /** @var Mage_Catalog_Model_Product_Type_Configurable $configModel */
335
  $configModel = Mage::getModel('catalog/product_type_configurable');
app/code/community/ShoppingFeeder/Service/controllers/FeedController.php CHANGED
@@ -18,6 +18,7 @@ class ShoppingFeeder_Service_FeedController extends ShoppingFeeder_Service_Contr
18
  $lastUpdate = $this->getRequest()->getParam('last_update', null);
19
  $store = $this->getRequest()->getParam('store', null);
20
  $currency = $this->getRequest()->getParam('currency', null);
 
21
 
22
  /**
23
  * For per-store system
@@ -43,7 +44,7 @@ class ShoppingFeeder_Service_FeedController extends ShoppingFeeder_Service_Contr
43
 
44
  if (is_null($offerId))
45
  {
46
- $offers = $offersModel->getItems($page, $numPerPage, $lastUpdate, $store, $priceCurrency, $priceCurrencyRate);
47
  }
48
  else
49
  {
18
  $lastUpdate = $this->getRequest()->getParam('last_update', null);
19
  $store = $this->getRequest()->getParam('store', null);
20
  $currency = $this->getRequest()->getParam('currency', null);
21
+ $allowVariants = boolval($this->getRequest()->getParam('allow_variants', true));
22
 
23
  /**
24
  * For per-store system
44
 
45
  if (is_null($offerId))
46
  {
47
+ $offers = $offersModel->getItems($page, $numPerPage, $lastUpdate, $store, $priceCurrency, $priceCurrencyRate, $allowVariants);
48
  }
49
  else
50
  {
app/code/community/ShoppingFeeder/Service/controllers/VersionController.php CHANGED
@@ -5,7 +5,7 @@ require_once(Mage::getModuleDir('Controller','ShoppingFeeder_Service').DS.'Contr
5
 
6
  class ShoppingFeeder_Service_VersionController extends Mage_Core_Controller_Front_Action
7
  {
8
- protected static $_version = '1.3.6';
9
 
10
  public function indexAction()
11
  {
5
 
6
  class ShoppingFeeder_Service_VersionController extends Mage_Core_Controller_Front_Action
7
  {
8
+ protected static $_version = '1.3.7';
9
 
10
  public function indexAction()
11
  {
app/code/community/ShoppingFeeder/Service/etc/config.xml CHANGED
@@ -9,7 +9,7 @@
9
  <config>
10
  <modules>
11
  <ShoppingFeeder_Service>
12
- <version>1.3.6</version>
13
  </ShoppingFeeder_Service>
14
  </modules>
15
  <global>
9
  <config>
10
  <modules>
11
  <ShoppingFeeder_Service>
12
+ <version>1.3.7</version>
13
  </ShoppingFeeder_Service>
14
  </modules>
15
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>shoppingfeeder</name>
4
- <version>1.3.6</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
@@ -16,11 +16,13 @@ Use ShoppingFeeder to import your Shopify product catalogue, export it to numero
16
  Export to Google, Shopping.com, Nextag, kelkoo, PriceCheck, Shopmania, Fruugo and more!&#xD;
17
  &#xD;
18
  To set up your ShoppingFeeder account and install this extension seamlessly, create an account at: &lt;a href="http://www.shoppingfeeder.com/register"&gt;http://www.shoppingfeeder.com/register&lt;/a&gt;</description>
19
- <notes>This provides a fix for superfluous attribute values that aren't set.</notes>
 
 
20
  <authors><author><name>ShoppingFeeder</name><user>shoppingfeeder</user><email>support@shoppingfeeder.com</email></author></authors>
21
  <date>2015-07-09</date>
22
- <time>10:24:21</time>
23
- <contents><target name="mageetc"><dir name="modules"><file name="ShoppingFeeder_Service.xml" hash="90b374109c2d1281ddf527f24fa7d914"/></dir></target><target name="magecommunity"><dir name="ShoppingFeeder"><dir name="Service"><dir name="Block"><dir name="Adminhtml"><file name="Service.php" hash="e94d54bc342dc2941753ad635c0454a3"/></dir><file name="Service.php" hash="48874f0e80ce70686b81eb5380e9f498"/></dir><dir name="Controller"><file name="FrontAuth.php" hash="28ed32e1bf3250362911a26869f0e6d7"/></dir><dir name="Helper"><file name="Data.php" hash="17589bd08352e497806bef9884972300"/></dir><dir name="Model"><file name="Auth.php" hash="2cff17b0750ff70695b32524627b2aaf"/><file name="Observer.php" hash="fe8d86049e9fef786b13cec3b3a902ed"/><file name="Offers.php" hash="f7c29af30fec61b7643a0d35f6e980fe"/><file name="Orders.php" hash="cc3c9f38ae41c11ab7dda0bcb8dd001f"/></dir><dir name="controllers"><file name="AttributesController.php" hash="e937c492f770bc8381a003a080cf878b"/><file name="FeedController.php" hash="b1d89747830553a1229e258d272deae6"/><file name="OrdersController.php" hash="e0dcf407e15ca212b43ee0015c918675"/><file name="StoresController.php" hash="a29fa0e97299ce764fd66360cbf6632a"/><file name="TestController.php" hash="5138a844cb7cbc8e792df664057bdf9b"/><file name="VersionController.php" hash="b42ae580052964bbc1d2ff3b71191668"/></dir><dir name="data"><file name="cacert.pem" hash="380df856e8f789c1af97d0da9a243769"/></dir><dir name="etc"><file name="config.xml" hash="3bab8e8e3f9045fa604451a0b5d1324a"/><file name="system.xml" hash="9681c74fa8886143197932690616e2dd"/></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>shoppingfeeder</name>
4
+ <version>1.3.7</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
16
  Export to Google, Shopping.com, Nextag, kelkoo, PriceCheck, Shopmania, Fruugo and more!&#xD;
17
  &#xD;
18
  To set up your ShoppingFeeder account and install this extension seamlessly, create an account at: &lt;a href="http://www.shoppingfeeder.com/register"&gt;http://www.shoppingfeeder.com/register&lt;/a&gt;</description>
19
+ <notes>This provides a fix for superfluous attribute values that aren't set.&#xD;
20
+ &#xD;
21
+ Also adds ability to only limit import of configurable products to parent product</notes>
22
  <authors><author><name>ShoppingFeeder</name><user>shoppingfeeder</user><email>support@shoppingfeeder.com</email></author></authors>
23
  <date>2015-07-09</date>
24
+ <time>10:47:52</time>
25
+ <contents><target name="mageetc"><dir name="modules"><file name="ShoppingFeeder_Service.xml" hash="90b374109c2d1281ddf527f24fa7d914"/></dir></target><target name="magecommunity"><dir name="ShoppingFeeder"><dir name="Service"><dir name="Block"><dir name="Adminhtml"><file name="Service.php" hash="e94d54bc342dc2941753ad635c0454a3"/></dir><file name="Service.php" hash="48874f0e80ce70686b81eb5380e9f498"/></dir><dir name="Controller"><file name="FrontAuth.php" hash="28ed32e1bf3250362911a26869f0e6d7"/></dir><dir name="Helper"><file name="Data.php" hash="17589bd08352e497806bef9884972300"/></dir><dir name="Model"><file name="Auth.php" hash="2cff17b0750ff70695b32524627b2aaf"/><file name="Observer.php" hash="fe8d86049e9fef786b13cec3b3a902ed"/><file name="Offers.php" hash="f5c385928d346df0645650ee40b22676"/><file name="Orders.php" hash="cc3c9f38ae41c11ab7dda0bcb8dd001f"/></dir><dir name="controllers"><file name="AttributesController.php" hash="e937c492f770bc8381a003a080cf878b"/><file name="FeedController.php" hash="0585450375fd56380c4d3caff0e9ac4d"/><file name="OrdersController.php" hash="e0dcf407e15ca212b43ee0015c918675"/><file name="StoresController.php" hash="a29fa0e97299ce764fd66360cbf6632a"/><file name="TestController.php" hash="5138a844cb7cbc8e792df664057bdf9b"/><file name="VersionController.php" hash="523d40e15b6be010dcf298f017f88ca4"/></dir><dir name="data"><file name="cacert.pem" hash="380df856e8f789c1af97d0da9a243769"/></dir><dir name="etc"><file name="config.xml" hash="dd64cd51c1d563298a07d89545f3baba"/><file name="system.xml" hash="9681c74fa8886143197932690616e2dd"/></dir></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>