public function _beforeToHtml() { parent::_beforeToHtml(); if (Mage::helper('udsplit')->isActive()) { $this->setTemplate('udsplit/order_create_shipping.phtml'); } }
/** * Overwrite parent method to adding properly carrier name * when it starts with assigned $carrierCode ("easyshippingrules") * * @param string $carrierCode * * @return string */ public function getCarrierName($carrierCode) { $carrierName = Mage::helper('easyshippingrules')->getCarrierName($carrierCode); if ($carrierName) { return $carrierName; } return parent::getCarrierName($carrierCode); }
/** * Retrieve array of shipping rates groups * * @return array */ public function getShippingRates() { if (Mage::helper('smdropship')->dropShipIsActive()) { if (empty($this->_rates)) { $groups = $this->getAddress()->getGroupedAllShippingRates(); $dropShipCode = 'dropshipping'; if (!empty($groups) and array_key_exists($dropShipCode, $groups)) { return $this->_rates = array($dropShipCode => $groups[$dropShipCode]); } } return $this->_rates; } return parent::getShippingRates(); }
protected function _toHtml() { $this->setTemplate('dpd/sales/order/create/shipping/method/shippingform.phtml'); return parent::_toHtml(); }
protected function _toHtml() { $this->setTemplate('storepickup/form.phtml'); return parent::_toHtml(); }
/** * Prepare layout for shipping method form * * @return $this */ protected function _prepareLayout() { parent::_prepareLayout(); $this->setTemplate('mageworx/orderspro/edit/shipping_method.phtml'); return $this; }