1
1
<?php
2
2
3
+ /*
4
+ * @author M2E Pro Developers Team
5
+ * @copyright M2E LTD
6
+ * @license Commercial use is forbidden
7
+ */
8
+
3
9
namespace Ess \M2ePro \Block \Adminhtml \Amazon \Account \Edit \Tabs ;
4
10
5
11
use Ess \M2ePro \Block \Adminhtml \Magento \Form \AbstractForm ;
@@ -37,7 +43,7 @@ protected function _prepareForm()
37
43
self ::HELP_BLOCK ,
38
44
[
39
45
'content ' => $ this ->__ (<<<HTML
40
- You can use the <strong>Repricing Tool</strong> developed by M2E Pro Team to improve your
46
+ You can use the <strong>Repricing Tool</strong> developed by M2E Pro Team to improve your
41
47
Offer position on Amazon Channel. Repricing functionality provides you with the constant edge over your Competitors.
42
48
<br /><br />
43
49
Use <strong>Link Now</strong> button to add your M2E Pro Amazon Account to Amazon Repricing Service.
@@ -52,7 +58,7 @@ protected function _prepareForm()
52
58
You can <strong>Add/Remove Items</strong> to/from the Repricing Service via M2E Pro.
53
59
Select appropriate action in Seller Central View Mode of your M2E Pro Listing.
54
60
<br /><br />
55
- In case you decide to stop using the Repricing Tool for M2E Pro Listings, you can click on
61
+ In case you decide to stop using the Repricing Tool for M2E Pro Listings, you can click on
56
62
<strong>Unlink</strong> button. The repricing process will be stopped for Products from this M2E Pro Amazon Account.
57
63
The Product Prices will be updated via M2E Pro again.
58
64
<br /><br />
@@ -250,23 +256,23 @@ protected function _prepareForm()
250
256
$ this ->getTooltipHtml (
251
257
$ this ->__ ('
252
258
<strong>Regular Price</strong> is a common Price without any changes.
253
- This value is used for Repricing Rules configuration and plays the role of the roll-back Price in case
254
- the Rules cannot be applied or the Goals provided in the Repricing Rules cannot be achieved.
259
+ This value is used for Repricing Rules configuration and plays the role of the roll-back Price in case
260
+ the Rules cannot be applied or the Goals provided in the Repricing Rules cannot be achieved.
255
261
<a href="%url1%" target="_blank">Learn more</a> about using the Regular Price in Repricing Service.
256
262
<br /><br />
257
263
Specify the settings for automatic update of the Regular Price:
258
264
<br /><br />
259
265
<strong>Manually</strong> - means that the Product Price value will be provided manually;<br />
260
- <strong>According to Selling Format Policy settings</strong> - means that the Price value will be set based
266
+ <strong>According to Selling Format Policy settings</strong> - means that the Price value will be set based
261
267
on the Selling Format Policy settings;<br />
262
- <strong>From Product Price</strong> - means that the Price value
268
+ <strong>From Product Price</strong> - means that the Price value
263
269
will be taken from Magento Product Price Attribute;<br />
264
- <strong>From Special Price</strong> - means that the Price value
270
+ <strong>From Special Price</strong> - means that the Price value
265
271
will be taken from Magento Special Price Attribute;<br />
266
- <strong>From Magento Attribute</strong> - means that the Price value
272
+ <strong>From Magento Attribute</strong> - means that the Price value
267
273
will be taken from the selected Magento Attribute.<br />
268
274
<br />
269
- Please note, only common (available in all Attribute sets in your Magento) Text or Price field Attributes
275
+ Please note, only common (available in all Attribute sets in your Magento) Text or Price field Attributes
270
276
are available for the selection.
271
277
<br /><br />
272
278
More detailed information on how to work with this option can be found
@@ -397,21 +403,21 @@ protected function _prepareForm()
397
403
$ fieldTooltip = '<div class="fix-magento-tooltip" style="margin-left: 20px; margin-right: 20px;"> ' .
398
404
$ this ->getTooltipHtml (
399
405
$ this ->__ ('
400
- <strong>Min Price</strong> is the lowest Price which you could sell your Item at.
406
+ <strong>Min Price</strong> is the lowest Price which you could sell your Item at.
401
407
<a href="%url1%" target="_blank">Learn more</a> about using the Max Price in Repricing Service.
402
408
<br /><br />
403
409
Specify the settings for automatic update of the Min Price:
404
410
<br /><br />
405
411
<strong>Manually</strong> - means that the Product Price value will be provided manually;<br />
406
- <strong>Less than Regular Price by Value</strong> - means that the Min Price value
412
+ <strong>Less than Regular Price by Value</strong> - means that the Min Price value
407
413
will be taken as a Regular Price decreased by the value you set.
408
414
For example, you set the Value 5. Your Regular price is 17. So the Min Price will be 12.<br />
409
- <strong>Less than Regular Price by Percent</strong> - means that the Min Price value
415
+ <strong>Less than Regular Price by Percent</strong> - means that the Min Price value
410
416
will be taken as a Regular Price decreased by the percent you set.
411
417
For example, you set 50%. Your regular price is 10. So the Min Price will be 5.<br />
412
418
<strong>From Magento Attribute</strong> - means that the Price value will be taken from the selected Magento Attribute.
413
419
<br /><br />
414
- Please note, only common (available in all Attribute sets in your Magento)
420
+ Please note, only common (available in all Attribute sets in your Magento)
415
421
Text or Price field Attributes are available for the selection.
416
422
<br /><br />
417
423
More detailed information on how to work with this option can be found
@@ -604,21 +610,21 @@ protected function _prepareForm()
604
610
$ fieldTooltip = '<div class="fix-magento-tooltip" style="margin-left: 20px; margin-right: 20px;"> ' .
605
611
$ this ->getTooltipHtml (
606
612
$ this ->__ ('
607
- <strong>Max Price</strong> is the highest Price which you could sell your Item at.
613
+ <strong>Max Price</strong> is the highest Price which you could sell your Item at.
608
614
<a href="%url%" target="_blank">Learn more</a> about using the Min Price in Repricing Service.
609
615
<br /><br />
610
616
Specify the settings for automatic update of the Max Price:
611
617
<br /><br />
612
618
<strong>Manually</strong> - means that the Product Price value will be provided manually;<br />
613
- <strong>More than Regular Price by Value</strong> - means that the Max Price value
619
+ <strong>More than Regular Price by Value</strong> - means that the Max Price value
614
620
will be taken as a Regular Price increased by the value you set.
615
621
For example, you set the Value 5. Your Regular price is 17. So the Max Price will be 22.<br />
616
- <strong>More than Regular Price by Percent</strong> - means that the Max Price value
622
+ <strong>More than Regular Price by Percent</strong> - means that the Max Price value
617
623
will be taken as a Regular Price increased by the percent you set.
618
624
For example, you set 50 Percent. Your regular price is 10. So the Max Price will be 15.<br />
619
625
<strong>From Magento Attribute</strong> - means that the Max Price value will be taken from the selected Attribute.
620
626
<br /><br />
621
- Please note, only common (available in all Attribute sets in your Magento)
627
+ Please note, only common (available in all Attribute sets in your Magento)
622
628
Text or Price field Attributes are available for the selection.
623
629
<br /><br />
624
630
More detailed information on how to work with this option can be found
@@ -821,18 +827,18 @@ protected function _prepareForm()
821
827
],
822
828
'create_magento_attribute ' => true ,
823
829
'value ' => $ value ,
824
- 'after_element_html ' => '
825
- <div class="fix-magento-tooltip" style="margin-left: 20px; margin-right: 20px;"> ' . $ this ->getTooltipHtml ($ this ->__ ('
826
- This option allows you to set when you would like to disable dynamic repricing for your M2E Pro Items.
830
+ 'after_element_html ' => '<div class="fix-magento-tooltip" style="margin-left: 20px; margin-right: 20px;"> ' .
831
+ $ this ->getTooltipHtml ($ this ->__ ('
832
+ This option allows you to set when you would like to disable dynamic repricing for your M2E Pro Items.
827
833
<a href="%url1%" target="_blank">Learn more</a> about the Product Disabling feature.
828
834
<br /><br />
829
835
<strong>Manually</strong> - means that the dynamic repricing can be disabled only manually;<br />
830
- <strong>When Status is Disabled</strong> - means that the dynamic repricing
836
+ <strong>When Status is Disabled</strong> - means that the dynamic repricing
831
837
will be automatically paused for the Product which has Disabled status in Magento;<br />
832
- <strong>From Magento Attribute</strong> - means that the dynamic repricing
838
+ <strong>From Magento Attribute</strong> - means that the dynamic repricing
833
839
will be automatically paused for the Product if ‘Yes’ value is provided in specified Attribute.
834
840
<br /><br />
835
- Please note, only common (available in all Attribute sets in your Magento)
841
+ Please note, only common (available in all Attribute sets in your Magento)
836
842
Text or Price field Attributes are available for the selection.
837
843
<br /><br />
838
844
More detailed information on how to work with this option can be found
@@ -843,28 +849,7 @@ protected function _prepareForm()
843
849
]
844
850
)->addCustomAttribute ('allowed_attribute_types ' , 'boolean ' );
845
851
846
- if ($ repricing ) {
847
- $ this ->js ->addOnReadyJs (<<<JS
848
- require([], function(){
849
- $('regular_price_mode')
850
- .observe('change', AmazonAccountObj.regular_price_mode_change)
851
- .simulate('change');
852
-
853
- $('min_price_mode')
854
- .observe('change', AmazonAccountObj.min_price_mode_change)
855
- .simulate('change');
856
-
857
- $('max_price_mode')
858
- .observe('change', AmazonAccountObj.max_price_mode_change)
859
- .simulate('change');
860
-
861
- $('disable_mode')
862
- .observe('change', AmazonAccountObj.disable_mode_change)
863
- .simulate('change');
864
- });
865
- JS
866
- );
867
- } else {
852
+ if (!$ repricing ) {
868
853
$ this ->js ->addOnReadyJs (<<<JS
869
854
require([
870
855
'M2ePro/Plugin/AreaWrapper'
0 commit comments