Example #1
0
 protected function _prepareMassaction()
 {
     // Set mass-action
     //--------------------------------
     $this->getMassactionBlock()->addItem('editPrimaryCategorySettings', array('label' => Mage::helper('M2ePro')->__('Edit eBay Primary Categories Settings'), 'url' => ''));
     if ($this->getListing()->getAccount()->getChildObject()->getEbayStoreCategories()) {
         $this->getMassactionBlock()->addItem('editStorePrimaryCategorySettings', array('label' => Mage::helper('M2ePro')->__('Edit eBay Store Primary Categories Settings'), 'url' => ''));
     }
     $this->getMassactionBlock()->addItem('editCategorySettings', array('label' => Mage::helper('M2ePro')->__('Edit eBay Categories Settings'), 'url' => ''));
     parent::_prepareMassaction();
     if ($this->isMotorsSpecificsAvailable()) {
         $this->getMassactionBlock()->addItem('editMotorsSpecifics', array('label' => Mage::helper('M2ePro')->__('Add Compatible Vehicles'), 'url' => ''));
     }
     //------------------------------
     return $this;
 }
 protected function _prepareMassaction()
 {
     parent::_prepareMassaction();
     $this->getMassactionBlock()->addItem('removeItem', array('label' => Mage::helper('M2ePro')->__('Remove Item(s)'), 'url' => ''));
     return $this;
 }
Example #3
0
 protected function _prepareMassaction()
 {
     // Set mass-action
     //--------------------------------
     $this->getMassactionBlock()->addItem('editPrimaryCategorySettings', array('label' => Mage::helper('M2ePro')->__('Edit eBay Primary Categories Settings'), 'url' => ''));
     if ($this->getListing()->getAccount()->getChildObject()->getEbayStoreCategories()) {
         $this->getMassactionBlock()->addItem('editStorePrimaryCategorySettings', array('label' => Mage::helper('M2ePro')->__('Edit eBay Store Primary Categories Settings'), 'url' => ''));
     }
     $this->getMassactionBlock()->addItem('editCategorySettings', array('label' => Mage::helper('M2ePro')->__('Edit eBay Categories Settings'), 'url' => ''));
     parent::_prepareMassaction();
     if ($this->isPartsCompatibilityAvailable() && $this->partsCompatibilityAttribute) {
         $this->getMassactionBlock()->addItem('editPartsCompatibility', array('label' => Mage::helper('M2ePro')->__('Add Compatible Vehicles'), 'url' => ''));
     }
     $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')->isAdvancedMode()) {
         $this->getMassactionBlock()->addItem('transferring', array('label' => Mage::helper('M2ePro')->__('Sell on Another eBay Site'), 'url' => ''));
     }
     //------------------------------
     return $this;
 }