public function __construct() { parent::__construct(); if ($this->_hasPdfShippingLabel()) { $this->_addButton('zitec_print_shipping_label', array('label' => $this->_getHelper()->__('Print Shipping Labels'), 'onclick' => "setLocation('{$this->_getPrintShippingLabelsUrl()}')")); } }
public function __construct() { parent::__construct(); $shipment = $this->getShipment(); if (($id = $shipment->getId()) && $shipment->getUdropshipStatus() != Unirgy_Dropship_Model_Source::SHIPMENT_STATUS_SHIPPED) { $url = $this->getUrl('udropshipadmin/adminhtml_shipment/ship', array('id' => $id, 'order_id' => $this->getRequest()->getParam('order_id'))); $this->_addButton('ship', array('label' => Mage::helper('sales')->__('Mark as shipped'), 'class' => 'save', 'onclick' => "setLocation('{$url}')")); } }
public function __construct() { parent::__construct(); /* if ($this->getShipment()->getId()) { $this->_addButton('subscribe', array( 'label' => Mage::helper('sales')->__('Subscribe to Tracking Information'), 'class' => 'save', 'onclick' => 'setLocation(\''.$this->getShipTrackUrl($this->getShipment()->getId()).'\')' ) ); }*/ }
public function __construct() { parent::__construct(); if (!$this->_getHelper()->moduleIsActive()) { return; } if (!$this->_getHelper()->isShippingMethodDpd($this->getShipment()->getOrder()->getShippingMethod()) || $this->_getHelper()->isCancelledWithDpd($this->getShipment())) { return; } $isManifestClosed = $this->_getHelper()->isManifestClosed($this->getShipment()->getId()); if ($isManifestClosed) { $onClick = 'setLocation(\'' . $this->_getManifestUrl() . '\')'; } else { $onClick = "deleteConfirm('" . $this->_getHelper()->__('Once the manifest is closed, you will not be able to make further changes to the shipping address. Do you want to continue?') . "', '" . $this->_getManifestUrl() . "')"; } $this->_addButton('closemanifest', array('label' => $isManifestClosed ? $this->_getHelper()->__('Print Manifest') : $this->_getHelper()->__('Close Manifest'), 'class' => 'save', 'onclick' => $onClick, 'sort_order' => -10)); }
public function __construct() { parent::__construct(); }