/** * @param $identifier * @return JBCartElementShipping */ protected function _getElement($identifier) { $shippingList = JBCart::getInstance()->getShippingList(); if ($shipping = $this->_order->getShippingElement($identifier)) { if (isset($shippingList[$identifier])) { $shipping->bindData($shippingList[$identifier]); } } return $shipping; }