Skip to content

Commit

Permalink
Merge pull request #10 from magmodules/1.2.1
Browse files Browse the repository at this point in the history
1.2.1
  • Loading branch information
Marvin-Magmodules authored Feb 1, 2018
2 parents aa40b5d + 93b608c commit f0583b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions app/code/community/Magmodules/Channableapi/Model/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function runUpdate($storeId, $items = '')
->load();
}

if (!empty($items)) {
if ($items->count()) {
$postData = $this->getProductData($items, $storeId, $config);
$postResult = $this->postData($postData, $config);
$this->updateData($postResult);
Expand Down Expand Up @@ -210,9 +210,12 @@ public function getProductData($items, $storeId, $config = array())
$config = $this->getConfig($storeId);
}

try {
$productIds = $this->getProductIds($items);
$productIds = $this->getProductIds($items);
if (empty($productIds)) {
return $productData;
}

try {
/** @var Mage_Core_Model_App_Emulation $appEmulation */
$appEmulation = Mage::getSingleton('core/app_emulation');
$initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId);
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Magmodules/Channableapi/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<config>
<modules>
<Magmodules_Channableapi>
<version>1.2.0</version>
<version>1.2.1</version>
</Magmodules_Channableapi>
</modules>
<global>
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Magmodules/Channableapi/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
<show_in_default>1</show_in_default>
<show_in_website>0</show_in_website>
<show_in_store>0</show_in_store>
<tooltip>Set a limit on the number of products for each update.</tooltip>
<tooltip>Set a limit on the number of products for each update. The maximum allowed by Channable: 50</tooltip>
</limit>
</fields>
</crons>
Expand Down

0 comments on commit f0583b8

Please sign in to comment.