protected function _prepareMassaction() { // Set massaction identifiers // --------------------------------------- $this->setMassactionIdField('id'); $this->setMassactionIdFieldOnlyIndexValue(true); // --------------------------------------- // Set mass-action // --------------------------------------- $groups = array('actions' => $this->__('Actions'), 'edit_fulfillment' => $this->__('Fulfillment')); // TODO // if (Mage::helper('M2ePro/Component_Amazon_Repricing')->isEnabled()) { // $groups['edit_repricing'] = $this->__('Repricing Tool'); // } $this->getMassactionBlock()->setGroups($groups); $this->getMassactionBlock()->addItem('revise', array('label' => $this->__('Revise Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('relist', array('label' => $this->__('Relist Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('stop', array('label' => $this->__('Stop Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('stopAndRemove', array('label' => $this->__('Stop on Channel / Remove from Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('deleteAndRemove', array('label' => $this->__('Remove from Channel & Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('switchToAfn', array('label' => $this->__('Switch to AFN'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'edit_fulfillment'); $this->getMassactionBlock()->addItem('switchToMfn', array('label' => $this->__('Switch to MFN'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'edit_fulfillment'); // TODO // /** @var \Ess\M2ePro\Model\Account $account */ // $account = $this->listing->getAccount(); // // if (Mage::helper('M2ePro/Component_Amazon_Repricing')->isEnabled() && // $account->getChildObject()->isRepricing()) { // // $this->getMassactionBlock()->addItem('showDetails', array( // 'label' => $this->__('Show Details'), // 'url' => '', // 'confirm' => $this->__('Are you sure?') // ), 'edit_repricing'); // // $this->getMassactionBlock()->addItem('addToRepricing', array( // 'label' => $this->__('Add Item(s)'), // 'url' => '', // 'confirm' => $this->__('Are you sure?') // ), 'edit_repricing'); // // $this->getMassactionBlock()->addItem('editRepricing', array( // 'label' => $this->__('Edit Item(s)'), // 'url' => '', // 'confirm' => $this->__('Are you sure?') // ), 'edit_repricing'); // // $this->getMassactionBlock()->addItem('removeFromRepricing', array( // 'label' => $this->__('Remove Item(s)'), // 'url' => '', // 'confirm' => $this->__('Are you sure?') // ), 'edit_repricing'); // } // --------------------------------------- return parent::_prepareMassaction(); }
protected function _prepareMassaction() { // Set massaction identifiers // --------------------------------------- $this->setMassactionIdField('id'); $this->setMassactionIdFieldOnlyIndexValue(true); // --------------------------------------- // Set mass-action // --------------------------------------- $groups = array('description_policy' => $this->__('Description Policy'), 'other' => $this->__('Other')); $this->getMassactionBlock()->setGroups($groups); $this->getMassactionBlock()->addItem('assignTemplateDescriptionId', array('label' => $this->__('Assign'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'description_policy'); $this->getMassactionBlock()->addItem('unassignTemplateDescriptionId', array('label' => $this->__('Unassign'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'description_policy'); // TODO // $this->getMassactionBlock()->addItem('assignTemplateShippingOverrideId', array( // 'label' => $this->__('Assign'), // 'url' => '', // 'confirm' => $this->__('Are you sure?') // ), 'shipping_override_policy'); // // $this->getMassactionBlock()->addItem('unassignTemplateShippingOverrideId', array( // 'label' => $this->__('Unassign'), // 'url' => '', // 'confirm' => $this->__('Are you sure?') // ), 'shipping_override_policy'); $this->getMassactionBlock()->addItem('moving', array('label' => $this->__('Move Item(s) to Another Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'other'); $this->getMassactionBlock()->addItem('duplicate', array('label' => $this->__('Duplicate'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'other'); // --------------------------------------- return parent::_prepareMassaction(); }
protected function _prepareMassaction() { // Set massaction identifiers // --------------------------------------- $this->setMassactionIdField('id'); $this->setMassactionIdFieldOnlyIndexValue(true); // --------------------------------------- // Set mass-action // --------------------------------------- $this->_prepareMassactionGroup()->_prepareMassactionItems(); // --------------------------------------- return parent::_prepareMassaction(); }
protected function _prepareMassaction() { $this->setMassactionIdField('id'); $this->setMassactionIdFieldOnlyIndexValue(true); // Configure groups // --------------------------------------- $groups = array('actions' => $this->__('Listing Actions'), 'other' => $this->__('Other')); $this->getMassactionBlock()->setGroups($groups); // Set mass-action // --------------------------------------- $this->getMassactionBlock()->addItem('list', array('label' => $this->__('List Item(s) on eBay'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('revise', array('label' => $this->__('Revise Item(s) on eBay'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('relist', array('label' => $this->__('Relist Item(s) on eBay'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('stop', array('label' => $this->__('Stop Item(s) on eBay'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('stopAndRemove', array('label' => $this->__('Stop on eBay / Remove From Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('remove', array('label' => $this->__('Remove From Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); // $this->getMassactionBlock()->addItem('previewItems', array( // 'label' => $this->__('Preview Items'), // 'url' => '', // 'confirm' => '' // ), 'other'); // --------------------------------------- return parent::_prepareMassaction(); }
protected function _prepareMassaction() { // Set massaction identifiers // --------------------------------------- $this->setMassactionIdField('id'); $this->setMassactionIdFieldOnlyIndexValue(true); // --------------------------------------- // Set mass-action // --------------------------------------- $groups = array('actions' => $this->__('Actions'), 'asin_isbn' => $this->__('ASIN / ISBN'), 'description_policy' => $this->__('Description Policy'), 'other' => $this->__('Other')); $this->getMassactionBlock()->setGroups($groups); $this->getMassactionBlock()->addItem('list', array('label' => $this->__('List Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('revise', array('label' => $this->__('Revise Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('relist', array('label' => $this->__('Relist Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('stop', array('label' => $this->__('Stop Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('stopAndRemove', array('label' => $this->__('Stop on Channel / Remove from Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('deleteAndRemove', array('label' => $this->__('Remove from Channel & Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('remove', array('label' => $this->__('Remove from Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'actions'); $this->getMassactionBlock()->addItem('assignGeneralId', array('label' => $this->__('Search Automatically'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'asin_isbn'); $this->getMassactionBlock()->addItem('newGeneralId', array('label' => $this->__('Assign Settings for New ASIN/ISBN'), 'url' => ''), 'asin_isbn'); $this->getMassactionBlock()->addItem('unassignGeneralId', array('label' => $this->__('Reset Information'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'asin_isbn'); // --------------------------------------- return parent::_prepareMassaction(); }