45 parent::__construct($context,
$data);
57 $this->setInch($this->carrierDhl->getCode(
'unit_of_dimension_cut',
'I'));
58 $this->setCm($this->carrierDhl->getCode(
'unit_of_dimension_cut',
'C'));
60 $this->setHeight($this->carrierDhl->getCode(
'dimensions',
'height'));
61 $this->setDepth($this->carrierDhl->getCode(
'dimensions',
'depth'));
62 $this->setWidth($this->carrierDhl->getCode(
'dimensions',
'width'));
66 $this->setDivideOrderWeightNoteKg(
68 'Select this to allow DHL to optimize shipping charges by splitting the order if it exceeds %1 %2.',
74 $convertedWeight = $this->carrierHelper->convertMeasureWeight(
79 $weight = sprintf(
'%.3f', $convertedWeight);
81 $this->setDivideOrderWeightNoteLbp(
83 'Select this to allow DHL to optimize shipping charges by splitting the order if it exceeds %1 %2.',
89 $this->
setTemplate(
'Magento_Dhl::unitofmeasure.phtml');
__construct(Context $context, Model\Carrier $carrierDhl, Helper\Carrier $carrierHelper, array $data=[])
_getElementHtml(AbstractElement $element)