コード例 #1
0
ファイル: View.php プロジェクト: GabrielCC/zitec-dpd-master
 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()}')"));
     }
 }
コード例 #2
0
ファイル: View.php プロジェクト: xiaoguizhidao/magento
 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}')"));
     }
 }
コード例 #3
0
 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()).'\')'
                 )
             );
         }*/
 }
コード例 #4
0
ファイル: View.php プロジェクト: GabrielCC/zitec-dpd-master
 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));
 }
コード例 #5
0
 public function __construct()
 {
     parent::__construct();
 }