Skip to content

Commit

Permalink
6.45.0 (FINAL RELEASE)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2epro committed Sep 6, 2023
1 parent e66fe5c commit b14349e
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,25 +160,28 @@ function ($value) {
)
->where('aa.merchant_id = ? AND is_afn_channel = 1', $merchantId);

/** @var Ess_M2ePro_Model_Listing_Product $item */
foreach ($m2eproListingProductCollection->getItems() as $item) {
$this->updateItem(
$item,
$receivedItems[$item->getChildObject()->getSku()]
);
}
$normalizedReceivedItems = array_change_key_case($receivedItems, CASE_LOWER);

/** @var Ess_M2ePro_Model_Listing_Other $item */
foreach ($unmanagedListingProductCollection->getItems() as $item) {
$this->updateItem(
$item,
$receivedItems[$item->getChildObject()->getSku()]
);
}
$this->updateItemsFromCollection($m2eproListingProductCollection, $normalizedReceivedItems);
$this->updateItemsFromCollection($unmanagedListingProductCollection, $normalizedReceivedItems);

$this->refreshLastUpdate(true);
}

private function updateItemsFromCollection($collection, array $normalizedReceivedItems)
{
foreach ($collection->getItems() as $item) {
$sku = strtolower($item->getChildObject()->getSku());

if (isset($normalizedReceivedItems[$sku])) {
$this->updateItem(
$item,
$normalizedReceivedItems[$sku]
);
}
}
}

/**
* @param Ess_M2ePro_Model_Listing_Product|Ess_M2ePro_Model_Listing_Other $item
* @param int|string $afnQty
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Ess/M2ePro/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "m2epro/magento1-extension",
"description": "M2E Pro is a Magento trusted (TM), award-winning extension, which allows merchants of all sizes to fully integrate Magento based system(s) into eBay/Amazon/Walmart platforms.",
"type": "magento-module",
"version": "6.44.2",
"version": "6.45.0",
"license": "proprietary",
"keywords": ["ebay", "amazon", "walmart", "magento"],
"homepage": "https://www.m2epro.com/",
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Ess/M2ePro/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Ess_M2ePro>
<version>6.44.2</version>
<version>6.45.0</version>
</Ess_M2ePro>
</modules>
<default>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

/**
* @author M2E Pro Developers Team
* @copyright M2E LTD
* @license Commercial use is forbidden
*/

class Ess_M2ePro_Sql_Upgrade_v6_44_2__v6_45_0_Config extends Ess_M2ePro_Model_Upgrade_Feature_AbstractConfig
{
public function getFeaturesList()
{
return array();
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "m2epro/magento1-extension",
"description": "M2E Pro is a Magento trusted (TM), award-winning extension, which allows merchants of all sizes to fully integrate Magento based system(s) into eBay/Amazon/Walmart platforms.",
"type": "magento-module",
"version": "6.44.2",
"version": "6.45.0",
"license": "proprietary",
"keywords": ["ebay", "amazon", "walmart", "magento"],
"homepage": "https://www.m2epro.com/",
Expand Down

0 comments on commit b14349e

Please sign in to comment.