Skip to content

Commit a25fc54

Browse files
committed
1.4.3 (FINAL RELEASE)
1 parent 02a43dd commit a25fc54

File tree

2,817 files changed

+4340
-6788
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,817 files changed

+4340
-6788
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.idea/

Block/Adminhtml/Account/Grid.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use Ess\M2ePro\Block\Adminhtml\Magento\Grid\AbstractGrid;
1212

1313
/**
14-
* Class Grid
15-
* @package Ess\M2ePro\Block\Adminhtml\Account
14+
* Class \Ess\M2ePro\Block\Adminhtml\Account\Grid
1615
*/
1716
class Grid extends AbstractGrid
1817
{

Block/Adminhtml/Account/Switcher.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
namespace Ess\M2ePro\Block\Adminhtml\Account;
1010

1111
/**
12-
* Class Switcher
13-
* @package Ess\M2ePro\Block\Adminhtml\Account
12+
* Class \Ess\M2ePro\Block\Adminhtml\Account\Switcher
1413
*/
1514
class Switcher extends \Ess\M2ePro\Block\Adminhtml\Component\Switcher
1615
{

Block/Adminhtml/Amazon/Account.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
namespace Ess\M2ePro\Block\Adminhtml\Amazon;
1010

1111
/**
12-
* Class Account
13-
* @package Ess\M2ePro\Block\Adminhtml\Amazon
12+
* Class \Ess\M2ePro\Block\Adminhtml\Amazon\Account
1413
*/
1514
class Account extends \Ess\M2ePro\Block\Adminhtml\Magento\Grid\AbstractContainer
1615
{

Block/Adminhtml/Amazon/Account/Edit.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use Ess\M2ePro\Block\Adminhtml\Magento\Form\AbstractContainer;
1212

1313
/**
14-
* Class Edit
15-
* @package Ess\M2ePro\Block\Adminhtml\Amazon\Account
14+
* Class \Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit
1615
*/
1716
class Edit extends AbstractContainer
1817
{

Block/Adminhtml/Amazon/Account/Edit/Form.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use Ess\M2ePro\Block\Adminhtml\Magento\Form\AbstractForm;
1212

1313
/**
14-
* Class Form
15-
* @package Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit
14+
* Class \Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit\Form
1615
*/
1716
class Form extends AbstractForm
1817
{

Block/Adminhtml/Amazon/Account/Edit/Tabs.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use Ess\M2ePro\Block\Adminhtml\Magento\Tabs\AbstractTabs;
1212

1313
/**
14-
* Class Tabs
15-
* @package Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit
14+
* Class \Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit\Tabs
1615
*/
1716
class Tabs extends AbstractTabs
1817
{

Block/Adminhtml/Amazon/Account/Edit/Tabs/General.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use Ess\M2ePro\Block\Adminhtml\Magento\Form\AbstractForm;
1212

1313
/**
14-
* Class General
15-
* @package Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit\Tabs
14+
* Class \Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit\Tabs\General
1615
*/
1716
class General extends AbstractForm
1817
{
@@ -318,7 +317,6 @@ protected function _prepareForm()
318317
'The specified Title is already used for other Account. Account Title must be unique.' => $this->__(
319318
'The specified Title is already used for other Account. Account Title must be unique.'
320319
),
321-
'You must choose Marketplace first.' => $this->__('You must choose Marketplace first.'),
322320
'M2E Pro was not able to get access to the Amazon Account. Please, make sure, that you choose correct ' .
323321
'Option on MWS Authorization Page and enter correct Merchant ID.' => $this->__(
324322
'M2E Pro was not able to get access to the Amazon Account.' .

Block/Adminhtml/Amazon/Account/Edit/Tabs/ListingOther.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
use Ess\M2ePro\Model\Amazon\Account;
1414

1515
/**
16-
* Class ListingOther
17-
* @package Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit\Tabs
16+
* Class \Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit\Tabs\ListingOther
1817
*/
1918
class ListingOther extends AbstractForm
2019
{

Block/Adminhtml/Amazon/Account/Edit/Tabs/Order.php

Lines changed: 12 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
use Ess\M2ePro\Model\Amazon\Account;
1414

1515
/**
16-
* Class Order
17-
* @package Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit\Tabs
16+
* Class \Ess\M2ePro\Block\Adminhtml\Amazon\Account\Edit\Tabs\Order
1817
*/
1918
class Order extends AbstractForm
2019
{
@@ -83,7 +82,10 @@ protected function _prepareForm()
8382
'source' => Account::MAGENTO_ORDERS_NUMBER_SOURCE_MAGENTO,
8483
'prefix' => [
8584
'mode' => Account::MAGENTO_ORDERS_NUMBER_PREFIX_MODE_NO,
86-
'prefix' => '',
85+
'prefix' => '',
86+
'afn-prefix' => '',
87+
'prime-prefix' => '',
88+
'b2b-prefix' => '',
8789
],
8890
],
8991
'tax' => [
@@ -340,41 +342,14 @@ protected function _prepareForm()
340342
);
341343

342344
$fieldset->addField(
343-
'magento_orders_number_prefix_prefix',
344-
'text',
345-
[
346-
'container_id' => 'magento_orders_number_prefix_container',
347-
'class' => 'M2ePro-account-order-number-prefix',
348-
'name' => 'magento_orders_settings[number][prefix][prefix]',
349-
'label' => $this->__('Prefix'),
350-
'value' => $formData['magento_orders_settings']['number']['prefix']['prefix'],
351-
'required' => true,
352-
'maxlength' => 5
353-
]
354-
);
355-
356-
$fieldset->addField(
357-
'sample_magento_order_id',
358-
'hidden',
359-
[
360-
'value' => $this->getHelper('Magento')->getNextMagentoOrderId()
361-
]
362-
);
363-
364-
$fieldset->addField(
365-
'sample_amazon_order_id',
366-
'hidden',
345+
'magento_orders_number_prefix_container',
346+
self::CUSTOM_CONTAINER,
367347
[
368-
'value' => '141-4423723-6495633'
369-
]
370-
);
371-
372-
$fieldset->addField(
373-
'order_number_example',
374-
'label',
375-
[
376-
'label' => '',
377-
'note' => $this->__('e.g.') . ' <span id="order_number_example_container"></span>'
348+
'text' => $this->createBlock('Amazon_Account_Edit_Tabs_Order_PrefixesTable')
349+
->addData(['form_data' => $formData])
350+
->toHtml(),
351+
'css_class' => 'm2epro-fieldset-table',
352+
'style' => 'padding: 0 !important;'
378353
]
379354
);
380355

@@ -780,68 +755,8 @@ protected function _prepareForm()
780755

781756
$this->jsTranslator->addTranslations([
782757
'No Customer entry is found for specified ID.' => $this->__('No Customer entry is found for specified ID.'),
783-
'Prefix length should not be greater than 5 characters.' => $this->__(
784-
'Prefix length should not be greater than 5 characters.'
785-
)
786758
]);
787759

788-
$formData['magento_orders_settings']['listing']['mode'] = $this->getHelper('Data')->escapeJs(
789-
$formData['magento_orders_settings']['listing']['mode']
790-
);
791-
$formData['magento_orders_settings']['listing']['store_mode'] = $this->getHelper('Data')->escapeJs(
792-
$formData['magento_orders_settings']['listing']['store_mode']
793-
);
794-
$formData['magento_orders_settings']['listing']['store_id'] = $this->getHelper('Data')->escapeJs(
795-
$formData['magento_orders_settings']['listing']['store_id']
796-
);
797-
798-
$formData['magento_orders_settings']['listing_other']['mode'] = $this->getHelper('Data')->escapeJs(
799-
$formData['magento_orders_settings']['listing_other']['mode']
800-
);
801-
$formData['magento_orders_settings']['listing_other']['store_id'] = $this->getHelper('Data')->escapeJs(
802-
$formData['magento_orders_settings']['listing_other']['store_id']
803-
);
804-
$formData['magento_orders_settings']['listing_other']['product_mode'] = $this->getHelper('Data')->escapeJs(
805-
$formData['magento_orders_settings']['listing_other']['product_mode']
806-
);
807-
808-
$formData['magento_orders_settings']['customer']['mode'] = $this->getHelper('Data')->escapeJs(
809-
$formData['magento_orders_settings']['customer']['mode']
810-
);
811-
$formData['magento_orders_settings']['customer']['id'] = $this->getHelper('Data')->escapeJs(
812-
$formData['magento_orders_settings']['customer']['id']
813-
);
814-
$formData['magento_orders_settings']['customer']['website_id'] = $this->getHelper('Data')->escapeJs(
815-
$formData['magento_orders_settings']['customer']['website_id']
816-
);
817-
$formData['magento_orders_settings']['customer']['group_id'] = $this->getHelper('Data')->escapeJs(
818-
$formData['magento_orders_settings']['customer']['group_id']
819-
);
820-
821-
$this->js->add(<<<JS
822-
823-
M2ePro.formData.magento_orders_listings_mode = "{$formData['magento_orders_settings']['listing']['mode']}";
824-
M2ePro.formData.magento_orders_listings_store_mode
825-
= "{$formData['magento_orders_settings']['listing']['store_mode']}";
826-
M2ePro.formData.magento_orders_listings_store_id = "{$formData['magento_orders_settings']['listing']['store_id']}";
827-
828-
M2ePro.formData.magento_orders_listings_other_mode
829-
= "{$formData['magento_orders_settings']['listing_other']['mode']}";
830-
M2ePro.formData.magento_orders_listings_other_store_id
831-
= "{$formData['magento_orders_settings']['listing_other']['store_id']}";
832-
M2ePro.formData.magento_orders_listings_other_product_mode
833-
= "{$formData['magento_orders_settings']['listing_other']['product_mode']}";
834-
835-
M2ePro.formData.magento_orders_customer_mode = "{$formData['magento_orders_settings']['customer']['mode']}";
836-
M2ePro.formData.magento_orders_customer_id = "{$formData['magento_orders_settings']['customer']['id']}";
837-
M2ePro.formData.magento_orders_customer_new_website_id
838-
= "{$formData['magento_orders_settings']['customer']['website_id']}";
839-
M2ePro.formData.magento_orders_customer_new_group_id
840-
= "{$formData['magento_orders_settings']['customer']['group_id']}";
841-
842-
JS
843-
);
844-
845760
return parent::_prepareForm();
846761
}
847762
}

0 commit comments

Comments
 (0)