protected function _prepareMassaction() { parent::_prepareMassaction(); if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/cancel')) { $this->getMassactionBlock()->addItem('cancel_order_with_bcash', array('label' => $this->__('Cancelar com Bcash'), 'url' => $this->getUrl('bcash/admin_sales_order/masscanceltransaction/'))); } }
protected function _prepareMassaction() { parent::_prepareMassaction(); if (Mage::getStoreConfig("order_export/export_orders/active")) { $this->getMassactionBlock()->addItem('ordermanager', array('label' => Mage::helper('sales')->__('Export orders'), 'url' => $this->getUrl('*/sales_order_export/csvexport'))); } }
protected function _prepareMassaction() { parent::_prepareMassaction(); if (intval(Mage::helper('fcontrol')->getConfig('type_service')) !== Buscape_Fcontrol_Model_Api::FRAME) { $this->getMassactionBlock()->addItem('sendlist_order', array('label' => Mage::helper('sales')->__('Enfileirar no F-Control'), 'url' => $this->getUrl('*/sales_order/sendlist'))); } }
protected function _prepareMassaction() { parent::_prepareMassaction(); if (Mage::getStoreConfig(self::XPATH_CONFIG_SETTINGS_IS_ACTIVE)) { $this->getMassactionBlock()->addItem('orders2csv', array('label' => Mage::helper('sales')->__('Orders2CSV'), 'url' => $this->getUrl('*/sales_order_orders2csv/makecsv'))); } }
protected function _prepareMassaction() { parent::_prepareMassaction(); $this->getMassactionBlock()->addItem('seperator1', array('label' => Mage::helper('sales')->__('---------------'), 'url' => '')); $this->getMassactionBlock()->addItem('sendpin_order', array('label' => Mage::helper('sales')->__('Send PIN'), 'url' => $this->getUrl('pin/adminhtml_pin/massSendPin'))); return $this; }
protected function _prepareMassaction() { if (Mage::helper('smvendors')->getVendorLogin()) { $this->setMassactionIdField('entity_id'); $this->getMassactionBlock()->setFormFieldName('order_ids'); $this->getMassactionBlock()->setUseSelectAll(false); if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/cancel')) { $this->getMassactionBlock()->addItem('cancel_order', array('label' => Mage::helper('sales')->__('Cancel'), 'url' => $this->getUrl('*/sales_order/massCancel'))); } // if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/hold')) { // $this->getMassactionBlock()->addItem('hold_order', array( // 'label'=> Mage::helper('sales')->__('Hold'), // 'url' => $this->getUrl('*/sales_order/massHold'), // )); // } // if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/unhold')) { // $this->getMassactionBlock()->addItem('unhold_order', array( // 'label'=> Mage::helper('sales')->__('Unhold'), // 'url' => $this->getUrl('*/sales_order/massUnhold'), // )); // } $this->getMassactionBlock()->addItem('pdfinvoices_order', array('label' => Mage::helper('sales')->__('Print Invoices'), 'url' => $this->getUrl('*/vendors_order/pdfinvoices'))); $this->getMassactionBlock()->addItem('pdfshipments_order', array('label' => Mage::helper('sales')->__('Print Packingslips'), 'url' => $this->getUrl('*/vendors_order/pdfshipments'))); $this->getMassactionBlock()->addItem('pdfcreditmemos_order', array('label' => Mage::helper('sales')->__('Print Credit Memos'), 'url' => $this->getUrl('*/vendors_order/pdfcreditmemos'))); $this->getMassactionBlock()->addItem('pdfdocs_order', array('label' => Mage::helper('sales')->__('Print All'), 'url' => $this->getUrl('*/vendors_order/pdfdocs'))); $this->getMassactionBlock()->addItem('print_shipping_label', array('label' => Mage::helper('sales')->__('Print Shipping Labels'), 'url' => $this->getUrl('*/vendors_order_shipment/massPrintShippingLabel'))); } else { parent::_prepareMassaction(); } return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete')) { $this->getMassactionBlock()->addItem('delete_order', array('label' => Mage::helper('sales')->__('Delete'), 'url' => $this->getUrl('orderseraser/adminhtml_orderseraser/massdelete'))); } return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); $this->getMassactionBlock()->addItem('validate_payment', array('label' => Mage::helper('purchase')->__('Validate payment'), 'url' => $this->getUrl('Purchase/Misc/Validatepayment')))->addItem('cancel_payment', array('label' => Mage::helper('purchase')->__('Cancel payment'), 'url' => $this->getUrl('Purchase/Misc/Cancelpayment'))); //Modifie l'url pour l'annulation en masse des commandes $this->getMassactionBlock()->addItem('cancel_order', array('label' => Mage::helper('sales')->__('Cancel'), 'url' => $this->getUrl('Purchase/Misc/massCancel'))); return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); $modules = (array) Mage::getConfig()->getNode('modules')->children(); if (isset($modules['EM_DeleteOrder']) && $modules['EM_DeleteOrder']->is('active')) { $this->getMassactionBlock()->addItem('delete_order', array('label' => Mage::helper('sales')->__('Delete order'), 'url' => $this->getUrl('*/sales_order/deleteorder'))); } return $this; }
/** * Prepare massaction. * * @see app/code/core/Mage/Adminhtml/Block/Sales/Order/Mage_Adminhtml_Block_Sales_Order_Grid#_prepareMassaction() * @return Dhl_Intraship_Block_Adminhtml_Sales_Order_Grid */ protected function _prepareMassaction() { parent::_prepareMassaction(); if (true === Mage::getModel('intraship/config')->isEnabled()) { $profiles = Mage::getModel('intraship/system_config_source_profile')->toOptionArray(false, null, true); $yesno = Mage::getModel('adminhtml/system_config_source_yesno')->toOptionArray(); $this->getMassactionBlock()->addItem('createshipment_order', array('label' => Mage::helper('intraship')->__('Create shipment(s)'), 'url' => $this->getUrl('intraship/shipment/mass'), 'additional' => array('profile' => array('name' => 'profile', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('intraship')->__('Profile'), 'values' => $profiles), 'insurance' => array('name' => 'insurance', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('intraship')->__('Insurance'), 'values' => $yesno), 'bulkfreight' => array('name' => 'bulkfreight', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('intraship')->__('Bulkfreight'), 'values' => $yesno)))); } return $this; }
protected function _prepareMassaction() { // Let the base class do its work parent::_prepareMassaction(); if ($this->isExtensionActive('SLandsbek_SimpleOrderExport')) { $this->getMassactionBlock()->addItem('simpleorderexport', array('label' => $this->__('Export to .csv file'), 'url' => $this->getUrl('simpleorderexport/export_order/csvexport'))); } if ($this->isExtensionActive('BoutikCircus_DeleteOrders')) { $this->getMassactionBlock()->addItem('delete_order', array('label' => Mage::helper('sales')->__('Delete'), 'url' => $this->getUrl('*/*/deleteorders', array('_current' => true)))); } $this->getMassactionBlock()->addItem('amlist', array('label' => $this->__('Email to Customers'), 'url' => $this->getUrl('amemail/adminhtml_index/index', array()))); }
protected function _prepareMassaction() { $this->setMassactionIdField('entity_id'); $this->getMassactionBlock()->setFormFieldName('order_ids'); $this->getMassactionBlock()->setUseSelectAll(false); $templateCollection = Mage::getModel('eadesign/pdfgenerator')->getCollection(); $templateCollection->addFieldToSelect('*')->addFieldToFilter('pdft_is_active', 1); $templates[0] = Mage::helper('sales')->__('Select'); foreach ($templateCollection as $collection) { $templates[$collection->getData('pdftemplate_id')] = $collection->getData('pdftemplate_name'); } $this->getMassactionBlock()->addItem('pdforders_orderea', array('label' => Mage::helper('sales')->__('EaDesgin PDF Invoices'), 'url' => $this->getUrl('adminpdfgenerator/adminhtml_pdfgeneratorpdf/orderpdfmass', array('_current' => true)), 'additional' => array('visibility' => array('name' => 'template', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('catalog')->__('Template to print'), 'values' => $templates)))); parent::_prepareMassaction(); return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); // Append new mass action option // $this->getMassactionBlock()->addItem( // 'pdfinvoiceplus', array('label' => $this->__('Print Order PDFInvoicePlus'), // 'url' => $this->getUrl('pdfinvoiceplus/adminhtml_order/printmass') //this should be the url where there will be mass operation // ) // ); if (Mage::helper('pdfinvoiceplus')->checkEnable()) { $this->getMassactionBlock()->addItem('pdforder', array('label' => $this->__('Print Orders via PDF Invoice+'), 'url' => $this->getUrl('pdfinvoiceplusadmin/adminhtml_order/printmassorder'))); $this->getMassactionBlock()->addItem('pdfinvoice', array('label' => $this->__('Print Invoices via PDF Invoice+'), 'url' => $this->getUrl('pdfinvoiceplusadmin/adminhtml_invoice/printmassinvoice'))); $this->getMassactionBlock()->addItem('pdfcreditmemo', array('label' => $this->__('Print Credit Memos via PDF Invoice+'), 'url' => $this->getUrl('pdfinvoiceplusadmin/adminhtml_creditmemo/printmasscreditmemo'))); } }
protected function _prepareMassaction() { parent::_prepareMassaction(); if (Mage::helper('wsacommon')->isModuleEnabled('Webshopapps_Importshipments', 'shipping/importshipments/active')) { $this->getMassactionBlock()->addItem('importshipments', array('label' => Mage::helper('sales')->__('Create import template'), 'url' => $this->getUrl('*/sales_order_export/csvtemplateexport'))); } if (Mage::helper('wsacommon')->isModuleEnabled('Webshopapps_Oneclickcomplete', 'sales/oneclickcomplete/active')) { $this->getMassactionBlock()->addItem('oneclickcomplete', array('label' => Mage::helper('sales')->__('Create Shipment and Complete Orders'), 'url' => $this->getUrl('*/sales_order_complete/pdfcomplete'))); } if (Mage::helper('wsacommon')->isModuleEnabled('Webshopapps_Ordermanager', 'order_export/export_orders/active')) { $this->getMassactionBlock()->addItem('ordermanager', array('label' => Mage::helper('sales')->__('Export orders'), 'url' => $this->getUrl('*/sales_order_export/csvexport'))); if (Mage::helper('wsacommon')->getNewVersion() == 11) { $this->getMassactionBlock()->setUseSelectAll(true); } } }
/** * Init sales archive massactions * * @return Enterprise_SalesArchive_Block_Adminhtml_Sales_Archive_Order_Grid */ protected function _prepareMassaction() { parent::_prepareMassaction(); $this->_rssLists = array(); if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/cancel')) { $this->getMassactionBlock()->addItem('cancel_order', array('label' => Mage::helper('sales')->__('Cancel'), 'url' => $this->getUrl('*/sales_archive/massCancel'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/hold')) { $this->getMassactionBlock()->addItem('hold_order', array('label' => Mage::helper('sales')->__('Hold'), 'url' => $this->getUrl('*/sales_archive/massHold'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/unhold')) { $this->getMassactionBlock()->addItem('unhold_order', array('label' => Mage::helper('sales')->__('Unhold'), 'url' => $this->getUrl('*/sales_archive/massUnhold'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/unhold')) { $this->getMassactionBlock()->addItem('unhold_order', array('label' => Mage::helper('sales')->__('Unhold'), 'url' => $this->getUrl('*/sales_archive/massUnhold'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/archive/order/remove')) { $this->getMassactionBlock()->addItem('remove_order_from_archive', array('label' => Mage::helper('enterprise_salesarchive')->__('Move to Orders Management'), 'url' => $this->getUrl('*/sales_archive/massRemove'))); } return $this; }
/** * Init sales archive massactions * * @return Enterprise_SalesArchive_Block_Adminhtml_Sales_Archive_Order_Grid */ protected function _prepareMassaction() { parent::_prepareMassaction(); $this->_rssLists = array(); if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/cancel')) { $this->getMassactionBlock()->addItem('cancel_order', array('label' => Mage::helper('sales')->__('Cancel'), 'url' => $this->getUrl('*/sales_archive/massCancel'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/hold')) { $this->getMassactionBlock()->addItem('hold_order', array('label' => Mage::helper('sales')->__('Hold'), 'url' => $this->getUrl('*/sales_archive/massHold'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/unhold')) { $this->getMassactionBlock()->addItem('unhold_order', array('label' => Mage::helper('sales')->__('Unhold'), 'url' => $this->getUrl('*/sales_archive/massUnhold'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/archive/order/remove')) { $this->getMassactionBlock()->addItem('remove_order_from_archive', array('label' => Mage::helper('enterprise_salesarchive')->__('Move to Orders Management'), 'url' => $this->getUrl('*/sales_archive/massRemove'))); } $this->getMassactionBlock()->addItem('pdfinvoices_order', array('label' => Mage::helper('sales')->__('Print Invoices'), 'url' => $this->getUrl('*/sales_archive/massPrintInvoices'))); $this->getMassactionBlock()->addItem('pdfcreditmemos_order', array('label' => Mage::helper('sales')->__('Print Credit Memos'), 'url' => $this->getUrl('*/sales_archive/massPrintCreditMemos'))); $this->getMassactionBlock()->addItem('pdfdocs_order', array('label' => Mage::helper('sales')->__('Print All'), 'url' => $this->getUrl('*/sales_archive/massPrintAllDocuments'))); $this->getMassactionBlock()->addItem('pdfshipments_order', array('label' => Mage::helper('sales')->__('Print Packingslips'), 'url' => $this->getUrl('*/sales_archive/massPrintPackingSlips'))); $this->getMassactionBlock()->addItem('print_shipping_label', array('label' => Mage::helper('sales')->__('Print Shipping Labels'), 'url' => $this->getUrl('*/sales_archive/massPrintShippingLabel'))); return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); $this->getMassactionBlock()->addItem('seperator1', array('label' => Mage::helper('sales')->__('---------------'), 'url' => '')); $this->getMassactionBlock()->addItem('pdfinvoice_order', array('label' => Mage::helper('sales')->__('PDF Invoice'), 'url' => $this->getUrl('pickpack/sales_order/mooinvoice'))); $this->getMassactionBlock()->addItem('pdfpack_order', array('label' => Mage::helper('sales')->__('PDF Packing Sheet'), 'url' => $this->getUrl('pickpack/sales_order/pack'))); $this->getMassactionBlock()->addItem('pdfinvoice_pdfpack_order', array('label' => Mage::helper('sales')->__('PDF Invoice & Packing Sheet'), 'url' => $this->getUrl('pickpack/sales_order/mooinvoicepack'))); $this->getMassactionBlock()->addItem('pdfpick_order', array('label' => Mage::helper('sales')->__('PDF Order-separated Pick List'), 'url' => $this->getUrl('pickpack/sales_order/pick'))); $this->getMassactionBlock()->addItem('pdfenpick_order', array('label' => Mage::helper('sales')->__('PDF Order-combined Pick List'), 'url' => $this->getUrl('pickpack/sales_order/enpick'))); $this->getMassactionBlock()->addItem('pdfstock_order', array('label' => Mage::helper('sales')->__('PDF Out-of-stock List'), 'url' => $this->getUrl('pickpack/sales_order/stock'))); $this->getMassactionBlock()->addItem('pdflabel_order', array('label' => Mage::helper('sales')->__('PDF Address Labels'), 'url' => $this->getUrl('pickpack/sales_order/label'))); $this->getMassactionBlock()->addItem('seperator2', array('label' => Mage::helper('sales')->__('---------------'), 'url' => '')); $this->getMassactionBlock()->addItem('csvpick_order', array('label' => Mage::helper('sales')->__('CSV Order-separated Pick List'), 'url' => $this->getUrl('pickpack/sales_order/pickcsv'))); // $this->getMassactionBlock()->addItem('seperator2', array( // 'label'=> Mage::helper('sales')->__('---------------'), // 'url' => '', // )); // // $this->getMassactionBlock()->addItem('pdfpickjim_order', array( // 'label'=> Mage::helper('sales')->__('*test* PDF Order-combined Pick List'), // 'url' => $this->getUrl('pickpack/sales_order/pickjim'), // )); return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); // Append new mass action option $this->getMassactionBlock()->addItem('pending', array('label' => $this->__('Verify eWAY Order'), 'url' => Mage::helper("adminhtml")->getUrl("ewayadmin/index/massVerifyEwayOrder"), 'confirm' => $this->__('Are you sure?'))); }
protected function _prepareMassaction() { parent::_prepareMassaction(); $this->getMassactionBlock()->addItem('epay_order', array('label' => Mage::helper('sales')->__('Capture with ePay'), 'url' => $this->getUrl('epay/adminhtml_massaction/epayCapture'))); return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); $this->getMassactionBlock()->addItem('Capture', array('label' => Mage::helper('sales')->__('Capture'), 'url' => $this->getUrl('creditcard/adminhtml_order/massCapture'))); }
/** * {@inheritdoc} */ protected function _prepareMassaction() { parent::_prepareMassaction(); Mage::dispatchEvent('adminhtml_sales_order_grid_prepare_massaction', array('block' => $this)); return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); $this->getMassactionBlock()->addItem('nfe', array('label' => $this->__('Emitir Nf-e'), 'url' => $this->getUrl('nfe/adminhtml_nfe/sendMass'))); }
protected function _prepareMassaction() { parent::_prepareMassaction(); $this->getMassactionBlock()->addItem('nfe', array('label' => $this->__('Emitir NF-e'), 'url' => $this->getUrl('nfe/standard/emitir'))); }