-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
98 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ommunity/Ess/M2ePro/sql/Update/y23_m10/EnableAmazonShippingServiceForSomeMarketplaces.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
// @codingStandardsIgnoreFile | ||
|
||
class Ess_M2ePro_Sql_Update_y23_m10_EnableAmazonShippingServiceForSomeMarketplaces extends | ||
Ess_M2ePro_Model_Upgrade_Feature_AbstractFeature | ||
{ | ||
public function execute() | ||
{ | ||
$marketplaces = array( | ||
array('name' => 'Canada', 'id' => 24), | ||
array('name' => 'United States', 'id' => 29), | ||
array('name' => 'Mexico', 'id' => 34), | ||
array('name' => 'Spain', 'id' => 30), | ||
array('name' => 'United Kingdom', 'id' => 28), | ||
array('name' => 'France', 'id' => 26), | ||
array('name' => 'Germany', 'id' => 25), | ||
array('name' => 'Italy', 'id' => 31), | ||
array('name' => 'India', 'id' => 46), | ||
); | ||
|
||
$this->_installer->getConnection()->update( | ||
$this->_installer->getTablesObject()->getFullName('m2epro_amazon_marketplace'), | ||
array('is_merchant_fulfillment_available' => 1), | ||
array('marketplace_id IN (?)' => array_column($marketplaces, 'id')) | ||
); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
app/code/community/Ess/M2ePro/sql/Upgrade/v6_46_0__v6_48_0/Config.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
/** | ||
* @author M2E Pro Developers Team | ||
* @copyright M2E LTD | ||
* @license Commercial use is forbidden | ||
*/ | ||
|
||
class Ess_M2ePro_Sql_Upgrade_v6_46_0__v6_48_0_Config extends Ess_M2ePro_Model_Upgrade_Feature_AbstractConfig | ||
{ | ||
public function getFeaturesList() | ||
{ | ||
return array( | ||
'@y23_m10/EnableAmazonShippingServiceForSomeMarketplaces', | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters