protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('listing_product_id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     //--------------------------------
     // Set mass-action
     //--------------------------------
     $this->_prepareMassactionGroup()->_prepareMassactionItems();
     //--------------------------------
     return parent::_prepareMassaction();
 }
 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('listing_product_id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     //--------------------------------
     // Set mass-action
     //--------------------------------
     $this->getMassactionBlock()->addItem('editAllSettings', array('label' => Mage::helper('M2ePro')->__('Edit Settings'), 'url' => ''));
     $this->getMassactionBlock()->addItem('editGeneralSettings', array('label' => Mage::helper('M2ePro')->__('Edit Payment and Shipping Settings'), 'url' => ''));
     $this->getMassactionBlock()->addItem('editSellingSettings', array('label' => Mage::helper('M2ePro')->__('Edit Selling Settings'), 'url' => ''));
     $this->getMassactionBlock()->addItem('editSynchSettings', array('label' => Mage::helper('M2ePro')->__('Edit Synchronization Settings'), 'url' => ''));
     //--------------------------------
     return parent::_prepareMassaction();
 }
Exemple #3
0
 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     //--------------------------------
     // Set mass-action
     //--------------------------------
     $this->getMassactionBlock()->addItem('revise', array('label' => Mage::helper('M2ePro')->__('Revise Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('relist', array('label' => Mage::helper('M2ePro')->__('Relist Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('stop', array('label' => Mage::helper('M2ePro')->__('Stop Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('stopAndRemove', array('label' => Mage::helper('M2ePro')->__('Stop on Channel / Remove from Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('deleteAndRemove', array('label' => Mage::helper('M2ePro')->__('Remove from Channel & Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
Exemple #4
0
 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     //--------------------------------
     // Set mass-action
     //--------------------------------
     $groups = array('actions' => Mage::helper('M2ePro')->__('Actions'), 'play_id' => Mage::helper('M2ePro')->__('Play ID'), 'other' => Mage::helper('M2ePro')->__('Other'));
     $this->getMassactionBlock()->setGroups($groups);
     $this->getMassactionBlock()->addItem('list', array('label' => Mage::helper('M2ePro')->__('List Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('revise', array('label' => Mage::helper('M2ePro')->__('Revise Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('relist', array('label' => Mage::helper('M2ePro')->__('Relist Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('stop', array('label' => Mage::helper('M2ePro')->__('Stop Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('stopAndRemove', array('label' => Mage::helper('M2ePro')->__('Stop on Channel / Remove from Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('assignGeneralId', array('label' => Mage::helper('M2ePro')->__('Assign'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'play_id');
     $this->getMassactionBlock()->addItem('unassignGeneralId', array('label' => Mage::helper('M2ePro')->__('Unassign'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'play_id');
     $this->getMassactionBlock()->addItem('moving', array('label' => Mage::helper('M2ePro')->__('Move Item(s) to Another Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'other');
     $this->getMassactionBlock()->addItem('duplicate', array('label' => Mage::helper('M2ePro')->__('Duplicate'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'other');
     //--------------------------------
     return parent::_prepareMassaction();
 }
 protected function _prepareMassaction()
 {
     $this->setMassactionIdField('id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     // Set mass-action
     //--------------------------------
     $data = array('label' => Mage::helper('M2ePro')->__('List Item(s) on eBay'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?'));
     if (Mage::helper('M2ePro/View_Ebay')->isSimpleMode()) {
         $collection = Mage::helper('M2ePro/Component_Ebay')->getCollection('Listing_Product');
         $collection->addFieldToFilter('status', array('neq' => Ess_M2ePro_Model_Listing_Product::STATUS_NOT_LISTED));
         $collection->getSize() == 0 && ($data['selected'] = true);
     }
     $this->getMassactionBlock()->addItem('list', $data);
     $this->getMassactionBlock()->addItem('revise', array('label' => Mage::helper('M2ePro')->__('Revise Item(s) on eBay'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('relist', array('label' => Mage::helper('M2ePro')->__('Relist Item(s) on eBay'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('stop', array('label' => Mage::helper('M2ePro')->__('Stop Item(s) on eBay'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('stopAndRemove', array('label' => Mage::helper('M2ePro')->__('Stop on eBay / Remove From Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     $this->getMassactionBlock()->addItem('moving', array('label' => Mage::helper('M2ePro')->__('Move Item(s) to Another Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     if (Mage::helper('M2ePro/View_Ebay')->isSimpleMode()) {
         $this->getMassactionBlock()->addItem('editCategorySettings', array('label' => Mage::helper('M2ePro')->__('Edit eBay Categories Settings'), 'url' => ''));
     }
     //--------------------------------
     return parent::_prepareMassaction();
 }
Exemple #6
0
 protected function _prepareMassaction()
 {
     $this->setMassactionIdField('id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     // Set mass-action
     // ---------------------------------------
     if (Mage::helper('M2ePro/View_Ebay')->isAdvancedMode()) {
         $this->getMassactionBlock()->addItem('startTranslate', array('label' => Mage::helper('M2ePro')->__('Translate'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
         $this->getMassactionBlock()->addItem('stopTranslate', array('label' => Mage::helper('M2ePro')->__('Stop Translation'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     }
     // ---------------------------------------
     return parent::_prepareMassaction();
 }
Exemple #7
0
 protected function _prepareMassaction()
 {
     $this->setMassactionIdField('entity_id');
     // Set fake action
     //--------------------------------
     $this->getMassactionBlock()->addItem('attributes', array('label' => '    ', 'url' => $this->getUrl('*/adminhtml_listing/massStatus', array('_current' => true))));
     //--------------------------------
     return parent::_prepareMassaction();
 }
 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     // ---------------------------------------
     $this->setMassactionIdField('id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     // ---------------------------------------
     // Set mass-action
     // ---------------------------------------
     $groups = array('actions' => Mage::helper('M2ePro')->__('Actions'), 'asin_isbn' => Mage::helper('M2ePro')->__('ASIN / ISBN'), 'description_policy' => Mage::helper('M2ePro')->__('Description Policy'), 'other' => Mage::helper('M2ePro')->__('Other'));
     $this->getMassactionBlock()->setGroups($groups);
     $this->getMassactionBlock()->addItem('list', array('label' => Mage::helper('M2ePro')->__('List Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('revise', array('label' => Mage::helper('M2ePro')->__('Revise Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('relist', array('label' => Mage::helper('M2ePro')->__('Relist Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('stop', array('label' => Mage::helper('M2ePro')->__('Stop Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('stopAndRemove', array('label' => Mage::helper('M2ePro')->__('Stop on Channel / Remove from Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('deleteAndRemove', array('label' => Mage::helper('M2ePro')->__('Remove from Channel & Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('assignGeneralId', array('label' => Mage::helper('M2ePro')->__('Search Automatically'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'asin_isbn');
     $this->getMassactionBlock()->addItem('newGeneralId', array('label' => Mage::helper('M2ePro')->__('Assign Settings for New ASIN/ISBN'), 'url' => ''), 'asin_isbn');
     $this->getMassactionBlock()->addItem('unassignGeneralId', array('label' => Mage::helper('M2ePro')->__('Reset Information'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'asin_isbn');
     // ---------------------------------------
     return parent::_prepareMassaction();
 }
Exemple #9
0
 protected function _prepareMassaction()
 {
     $this->setMassactionIdField('entity_id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     return parent::_prepareMassaction();
 }
Exemple #10
0
 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     // ---------------------------------------
     $this->setMassactionIdField('id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     // ---------------------------------------
     // Set mass-action
     // ---------------------------------------
     $groups = array('description_policy' => Mage::helper('M2ePro')->__('Description Policy'), 'shipping_override_policy' => Mage::helper('M2ePro')->__('Shipping Override Policy'), 'other' => Mage::helper('M2ePro')->__('Other'));
     $this->getMassactionBlock()->setGroups($groups);
     $this->getMassactionBlock()->addItem('assignTemplateDescriptionId', array('label' => Mage::helper('M2ePro')->__('Assign'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'description_policy');
     $this->getMassactionBlock()->addItem('unassignTemplateDescriptionId', array('label' => Mage::helper('M2ePro')->__('Unassign'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'description_policy');
     $this->getMassactionBlock()->addItem('assignTemplateShippingOverrideId', array('label' => Mage::helper('M2ePro')->__('Assign'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'shipping_override_policy');
     $this->getMassactionBlock()->addItem('unassignTemplateShippingOverrideId', array('label' => Mage::helper('M2ePro')->__('Unassign'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'shipping_override_policy');
     $this->getMassactionBlock()->addItem('moving', array('label' => Mage::helper('M2ePro')->__('Move Item(s) to Another Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'other');
     $this->getMassactionBlock()->addItem('duplicate', array('label' => Mage::helper('M2ePro')->__('Duplicate'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'other');
     // ---------------------------------------
     return parent::_prepareMassaction();
 }
Exemple #11
0
 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     // ---------------------------------------
     $this->setMassactionIdField('id');
     $this->setMassactionIdFieldOnlyIndexValue(true);
     // ---------------------------------------
     // Set mass-action
     // ---------------------------------------
     $groups = array('actions' => Mage::helper('M2ePro')->__('Actions'), 'edit_fulfillment' => Mage::helper('M2ePro')->__('Fulfillment'));
     if (Mage::helper('M2ePro/Component_Amazon')->isRepricingEnabled()) {
         $groups['edit_repricing'] = Mage::helper('M2ePro')->__('Repricing Tool');
     }
     $this->getMassactionBlock()->setGroups($groups);
     $this->getMassactionBlock()->addItem('revise', array('label' => Mage::helper('M2ePro')->__('Revise Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('relist', array('label' => Mage::helper('M2ePro')->__('Relist Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('stop', array('label' => Mage::helper('M2ePro')->__('Stop Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('stopAndRemove', array('label' => Mage::helper('M2ePro')->__('Stop on Channel / Remove from Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('deleteAndRemove', array('label' => Mage::helper('M2ePro')->__('Remove from Channel & Listing'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'actions');
     $this->getMassactionBlock()->addItem('switchToAfn', array('label' => Mage::helper('M2ePro')->__('Switch to AFN'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'edit_fulfillment');
     $this->getMassactionBlock()->addItem('switchToMfn', array('label' => Mage::helper('M2ePro')->__('Switch to MFN'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'edit_fulfillment');
     if (Mage::helper('M2ePro/Component_Amazon')->isRepricingEnabled()) {
         $this->getMassactionBlock()->addItem('addToRepricing', array('label' => Mage::helper('M2ePro')->__('Add Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'edit_repricing');
         $this->getMassactionBlock()->addItem('editRepricing', array('label' => Mage::helper('M2ePro')->__('Edit Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'edit_repricing');
         $this->getMassactionBlock()->addItem('removeFromRepricing', array('label' => Mage::helper('M2ePro')->__('Remove Item(s)'), 'url' => '', 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')), 'edit_repricing');
     }
     // ---------------------------------------
     return parent::_prepareMassaction();
 }