diff --git a/app/code/community/Ess/M2ePro/sql/M2ePro_setup/mysql4-install-6.4.6.php b/app/code/community/Ess/M2ePro/sql/M2ePro_setup/mysql4-install-6.4.7.php
similarity index 96%
rename from app/code/community/Ess/M2ePro/sql/M2ePro_setup/mysql4-install-6.4.6.php
rename to app/code/community/Ess/M2ePro/sql/M2ePro_setup/mysql4-install-6.4.7.php
index d5a3882e8..8d549a956 100644
--- a/app/code/community/Ess/M2ePro/sql/M2ePro_setup/mysql4-install-6.4.6.php
+++ b/app/code/community/Ess/M2ePro/sql/M2ePro_setup/mysql4-install-6.4.7.php
@@ -10,8 +10,8 @@
// GENERAL SCRIPT
-$tempMagentoConnectUrl = 'http://www.magentocommerce.com/magento-connect/customer-experience/alternative-sales-models/';
-$tempMagentoConnectUrl .= 'ebay-magento-integration-order-importing-and-stock-level-synchronization-9193.html';
+$tempMagentoConnectUrl = 'https://www.magentocommerce.com/magento-connect/';
+$tempMagentoConnectUrl .= 'ebay-amazon-rakuten-magento-integration-order-import-and-stock-level-synchronization.html';
$servicingInterval = rand(43200, 86400);
@@ -765,6 +765,36 @@
('/cron/task/logs_clearing/', 'last_access', NULL, 'date of last access', '2013-05-08 00:00:00',
'2013-05-08 00:00:00'),
('/cron/task/logs_clearing/', 'last_run', NULL, 'date of last run', '2014-01-01 00:00:00', '2014-01-01 00:00:00'),
+ ('/cron/task/repricing_update_settings/', 'interval', '3600', 'in seconds',
+ '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_update_settings/', 'last_access', NULL, 'date of last access', '2013-05-08 00:00:00',
+ '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_update_settings/', 'last_run', NULL, 'date of last run',
+ '2014-01-01 00:00:00', '2014-01-01 00:00:00'),
+ ('/cron/task/repricing_synchronization_actual_price/', 'mode', '1', '0 - disable, \r\n1 - enable',
+ '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_synchronization_actual_price/', 'interval', '3600', 'in seconds',
+ '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_synchronization_actual_price/', 'last_access', NULL, 'date of last access',
+ '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_synchronization_actual_price/', 'last_run', NULL, 'date of last run',
+ '2014-01-01 00:00:00', '2014-01-01 00:00:00'),
+ ('/cron/task/repricing_synchronization_general/', 'mode', '1', '0 - disable, \r\n1 - enable', '2013-05-08 00:00:00',
+ '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_synchronization_general/', 'interval', '86400', 'in seconds',
+ '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_synchronization_general/', 'last_access', NULL, 'date of last access', '2013-05-08 00:00:00',
+ '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_synchronization_general/', 'last_run', NULL, 'date of last run',
+ '2014-01-01 00:00:00', '2014-01-01 00:00:00'),
+ ('/cron/task/repricing_inspect_products/', 'mode', '1', '0 - disable, \r\n1 - enable', '2013-05-08 00:00:00',
+ '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_inspect_products/', 'interval', '3600', 'in seconds',
+ '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_inspect_products/', 'last_access', NULL, 'date of last access', '2013-05-08 00:00:00',
+ '2013-05-08 00:00:00'),
+ ('/cron/task/repricing_inspect_products/', 'last_run', NULL, 'date of last run',
+ '2014-01-01 00:00:00', '2014-01-01 00:00:00'),
('/cron/task/synchronization/', 'mode', '1', '0 - disable, \r\n1 - enable', '2013-05-08 00:00:00',
'2013-05-08 00:00:00'),
('/cron/task/synchronization/', 'interval', '300', 'in seconds', '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
@@ -2183,7 +2213,6 @@
`other_listings_move_mode` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
`other_listings_move_settings` VARCHAR(255) DEFAULT NULL,
`magento_orders_settings` TEXT NOT NULL,
- `repricing` TEXT DEFAULT NULL,
`info` TEXT DEFAULT NULL,
PRIMARY KEY (`account_id`)
)
@@ -2191,6 +2220,39 @@
CHARACTER SET utf8
COLLATE utf8_general_ci;
+DROP TABLE IF EXISTS `m2epro_amazon_account_repricing`;
+CREATE TABLE `m2epro_amazon_account_repricing` (
+ `account_id` INT(11) UNSIGNED NOT NULL,
+ `email` VARCHAR(255) DEFAULT NULL,
+ `token` VARCHAR(255) DEFAULT NULL,
+ `total_products` INT(11) UNSIGNED NOT NULL DEFAULT 0,
+ `regular_price_mode` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
+ `regular_price_attribute` VARCHAR(255) NOT NULL,
+ `regular_price_coefficient` VARCHAR(255) NOT NULL,
+ `regular_price_variation_mode` TINYINT(2) UNSIGNED NOT NULL,
+ `min_price_mode` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
+ `min_price_value` DECIMAL(14, 2) UNSIGNED DEFAULT NULL,
+ `min_price_percent` INT(11) UNSIGNED DEFAULT NULL,
+ `min_price_attribute` VARCHAR(255) NOT NULL,
+ `min_price_coefficient` VARCHAR(255) NOT NULL,
+ `min_price_variation_mode` TINYINT(2) UNSIGNED NOT NULL,
+ `max_price_mode` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
+ `max_price_value` DECIMAL(14, 2) UNSIGNED DEFAULT NULL,
+ `max_price_percent` INT(11) UNSIGNED DEFAULT NULL,
+ `max_price_attribute` VARCHAR(255) NOT NULL,
+ `max_price_coefficient` VARCHAR(255) NOT NULL,
+ `max_price_variation_mode` TINYINT(2) UNSIGNED NOT NULL,
+ `disable_mode` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
+ `disable_mode_attribute` VARCHAR(255) NOT NULL,
+ `last_checked_listing_product_update_date` DATETIME DEFAULT NULL,
+ `update_date` DATETIME DEFAULT NULL,
+ `create_date` DATETIME DEFAULT NULL,
+ PRIMARY KEY (`account_id`)
+)
+ENGINE = INNODB
+CHARACTER SET utf8
+COLLATE utf8_general_ci;
+
DROP TABLE IF EXISTS `m2epro_amazon_dictionary_category`;
CREATE TABLE `m2epro_amazon_dictionary_category` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -2389,11 +2451,13 @@
`is_afn_channel` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
`is_isbn_general_id` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
`is_repricing` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
+ `is_repricing_disabled` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`listing_other_id`),
INDEX `general_id` (`general_id`),
INDEX `is_afn_channel` (`is_afn_channel`),
INDEX `is_isbn_general_id` (`is_isbn_general_id`),
INDEX `is_repricing` (`is_repricing`),
+ INDEX `is_repricing_disabled` (`is_repricing_disabled`),
INDEX `online_price` (`online_price`),
INDEX `online_qty` (`online_qty`),
INDEX `sku` (`sku`),
@@ -2425,14 +2489,15 @@
`online_sale_price_start_date` DATETIME DEFAULT NULL,
`online_sale_price_end_date` DATETIME DEFAULT NULL,
`online_qty` INT(11) UNSIGNED DEFAULT NULL,
+ `is_repricing` TINYINT(2) UNSIGNED DEFAULT NULL,
`is_afn_channel` TINYINT(2) UNSIGNED DEFAULT NULL,
`is_isbn_general_id` TINYINT(2) UNSIGNED DEFAULT NULL,
`is_general_id_owner` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
- `is_repricing` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
`defected_messages` TEXT DEFAULT NULL,
PRIMARY KEY (`listing_product_id`),
INDEX `general_id` (`general_id`),
INDEX `search_settings_status` (`search_settings_status`),
+ INDEX `is_repricing` (`is_repricing`),
INDEX `is_afn_channel` (`is_afn_channel`),
INDEX `is_isbn_general_id` (`is_isbn_general_id`),
INDEX `is_variation_product_matched` (`is_variation_product_matched`),
@@ -2446,7 +2511,6 @@
INDEX `variation_parent_need_processor` (`variation_parent_need_processor`),
INDEX `variation_parent_id` (`variation_parent_id`),
INDEX `is_general_id_owner` (`is_general_id_owner`),
- INDEX `is_repricing` (`is_repricing`),
INDEX `template_shipping_override_id` (`template_shipping_override_id`),
INDEX `template_description_id` (`template_description_id`)
)
@@ -2454,6 +2518,25 @@
CHARACTER SET utf8
COLLATE utf8_general_ci;
+DROP TABLE IF EXISTS `m2epro_amazon_listing_product_repricing`;
+CREATE TABLE `m2epro_amazon_listing_product_repricing` (
+ `listing_product_id` INT(11) UNSIGNED NOT NULL,
+ `is_online_disabled` TINYINT(2) UNSIGNED NOT NULL,
+ `online_regular_price` DECIMAL(12, 4) UNSIGNED DEFAULT NULL,
+ `online_min_price` DECIMAL(12, 4) UNSIGNED DEFAULT NULL,
+ `online_max_price` DECIMAL(12, 4) UNSIGNED DEFAULT NULL,
+ `is_process_required` TINYINT(2) UNSIGNED NOT NULL DEFAULT 0,
+ `last_synchronization_date` DATETIME DEFAULT NULL,
+ `update_date` DATETIME DEFAULT NULL,
+ `create_date` DATETIME DEFAULT NULL,
+ PRIMARY KEY (`listing_product_id`),
+ INDEX `is_online_disabled` (`is_online_disabled`),
+ INDEX `is_process_required` (`is_process_required`)
+)
+ENGINE = INNODB
+CHARACTER SET utf8
+COLLATE utf8_general_ci;
+
DROP TABLE IF EXISTS `m2epro_amazon_listing_product_variation`;
CREATE TABLE `m2epro_amazon_listing_product_variation` (
`listing_product_variation_id` INT(11) UNSIGNED NOT NULL,
@@ -2813,7 +2896,7 @@
('/amazon/order/settings/marketplace_25/', 'use_first_street_line_as_company', '1', '0 - disable, \r\n1 - enable',
'2013-05-08 00:00:00', '2013-05-08 00:00:00'),
('/amazon/repricing/', 'mode', '0', '0 - disable, \r\n1 - enable', '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
- ('/amazon/repricing/', 'base_url', 'http://repricer.m2epro.com/', 'Repricing Tool base url',
+ ('/amazon/repricing/', 'base_url', 'https://repricer.m2epro.com/connector/m2epro/', 'Repricing Tool base url',
'2013-05-08 00:00:00', '2013-05-08 00:00:00');
INSERT INTO `m2epro_synchronization_config` (`group`,`key`,`value`,`notice`,`update_date`,`create_date`) VALUES
@@ -2833,12 +2916,6 @@
'2013-05-08 00:00:00', '2013-05-08 00:00:00'),
('/amazon/defaults/update_defected_listings_products/', 'last_time', NULL, 'Last check time',
'2013-05-08 00:00:00', '2013-05-08 00:00:00'),
- ('/amazon/defaults/update_repricing/', 'interval', '86400', 'in seconds',
- '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
- ('/amazon/defaults/update_repricing/', 'mode', '1', '0 - disable, \r\n1 - enable',
- '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
- ('/amazon/defaults/update_repricing/', 'last_time', NULL, 'Last check time',
- '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
('/amazon/defaults/run_parent_processors/', 'interval', '300', 'in seconds',
'2013-05-08 00:00:00', '2013-05-08 00:00:00'),
('/amazon/defaults/run_parent_processors/', 'mode', '1', '0 - disable, \r\n1 - enable',
@@ -2877,6 +2954,8 @@
'2013-05-08 00:00:00', '2013-05-08 00:00:00'),
('/amazon/templates/', 'mode', '1', '0 - disable, \r\n1 - enable',
'2013-05-08 00:00:00', '2013-05-08 00:00:00'),
+ ('/amazon/templates/repricing/', 'mode', '1', '0 - disable, \r\n1 - enable',
+ '2013-05-08 00:00:00', '2013-05-08 00:00:00'),
('/amazon/templates/list/', 'mode', '1', '0 - disable, \r\n1 - enable',
'2013-05-08 00:00:00', '2013-05-08 00:00:00'),
('/amazon/templates/relist/', 'mode', '1', '0 - disable, \r\n1 - enable',
diff --git a/app/code/community/Ess/M2ePro/sql/M2ePro_setup/mysql4-upgrade-6.4.6.1-6.4.7.php b/app/code/community/Ess/M2ePro/sql/M2ePro_setup/mysql4-upgrade-6.4.6.1-6.4.7.php
new file mode 100644
index 000000000..6fef4dac3
--- /dev/null
+++ b/app/code/community/Ess/M2ePro/sql/M2ePro_setup/mysql4-upgrade-6.4.6.1-6.4.7.php
@@ -0,0 +1,255 @@
+startSetup();
+
+$connection = $installer->getConnection();
+
+//########################################
+
+if (!$installer->getTablesObject()->isExists('amazon_account_repricing')) {
+ $installer->run(<<getTablesObject()->isExists('amazon_listing_product_repricing')) {
+ $installer->run(<<getTableModifier('amazon_listing_other')
+ ->addColumn('is_repricing_disabled', 'TINYINT(2) UNSIGNED NOT NULL', 0, 'is_repricing', true, false)
+ ->commit();
+
+// -------------------------------------
+
+if ($installer->getTableModifier('amazon_listing_product')->isColumnExists('is_repricing')) {
+
+ $installer->run(<<getTableModifier('amazon_account')->isColumnExists('repricing')) {
+
+ $amazonAccountTable = $installer->getTablesObject()->getFullName('amazon_account');
+ $amazonAccountRepricingTable = $installer->getTablesObject()->getFullName('amazon_account_repricing');
+
+ $amazonAccounts = $installer->getConnection()->query("
+ SELECT * FROM {$amazonAccountTable}
+ WHERE `repricing` IS NOT NULL;
+ ")->fetchAll(PDO::FETCH_ASSOC);
+
+ foreach ($amazonAccounts as $amazonAccount) {
+ $repricingData = json_decode($amazonAccount['repricing'], true);
+
+ if (empty($repricingData)) {
+ continue;
+ }
+
+ $amazonAccountRepricingData = array(
+ 'account_id' => $amazonAccount['account_id']
+ );
+
+ if (!empty($repricingData['email'])) {
+ $amazonAccountRepricingData['email'] = $repricingData['email'];
+ }
+
+ if (!empty($repricingData['token'])) {
+ $amazonAccountRepricingData['token'] = $repricingData['token'];
+ }
+
+ if (!empty($repricingData['info']['total_products'])) {
+ $amazonAccountRepricingData['total_products'] = $repricingData['info']['total_products'];
+ }
+
+ $connection->insert($amazonAccountRepricingTable, $amazonAccountRepricingData);
+ }
+
+ $installer->getTableModifier('amazon_account')->dropColumn('repricing');
+}
+
+// -------------------------------------
+
+/*
+ INSERT INTO `m2epro_config` (`group`,`key`,`value`,`notice`,`update_date`,`create_date`) VALUES
+ ('/cron/task/repricing_synchronization_general/', 'mode', '1', '0 - disable, \r\n1 - enable',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00'),
+ ('/cron/task/repricing_synchronization_general/', 'interval', '86400', 'in seconds',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00'),
+ ('/cron/task/repricing_synchronization_general/', 'last_run', NULL, 'date of last run',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00');
+*/
+
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_synchronization_general/", "mode", 1, "0 - disable,\r\n1 - enable");
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_synchronization_general/", "interval", 86400, "in seconds");
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_synchronization_general/", "last_run", NULL, "date of last access");
+
+/*
+ INSERT INTO `m2epro_config` (`group`,`key`,`value`,`notice`,`update_date`,`create_date`) VALUES
+ ('/cron/task/repricing_synchronization_actual_price/', 'mode', '1', '0 - disable, \r\n1 - enable',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00'),
+ ('/cron/task/repricing_synchronization_actual_price/', 'interval', '3600', 'in seconds',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00'),
+ ('/cron/task/repricing_synchronization_actual_price/', 'last_run', NULL, 'date of last run',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00');
+*/
+
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_synchronization_actual_price/", "mode", 1, "0 - disable,\r\n1 - enable");
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_synchronization_actual_price/", "interval", 3600, "in seconds");
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_synchronization_actual_price/", "last_run", NULL, "date of last access");
+
+// -------------------------------------
+
+/*
+ INSERT INTO `m2epro_config` (`group`,`key`,`value`,`notice`,`update_date`,`create_date`) VALUES
+ ('/cron/task/repricing_update_settings/', 'mode', '1', '0 - disable, \r\n1 - enable',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00'),
+ ('/cron/task/repricing_update_settings/', 'interval', '3600', 'in seconds',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00'),
+ ('/cron/task/repricing_update_settings/', 'last_run', NULL, 'date of last run',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00');
+*/
+
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_update_settings/", "mode", 1, "0 - disable,\r\n1 - enable");
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_update_settings/", "interval", 3600, "in seconds");
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_update_settings/", "last_run", NULL, "date of last access");
+
+// -------------------------------------
+
+/*
+ INSERT INTO `m2epro_config` (`group`,`key`,`value`,`notice`,`update_date`,`create_date`) VALUES
+ ('/cron/task/repricing_inspect_products/', 'mode', '1', '0 - disable, \r\n1 - enable',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00'),
+ ('/cron/task/repricing_inspect_products/', 'interval', '3600', 'in seconds',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00'),
+ ('/cron/task/repricing_inspect_products/', 'last_run', NULL, 'date of last run',
+ '2016-01-01 00:00:00', '2016-01-01 00:00:00');
+*/
+
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_inspect_products/", "mode", 1, "0 - disable,\r\n1 - enable");
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_inspect_products/", "interval", 3600, "in seconds");
+$installer->getMainConfigModifier()
+ ->insert("/cron/task/repricing_inspect_products/", "last_run", NULL, "date of last run");
+
+// -------------------------------------
+
+/*
+ DELETE FROM `m2epro_synchronization_config` WHERE `group` = '/amazon/general/update_repricing/';
+*/
+
+$installer->getSynchConfigModifier()
+ ->getEntity('/amazon/general/update_repricing/', 'mode')->delete();
+$installer->getSynchConfigModifier()
+ ->getEntity('/amazon/general/update_repricing/', 'interval')->delete();
+$installer->getSynchConfigModifier()
+ ->getEntity('/amazon/general/update_repricing/', 'last_time')->delete();
+
+/*
+ INSERT INTO `m2epro_synchronization_config`(`group`, `key`, `value`, `notice`) VALUES
+ ('/amazon/templates/repricing/', 'mode', '1', '0 - disable, \r\n1 - enable');
+*/
+
+$installer->getSynchConfigModifier()
+ ->insert('/amazon/templates/repricing/', 'mode', 1, '0 - disable, \r\n1 - enable');
+
+// -------------------------------------
+
+/*
+ UPDATE `m2epro_config`
+ SET `value` = 'https://repricer.m2epro.com/connector/m2epro/'
+ WHERE `group` = '/amazon/repricing/' AND
+ `key` = 'base_url';
+*/
+
+$installer->getMainConfigModifier()
+ ->getEntity('/amazon/repricing/', 'base_url')->updateValue('https://repricer.m2epro.com/connector/m2epro/');
+
+//########################################
+
+$installer->endSetup();
+
+//########################################
\ No newline at end of file
diff --git a/app/design/adminhtml/default/default/template/M2ePro/common/amazon/account/tabs/general.phtml b/app/design/adminhtml/default/default/template/M2ePro/common/amazon/account/tabs/general.phtml
index 90b38980c..7e8aebb55 100644
--- a/app/design/adminhtml/default/default/template/M2ePro/common/amazon/account/tabs/general.phtml
+++ b/app/design/adminhtml/default/default/template/M2ePro/common/amazon/account/tabs/general.phtml
@@ -59,7 +59,10 @@
)); ?>);
M2ePro.translator.add( Mage::helper('M2ePro')->__('Be attentive! By Deleting Account you delete all information on it from M2E Pro Server. This will cause inappropriate work of all Accounts\' copies.')
+ 'Be attentive! By Deleting Account you delete all information on it from M2E Pro Server. This will cause inappropriate work of all Accounts\' copies.' => Mage::helper('M2ePro')->__('Be attentive! By Deleting Account you delete all information on it from M2E Pro Server. This will cause inappropriate work of all Accounts\' copies.'),
+ 'Unlink Repricing Tool' => Mage::helper('M2ePro')->__('Unlink From Repricing Tool'),
+ 'Please enter correct value.' => Mage::helper('M2ePro')->__('Please enter correct value.'),
+ 'Coefficient is not valid.' => Mage::helper('M2ePro')->__('Coefficient is not valid.'),
)); ?>);
M2ePro.formData.id = 'getRequest()->getParam('id'); ?>';
diff --git a/app/design/adminhtml/default/default/template/M2ePro/common/amazon/account/tabs/repricing.phtml b/app/design/adminhtml/default/default/template/M2ePro/common/amazon/account/tabs/repricing.phtml
index a7c111932..de83aa5d1 100644
--- a/app/design/adminhtml/default/default/template/M2ePro/common/amazon/account/tabs/repricing.phtml
+++ b/app/design/adminhtml/default/default/template/M2ePro/common/amazon/account/tabs/repricing.phtml
@@ -1,5 +1,16 @@
getGeneralFromAllAttributeSets();
+
+$attributesByInputTypes = array(
+ 'text_price' => $magentoAttributeHelper->filterByInputTypes($generalAttributes, array('text', 'price')),
+ 'boolean' => $magentoAttributeHelper->filterByInputTypes($generalAttributes, array('boolean')),
+);
+
?>
+
+
__('
@@ -46,8 +94,9 @@
at the top of the Grid.
In case you decide to Stop using the Repricing Tool for M2E Pro Listings, you can click on Unlink Button.
- It will break the Connection between your M2E Pro Amazon Account and Repricing Service.
- ');
+ It will break the Connection between your M2E Pro Amazon Account and Repricing Service.
+ More detailed information on how to work with the Repricing Service you can find here.
+ ', Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(NULL, NULL, 'x/bwAkAQ'));
?>
__('This is a number of Products managed by the Repricing Tool in your M2E Pro.'); ?>
+
+
+
+
+
+
+
+m2eProRepricingProducts > 0) { ?>
+
+
+
+
__('Additional Settings'); ?>
+
+
+
+
+
+
+
+
-
-
+
+
+
+
- __('
- This Option allows you to Synchronize M2E Pro and Repricer Inventory. For example, if you manually
- Add new Products to the Repricer not via M2E Pro, you need to notify M2E Pro that
- these Products are now automatically managed by the Repricing Service. By Synchronizing data you will let M2E Pro
- know that these Products are currently being Updated by the Tool.
- '); ?>
+ __('
+ Regular Price is a common Price without any changes. This value is used for Repricing Rules configuration
+ and plays the role of the roll-back Price in case the Rules cannot be applied or the Goals provided
+ in the Repricing Rules cannot be achieved. You can find more detailed information about it
+ here.
+ You can select the configurations for automatic updating of the Regular Price value by selecting from these options:
+ Manually - means that the according value will be manually provided for the Products;
+ According to Selling Format Policy settings - means that the Price value will
+ be taken based on the Selling Format Policy settings, which is used for this Item in the Listing;
+ From Product Price - means that the Price value from Magento Product Price will be taken;
+ From Special Price - means that the Price value from Magento Special Price will be taken;
+ From Magento Attribute - means that the Price value will be taken from the selected Attribute.
+
+ Please note, only common (available in all Attribute sets in your Magento), Text or Price field Attributes are available for selection.
+
+ More detailed information on how to work with this option you can find here.
+ ', Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(NULL, NULL, 'x/igAkAQ'), Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(NULL, NULL, 'x/JQMkAQ')); ?>
+ __('Determines where the Price for Configurable and Bundle Products Options should be taken from.'); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ __('
+ Min Price value is the lowest Price which you could sell your Item for.
+ You can find more detailed information about it here.
+
+ You can select the configurations for automatic updating of the Min Price value by selecting from these options:
+ Manually - means that the according value will be manually provided for the Products;
+ Less than Regular Price by Value - means that the Min Price value will be taken as a Regular Price
+ decreased by the value you set.
+ For example, you set the Value 5. Your Regular price is 17. So the Min Price will be 12.
+ Less than Regular Price by Percent - means that the Min Price value will be taken as a Regular Price
+ decreased by the percent you set.
+ For example, you set 50 Percent. Your regular price is 10. So the Min Price will be 5.
+ From Magento Attribute - means that the Min Price value will be taken from the selected Attribute.
+ Please note, only common (available in all Attribute sets in your Magento), Text or Price field Attributes are available
+ for selection.
+
+ More detailed information on how to work with this option you can find here.
+ ', Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(NULL, NULL, 'x/igAkAQ'), Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(NULL, NULL, 'x/JQMkAQ')); ?>
+
+ __('Provide the Value which you would like to decrease the Regular Price by.'); ?>
+
+
+
+
+
+
+
+
+
+
+
+ __('Provide the Percent Value which you would like to decrease the Regular Price by.'); ?>
+
+
+
+
+
+
+
+
+
+
+
+ __('Determines where the Price for Configurable and Bundle Products Options should be taken from.'); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ __('
+ Min Price value is required to be specified to guarantee that M2E
+ Amazon Repricing Service will never set the Price of your Offer
+ lower than Min allowed Price. It allows Sellers to automatically
+ prevent any incorrect Price values to be set for their Items.
+ The dynamic updating of the Min Price value cannot give the 100%
+ assurance that all the data will be properly set and the correct
+ Price will be used for the Item. Thus, more preferable and reliable
+ option is Manual updating of the Min Price value.
+ '); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ __('
+ Max Price value is the highest Price which you could sell your Item for.
+ You can find more detailed information about it here.
+
+ Manually - means that the according value will be manually provided for the Products;
+ More than Regular Price by Value - means that the Max Price value will be taken as a Regular
+ Price increased by the value you set.
+ For example, you set the Value 5. Your Regular price is 17. So the Max Price will be 22.
+ More than Regular Price by Percent - means that the Max Price value will be taken as a Regular
+ Price increased by the percent you set.
+ For example, you set 50 Percent. Your regular price is 10. So the Max Price will be 15.
+ From Magento Attribute - means that the Max Price value will be taken from the selected Attribute.
+
+ Please note, only common (available in all Attribute sets in your Magento), Text or Price field Attributes are
+ available for selection.
+
+ More detailed information on how to work with this option you can find here.
+ ', Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(NULL, NULL, 'x/igAkAQ'), Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(NULL, NULL, 'x/JQMkAQ')); ?>
+
+ __('Provide the Value which you would like to increase the Regular Price by.'); ?>
+
+
+
+
+
+
+
+
+
+
+
+ __('Provide the Percent Value which you would like to decrease the Regular Price by.'); ?>
+
+
+
+
+
+
+
+
+
+
+
+ __('Determines where the Price for Configurable and Bundle Products Options should be taken from.'); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ __('
+ Max Price value is required to be specified to guarantee that M2E
+ Amazon Repricing Service will never set the Price of your Offer
+ higher than Max allowed Price. It allows Sellers to automatically
+ prevent any incorrect Price values to be set for their Items.
+ The dynamic updating of the Max Price value cannot give the 100%
+ assurance that all the data will be properly set and the correct
+ Price will be used for the Item. Thus, more preferable and reliable
+ option is Manual updating of the Max Price value.
+ '); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ __('
+ This feature allows you to set when you would like to disable dynamic price repricing for your items.
+ You can find more detailed information about it here.
+
+ Manually - means that the dynamic repricing can be disabled only manually;
+ When Status is Disabled - means that the dynamic repricing will be automatically stopped for
+ the Product which has Disabled status in Magento;
+ From Magento Attribute - means that the dynamic repricing will be automatically stopped for
+ the product if Yes value is provided in the selected Attribute.
+ Please note, only common (available in all Attribute sets in your Magento), Text or Price field Attributes are
+ available for selection.
+
+ More detailed information on how to work with this option you can find here.
+ ', Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(NULL, NULL, 'x/PAMkAQ'), Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(NULL, NULL, 'x/JQMkAQ')); ?>
+