protected function _prepareMassaction() { // Set massaction identifiers // --------------------------------------- $this->getMassactionBlock()->setFormFieldName('ids'); // --------------------------------------- // Set fake action // --------------------------------------- if ($this->getMassactionBlock()->getCount() == 0) { $this->getMassactionBlock()->addItem('fake', array('label' => ' ', 'url' => '#')); // Header of grid with massactions is rendering in other way, than with no massaction // so it causes broken layout when the actions are absent $this->css->add(<<<CSS #{$this->getId()} .admin__data-grid-header-row:first-child { float: left; } #{$this->getId()} .admin__data-grid-header-row:last-child { margin-left: 170px; } CSS ); } // --------------------------------------- return parent::_prepareMassaction(); }
protected function _prepareMassaction() { $this->setMassactionIdField('id'); $this->setMassactionIdFieldOnlyIndexValue(true); // --------------------------------------- $this->getMassactionBlock()->addItem('assignGeneralId', array('label' => $this->__('Search ASIN/ISBN automatically'), 'url' => '', 'confirm' => $this->__('Are you sure?'))); $this->getMassactionBlock()->addItem('unassignGeneralId', array('label' => $this->__('Reset ASIN/ISBN information'), 'url' => '', 'confirm' => $this->__('Are you sure?'))); // --------------------------------------- return parent::_prepareMassaction(); }
protected function _prepareMassaction() { // Set mass-action identifiers // --------------------------------------- $this->setMassactionIdField('main_table.id'); $this->getMassactionBlock()->setFormFieldName('ids'); // --------------------------------------- $this->getMassactionBlock()->setGroups(array('mapping' => $this->__('Mapping'), 'other' => $this->__('Other'))); $this->getMassactionBlock()->addItem('autoMapping', array('label' => $this->__('Map Item(s) Automatically'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'mapping'); $this->getMassactionBlock()->addItem('moving', array('label' => $this->__('Move Item(s) to Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'other'); $this->getMassactionBlock()->addItem('removing', array('label' => $this->__('Remove Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'other'); $this->getMassactionBlock()->addItem('unmapping', array('label' => $this->__('Unmap Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?')), 'mapping'); // --------------------------------------- return parent::_prepareMassaction(); }
protected function _prepareMassaction() { // Set massaction identifiers // --------------------------------------- $this->setMassactionIdField('id'); $this->setMassactionIdFieldOnlyIndexValue(true); // --------------------------------------- // Set mass-action // --------------------------------------- $this->getMassactionBlock()->addItem('list', array('label' => $this->__('List Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?'))); $this->getMassactionBlock()->addItem('revise', array('label' => $this->__('Revise Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?'))); $this->getMassactionBlock()->addItem('relist', array('label' => $this->__('Relist Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?'))); $this->getMassactionBlock()->addItem('stop', array('label' => $this->__('Stop Item(s)'), 'url' => '', 'confirm' => $this->__('Are you sure?'))); $this->getMassactionBlock()->addItem('stopAndRemove', array('label' => $this->__('Stop on Channel / Remove from Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?'))); $this->getMassactionBlock()->addItem('deleteAndRemove', array('label' => $this->__('Remove from Channel & Listing'), 'url' => '', 'confirm' => $this->__('Are you sure?'))); // --------------------------------------- return parent::_prepareMassaction(); }
protected function _prepareMassaction() { // Set massaction identifiers // --------------------------------------- $this->setMassactionIdField('main_table.id'); $this->getMassactionBlock()->setFormFieldName('ids'); // --------------------------------------- // Set mass-action // --------------------------------------- $this->getMassactionBlock()->addItem('reservation_place', array('label' => $this->__('Reserve QTY'), 'url' => $this->getUrl('*/order/reservationPlace'), 'confirm' => $this->__('Are you sure?'))); $this->getMassactionBlock()->addItem('reservation_cancel', array('label' => $this->__('Cancel QTY Reserve'), 'url' => $this->getUrl('*/order/reservationCancel'), 'confirm' => $this->__('Are you sure?'))); $this->getMassactionBlock()->addItem('ship', array('label' => $this->__('Mark Order(s) as Shipped'), 'url' => $this->getUrl('*/amazon_order/updateShippingStatus'), 'confirm' => $this->__('Are you sure?'))); $this->getMassactionBlock()->addItem('resend_shipping', array('label' => $this->__('Resend Shipping Information'), 'url' => $this->getUrl('*/order/resubmitShippingInfo'), 'confirm' => $this->__('Are you sure?'))); // --------------------------------------- return parent::_prepareMassaction(); }
protected function _prepareMassaction() { $this->setMassactionIdField('listing_product_id'); $this->setMassactionIdFieldOnlyIndexValue(true); // --------------------------------------- $this->getMassactionBlock()->setGroups(array('edit_settings' => $this->__('Edit Settings'), 'other' => $this->__('Other'))); // --------------------------------------- $this->getMassactionBlock()->addItem('editCategories', array('label' => $this->__('All Categories'), 'url' => ''), 'edit_settings'); $this->getMassactionBlock()->addItem('editPrimaryCategories', array('label' => $this->__('eBay Catalog Primary Categories'), 'url' => ''), 'edit_settings'); if ($this->listing->getAccount()->getChildObject()->getEbayStoreCategories()) { $this->getMassactionBlock()->addItem('editStorePrimaryCategories', array('label' => $this->__('Store Catalog Primary Categories'), 'url' => ''), 'edit_settings'); } $this->getMassactionBlock()->addItem('getSuggestedCategories', array('label' => $this->__('Get Suggested From eBay'), 'url' => ''), 'other'); $this->getMassactionBlock()->addItem('resetCategories', array('label' => $this->__('Reset eBay Categories'), 'url' => ''), 'other'); $this->getMassactionBlock()->addItem('removeItem', array('label' => $this->__('Remove Products'), 'url' => ''), 'other'); // --------------------------------------- return parent::_prepareMassaction(); }
protected function _prepareMassaction() { // Set massaction identifiers // --------------------------------------- $this->setMassactionIdField('main_table.id'); $this->getMassactionBlock()->setFormFieldName('ids'); // --------------------------------------- $groups = array('general' => $this->__('General')); // TODO NOT SUPPORTED FEATURES // if ($this->getHelper('Component\Ebay\PickupStore')->isFeatureEnabled()) { // $groups['in_store_pickup'] = $this->__('In-Store Pickup'); // } $this->getMassactionBlock()->setGroups($groups); // Set mass-action // --------------------------------------- $this->getMassactionBlock()->addItem('reservation_place', array('label' => $this->__('Reserve QTY'), 'url' => $this->getUrl('*/order/reservationPlace'), 'confirm' => $this->__('Are you sure?')), 'general'); $this->getMassactionBlock()->addItem('reservation_cancel', array('label' => $this->__('Cancel QTY Reserve'), 'url' => $this->getUrl('*/order/reservationCancel'), 'confirm' => $this->__('Are you sure?')), 'general'); $this->getMassactionBlock()->addItem('ship', array('label' => $this->__('Mark Order(s) as Shipped'), 'url' => $this->getUrl('*/ebay_order/updateShippingStatus'), 'confirm' => $this->__('Are you sure?')), 'general'); $this->getMassactionBlock()->addItem('pay', array('label' => $this->__('Mark Order(s) as Paid'), 'url' => $this->getUrl('*/ebay_order/updatePaymentStatus'), 'confirm' => $this->__('Are you sure?')), 'general'); $this->getMassactionBlock()->addItem('resend_shipping', array('label' => $this->__('Resend Shipping Information'), 'url' => $this->getUrl('*/order/resubmitShippingInfo'), 'confirm' => $this->__('Are you sure?')), 'general'); // --------------------------------------- // TODO NOT SUPPORTED FEATURES // if (!$this->getHelper('Component\Ebay\PickupStore')->isFeatureEnabled()) { // return parent::_prepareMassaction(); // } // $this->getMassactionBlock()->addItem('mark_as_ready_for_pickup', array( // 'label' => $this->__('Mark as Ready For Pickup'), // 'url' => $this->getUrl('*/ebay_order/markAsReadyForPickup'), // 'confirm' => $this->__('Are you sure?') // ), 'in_store_pickup'); // // $this->getMassactionBlock()->addItem('mark_as_picked_up', array( // 'label' => $this->__('Mark as Picked Up'), // 'url' => $this->getUrl('*/ebay_order/markAsPickedUp'), // 'confirm' => $this->__('Are you sure?') // ), 'in_store_pickup'); // // $this->getMassactionBlock()->addItem('mark_as_cancelled', array( // 'label' => $this->__('Mark as Cancelled'), // 'url' => $this->getUrl('*/ebay_order/markAsCancelled'), // 'confirm' => $this->__('Are you sure?') // ), 'in_store_pickup'); return parent::_prepareMassaction(); }