Esempio n. 1
0
 /**
  * Check if columns are defined, set template
  *
  * @return void
  */
 protected function _construct()
 {
     if (!$this->_addButtonLabel) {
         $this->_addButtonLabel = __('Add');
     }
     parent::_construct();
 }
Esempio n. 2
0
 /**
  * Define params and variables
  *
  * @return void
  */
 public function _construct()
 {
     parent::_construct();
     $carrierModel = $this->carrierDhl;
     $this->setInch($this->escapeJsQuote($carrierModel->getCode('unit_of_dimension_cut', 'I')));
     $this->setCm($this->escapeJsQuote($carrierModel->getCode('unit_of_dimension_cut', 'C')));
     $this->setHeight($this->escapeJsQuote($carrierModel->getCode('dimensions', 'height')));
     $this->setDepth($this->escapeJsQuote($carrierModel->getCode('dimensions', 'depth')));
     $this->setWidth($this->escapeJsQuote($carrierModel->getCode('dimensions', 'width')));
     $kgWeight = 70;
     $this->setDivideOrderWeightNoteKg($this->escapeJsQuote(__('This allows breaking total order weight into smaller pieces if it exceeds %1 %2 to ensure accurate calculation of shipping charges.', $kgWeight, 'kg')));
     $weight = round($this->_carrierHelper->convertMeasureWeight($kgWeight, \Zend_Measure_Weight::KILOGRAM, \Zend_Measure_Weight::POUND), 3);
     $this->setDivideOrderWeightNoteLbp($this->escapeJsQuote(__('This allows breaking total order weight into smaller pieces if it exceeds %1 %2 to ensure accurate calculation of shipping charges.', $weight, 'pounds')));
     $this->setTemplate('unitofmeasure.phtml');
 }
Esempio n. 3
0
 /**
  * Set template
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('page/system/config/robots/reset.phtml');
 }