Ejemplo n.º 1
0
 protected function _prepareLayout()
 {
     $this->css->addFile('listing/autoAction.css');
     $this->css->addFile('amazon/style.css');
     $this->css->addFile('amazon/listing/view.css');
     $this->css->addFile('amazon/listing/product/variation/grid.css');
     if (!$this->getRequest()->isXmlHttpRequest()) {
         $this->appendHelpBlock(['content' => $this->__('<p>M2E Pro Listing is a group of Magento Products sold on a certain Marketplace from a 
                 particular Account. M2E Pro has several options to display the content of Listings 
                 referring to different data details. Each of the view options contains a unique set of 
                 available Actions accessible in the Mass Actions drop-down.</p><br>
                 <p>More detailed information you can find <a href="%url%" target="_blank">here</a>.</p>', $this->getHelper('Module\\Support')->getDocumentationUrl(NULL, NULL, 'x/eQItAQ'))]);
         $this->setPageActionsBlock('Amazon\\Listing\\View\\Switcher', 'amazon_listing_view_switcher');
         $this->getLayout()->getBlock('amazon_listing_view_switcher')->addData(['current_view_mode' => $this->getViewMode()]);
     }
     // ---------------------------------------
     $this->addButton('back', array('label' => $this->__('Back'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/amazon_listing/index') . '\');', 'class' => 'back'));
     // ---------------------------------------
     // ---------------------------------------
     $this->addButton('view_logs', array('label' => $this->__('View Log'), 'onclick' => 'window.open(\'' . $this->getUrl('*/amazon_listing_log/index', ['id' => $this->listing->getId()]) . '\');', 'class' => ''));
     // ---------------------------------------
     // ---------------------------------------
     $this->addButton('edit_settings', array('label' => $this->__('Edit Settings'), 'onclick' => '', 'class' => 'drop_down edit_default_settings_drop_down primary', 'class_name' => 'Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Button\\DropDown', 'options' => $this->getSettingsButtonDropDownItems()));
     // ---------------------------------------
     // ---------------------------------------
     $this->addButton('add_products', array('id' => 'add_products', 'label' => $this->__('Add Products'), 'class' => 'add', 'button_class' => '', 'class_name' => 'Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Button\\DropDown', 'options' => $this->getAddProductsDropDownItems()));
     // ---------------------------------------
     return parent::_prepareLayout();
 }
Ejemplo n.º 2
0
 protected function _prepareLayout()
 {
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('add');
     // ---------------------------------------
     $this->css->addFile('listing/autoAction.css');
     // ---------------------------------------
     if ((bool) $this->getRequest()->getParam('listing_creation', false)) {
         $url = $this->getUrl('*/*/sourceMode', array('_current' => true));
     } else {
         $url = $this->getUrl('*/ebay_listing/view', array('id' => $this->getRequest()->getParam('id')));
         if ($backParam = $this->getRequest()->getParam('back')) {
             $url = $this->getHelper('Data')->getBackUrl();
         }
     }
     $this->addButton('back', array('label' => $this->__('Back'), 'class' => 'back', 'onclick' => 'setLocation(\'' . $url . '\')'));
     // ---------------------------------------
     // ---------------------------------------
     $this->addButton('auto_action', array('label' => $this->__('Auto Add/Remove Rules'), 'class' => 'action-primary', 'onclick' => 'ListingAutoActionObj.loadAutoActionHtml();'));
     // ---------------------------------------
     // ---------------------------------------
     $this->addButton('continue', array('label' => $this->__('Continue'), 'class' => 'action-primary forward', 'onclick' => 'ListingProductAddObj.continue();'));
     // ---------------------------------------
     $this->jsTranslator->addTranslations(['Remove Category' => $this->__('Remove Category'), 'Add New Group' => $this->__('Add New Group'), 'Add/Edit Categories Rule' => $this->__('Add/Edit Categories Rule'), 'Start Configure' => $this->__('Start Configure')]);
     $this->jsPhp->addConstants($this->getHelper('Data')->getClassConstants('\\Ess\\M2ePro\\Model\\Listing'));
     return parent::_prepareLayout();
 }
Ejemplo n.º 3
0
 protected function _prepareLayout()
 {
     if ($this->getListingOtherId()) {
         $this->appendHelpBlock(['content' => $this->__('
             This Log contains all information about Actions, which were done on 3rd Party Listings.')]);
     }
     return parent::_prepareLayout();
 }
Ejemplo n.º 4
0
 protected function _prepareLayout()
 {
     $content = $this->__('<p>This Page displays the list of the Policies you are currently using in your M2E Pro Listings. 
         Policy is a combination of settings that can be used in different M2E Pro Listings.</p><br>
         <p>You can <strong>Delete</strong> a Policy only if it\'s not being used for an M2E Pro Listing.</p>');
     $this->appendHelpBlock(['content' => $content]);
     $addButtonProps = ['id' => 'add_new_product', 'label' => __('Add Policy'), 'class' => 'add', 'button_class' => '', 'class_name' => 'Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Button\\DropDown', 'options' => $this->_getAddTemplateButtonOptions()];
     $this->addButton('add', $addButtonProps);
     return parent::_prepareLayout();
 }
Ejemplo n.º 5
0
 protected function _prepareLayout()
 {
     if ($this->getListingOtherId()) {
         $this->appendHelpBlock(['content' => $this->__('This Log contains all information about Actions, which were done on 3rd Party
                                     Listings.<br/><br/>
                                     More detailed information about ability to work with this Page you can find
                                     <a href="%url%" target="_blank">here</a>.', $this->getHelper('Module\\Support')->getDocumentationUrl(NULL, NULL, 'x/MAAJAQ#Logs.-3rdPartyListingsLog(advancedmodeonly)'))]);
     }
     parent::_prepareLayout();
 }
Ejemplo n.º 6
0
    protected function _prepareLayout()
    {
        $content = $this->__('<p>This page displays the list of M2E Pro Listings. Generally, a Listing is a group of Magento Products 
            sold on a certain Marketplace by a particular Seller and managed by the same Selling, Synchronization, 
            etc. Policy Settings.</p><br>

            <p><strong>Note:</strong> Products which are not listed via M2E Pro will be automatically added to the
            3rd Party Listings if the import option is enabled in the Account settings.</p>');
        $this->appendHelpBlock(['content' => $content]);
        return parent::_prepareLayout();
    }
Ejemplo n.º 7
0
    protected function _prepareLayout()
    {
        $this->appendHelpBlock(['content' => $this->__(<<<HTML
<p>On this Page you can find information about eBay Accounts which can be managed via M2E Pro.</p><br>
<p>Settings for such configurations as eBay Orders along with Magento Order creation conditions,
3rd Party Listings import including options of Mapping them to Magento Products and Moving them to M2E Pro Listings,
etc. can be specified for each Account separately.</p><br>
<p><strong>Note:</strong> eBay Account can be deleted only if it is not being used for any of M2E Pro Listings.</p><br>
<p>More detailed information you can find <a href="%url%" target="_blank">here</a>.</p>
HTML
, $this->getHelper('Module\\Support')->getDocumentationUrl(NULL, NULL, 'x/4gEtAQ'))]);
        return parent::_prepareLayout();
    }
Ejemplo n.º 8
0
    protected function _prepareLayout()
    {
        $this->appendHelpBlock(['content' => $this->__(<<<HTML
                <p>The list below shows the 3rd Party Listings imported from a particular Account and Marketplace.
                It contains the functionality of manual and automatic Item Mapping and Moving. After the imported 
                Items are Mapped to Magento Products, they can be Moved into an M2E Pro 
                Listing for further management.</p><br>

                <p>The list is automatically updated if the import option is enabled in the Account settings.</p>
HTML
)]);
        return parent::_prepareLayout();
    }
Ejemplo n.º 9
0
 protected function _prepareLayout()
 {
     $content = $this->__('<p>This page displays the list of M2E Pro Listings. Generally, a Listing is a group of Magento Products
         sold on a certain Marketplace by a particular Seller and managed by the same Selling, Synchronization, etc.
         Policy Settings.</p><br>
         <p>Each Magento Product can be placed only once in each M2E Pro Listing.</p><br>
         <p><strong>Note:</strong> Products which are not listed via M2E Pro will be automatically added to the 
         3rd Party Listings if the import option is enabled in the Account settings.</p>');
     $this->appendHelpBlock(['content' => $content]);
     // ---------------------------------------
     $url = $this->getUrl('*/ebay_listing_create/index', array('step' => 1, 'clear' => 1));
     $this->addButton('add', array('label' => $this->__('Add Listing'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'action-primary', 'button_class' => ''));
     // ---------------------------------------
     return parent::_prepareLayout();
 }
Ejemplo n.º 10
0
    protected function _prepareLayout()
    {
        $this->css->addFile('listing/search/grid.css');
        $this->appendHelpBlock(['content' => $this->__(<<<HTML
            <p>This Search tool contains a list of all the Products present in M2E Pro Listings as 
            well as 3rd Party Listings.</p><br>
            <p>This functionality allows you to search for Products based common Item details or Attribute values 
            more effectively (Product Title, SKU, Stock Availability, etc.).</p><br>

            <p>However, it does not allow managing the settings configured for the Products. 
            If you need to add/edit settings, you should click on the arrow sign in the Manage column of 
            a grid. The selected Product will be shown in the Listing where you will be able to manage its 
            configurations.</p>
HTML
)]);
        return parent::_prepareLayout();
    }
Ejemplo n.º 11
0
    protected function _prepareLayout()
    {
        $this->appendHelpBlock(['content' => $this->__(<<<HTML
<p>On this Page you can find information about Amazon Accounts which can be managed via M2E Pro.
M2E Pro Amazon Account is a combination of Merchant ID and a particular Marketplace.
In order to sell Items on Amazon.es, Amazon.it etc., you need to add separate M2E Pro Accounts for 
Spain and Italy Marketplaces, although you can still use the same Merchant ID. </p><br>
<p>Settings for such configurations as eBay Orders along with Magento Order creation conditions,
3rd Party Listings import including options of Mapping them to Magento Products and Moving them to M2E Pro Listings,
etc. can be specified for each Account separately.</p><br>
<p><strong>Note:</strong> Amazon Account can be deleted only if it is not being used 
for any of M2E Pro Listings.</p><br>
<p>More detailed information you can find <a href="%url%" target="_blank">here</a>.</p>
HTML
, $this->getHelper('Module\\Support')->getDocumentationUrl(NULL, NULL, 'x/9gEtAQ'))]);
        return parent::_prepareLayout();
    }
Ejemplo n.º 12
0
    protected function _prepareLayout()
    {
        $this->appendHelpBlock(['content' => $this->__(<<<HTML
                <p>The list below displays groups of Items combined together based on their belonging to a 
                specific Marketplace and Account. The number of the 3rd Party Listings available for each of 
                the groups is also available.</p><br>

                <p>3rd Party Listings are the Items which were placed directly on the Channel or by using a tool
                other than M2E Pro. These Items are imported according to Account settings which means the settings 
                can be managed for different Accounts separately.</p><br>

                <p>Information in this section can be used to see which Items have not been fully managed via M2E Pro
                yet. It allows mapping the imported Channel Products to the Magento Products and further moving
                them into M2E Pro Listings.</p>

HTML
)]);
        return parent::_prepareLayout();
    }
Ejemplo n.º 13
0
 protected function _prepareLayout()
 {
     $this->css->addFile('listing/autoAction.css');
     $this->css->addFile('ebay/listing/view.css');
     $this->jsPhp->addConstants($this->getHelper('Data')->getClassConstants('\\Ess\\M2ePro\\Model\\Listing'));
     if (!$this->getRequest()->isXmlHttpRequest()) {
         $this->appendHelpBlock(['content' => $this->__('<p>M2E Pro Listing is a group of Magento Products sold on a certain Marketplace 
                 from a particular Account. M2E Pro has several options to display the content of 
                 Listings referring to different data details. Each of the view options contains a 
                 unique set of available Actions accessible in the Mass Actions drop-down.</p><br>
                 <p>More detailed information you can find <a href="%url%" target="_blank">here</a>.</p>', $this->getHelper('Module\\Support')->getDocumentationUrl(NULL, NULL, 'x/eQItAQ'))]);
         $this->setPageActionsBlock('Ebay\\Listing\\View\\Switcher', 'ebay_listing_view_switcher');
         $this->getLayout()->getBlock('ebay_listing_view_switcher')->addData(['current_view_mode' => $this->getViewMode()]);
     }
     // ---------------------------------------
     $this->addButton('back', array('label' => $this->__('Back'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/ebay_listing/index') . '\');', 'class' => 'back'));
     // ---------------------------------------
     // ---------------------------------------
     // TODO NOT SUPPORTED FEATURES "PickupStore"
     //        if ($this->listing->getAccount()->getChildObject()->isPickupStoreEnabled() &&
     //            $this->getHelper('Component\Ebay\PickupStore')->isFeatureEnabled()) {
     //            $pickupStoreUrl = $this->getUrl('*/ebay_listing_pickupStore/index', array(
     //                'id'   => $this->listing->getId()
     //            ));
     //            $this->addButton('pickup_store_management', array(
     //                'label' => $this->__('In-Store Pickup Management'),
     //                'onclick' => 'window.open(\'' . $pickupStoreUrl . '\',\'_current\')',
     //                'class' => 'success'
     //            ));
     //        }
     // ---------------------------------------
     $url = $this->getUrl('*/ebay_listing_log', array('id' => $this->listing->getId()));
     $this->addButton('view_log', array('label' => $this->__('View Log'), 'onclick' => 'window.open(\'' . $url . '\',\'_blank\')'));
     // ---------------------------------------
     $this->addButton('edit_templates', array('label' => $this->__('Edit Settings'), 'onclick' => '', 'class' => 'drop_down edit_default_settings_drop_down primary', 'class_name' => 'Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Button\\DropDown', 'options' => $this->getSettingsButtonDropDownItems()));
     // ---------------------------------------
     // ---------------------------------------
     $this->addButton('add_products', array('id' => 'add_products', 'label' => $this->__('Add Products'), 'class' => 'add', 'button_class' => '', 'class_name' => 'Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Button\\DropDown', 'options' => $this->getAddProductsDropDownItems()));
     // ---------------------------------------
     return parent::_prepareLayout();
 }
Ejemplo n.º 14
0
    protected function _prepareLayout()
    {
        $this->css->addFile('amazon/listing/view.css');
        $this->appendHelpBlock(['content' => $this->__(<<<HTML
                <p>Since most of the Products already exist in Amazon Catalog, M2E Pro makes it possible
                to find them and to make a link between your Magento Products and existing Amazon Products.</p><br>
                <p>You can use a Manual Search for each added Product by clicking on the icon in the 
                "ASIN/ISBN" Column of the Grid. Also you can use Automatic Search for added
                Product(s) by choosing <strong>"Search ASIN/ISBN Automatically"</strong> 
                Option in a mass Actions bulk. The Search will be performed according to the values which set in
                Search Settings.</p><br>
                <p>You can always set or change Settings of the source for ASIN/ISBN and UPC/EAN by clicking 
                <strong>Edit Search Settings</strong> button in the right top corner.</p><br>
                <p><strong>Note:</strong> The process of Automatic Search might be time-consuming, depending on
                the number of added Products the Search is applied to.</p><br>
                <p>More detailed information about how to work with this Page you can find 
                <a href="%url%" target="_blank">here</a>.</p>
HTML
, $this->getHelper('Module\\Support')->getDocumentationUrl(NULL, NULL, 'x/mAYtAQ'))]);
        return parent::_prepareLayout();
    }
Ejemplo n.º 15
0
 protected function _prepareLayout()
 {
     $content = $this->__('
         In this Section you can Create, Edit and Delete Selling Format, Shipping Override, Description and
         Synchronization Policies.<br/><br/>
         <strong>Selling Format Policies</strong> are used to work with values related
         to the offer part of the Listings, such as
         Price, Quantity and similar parameters.<br/><br/>
         <strong>Shipping Override Policies</strong> are used to specify Settings for Shipping Services,
         Locale and Shipping Cost.<br/><br/>
         <strong>Description Policies</strong> are used to provide necessary Settings
         for Creating new ASIN/ISBN in Amazon Catalog
         or Update the Product Information of the existing Amazon Item.<br/><br/>
         In the <strong>Synchronization Policy</strong> you can set the Rules
         under which the dynamic data Synchronization between
         Channel and Magento will be performed.
     ');
     $this->appendHelpBlock(['content' => $content]);
     $addButtonProps = ['id' => 'add_new_product', 'label' => __('Add Policy'), 'class' => 'add', 'button_class' => '', 'class_name' => 'Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Button\\DropDown', 'options' => $this->_getAddTemplateButtonOptions()];
     $this->addButton('add', $addButtonProps);
     return parent::_prepareLayout();
 }
Ejemplo n.º 16
0
    protected function _prepareLayout()
    {
        $this->appendHelpBlock(['content' => $this->__(<<<HTML
                <p>In this section, you can find the list of the Orders imported from Amazon.</p><br>
                
                <p>An Amazon Order, for which Magento Order is created, contains a value in 
                <strong>Magento Order #</strong>column of the grid. You can find the corresponding Magento Order 
                in <br>Sales > Orders section of your Magento</p><br>
                <p>To manage the imported Amazon Orders, you can use Mass Action options available in the 
                Actions bulk: Reserve QTY, Cancel QTY Reserve, Mark Order(s) as Shipped 
                and Resend Shipping Information.</p><br>
                <p>Also, you can view the detailed Order information by clicking on the appropriate 
                row of the grid.</p>
                <p><strong>Note:</strong> Automatic creation of Magento Orders, Invoices, and Shipments is
                performed in accordance with the Order settings specified in <br>
                <strong>Account Settings (Amazon Integration > Configuration > Accounts)</strong>.</p>
HTML
)]);
        // ---------------------------------------
        $this->setPageActionsBlock('Amazon\\Order\\PageActions');
        return parent::_prepareLayout();
    }
Ejemplo n.º 17
0
 protected function _prepareLayout()
 {
     $this->css->addFile('listing/autoAction.css');
     $this->jsPhp->addConstants($this->getHelper('Data')->getClassConstants('\\Ess\\M2ePro\\Model\\Listing'));
     return parent::_prepareLayout();
 }