diff --git a/ViewModel/Pickup/Info.php b/ViewModel/Pickup/Info.php index ae61627..7479723 100755 --- a/ViewModel/Pickup/Info.php +++ b/ViewModel/Pickup/Info.php @@ -212,4 +212,16 @@ public function getLocationName() { return $this->getOrderInfo()->getLocationName(); } + + /** + * @return string + */ + public function getLocationCode() + { + try { + return (string)$this->getOrderInfo()->getLocationCode(); + } catch (NoSuchEntityException $e) { + return ''; + } + } } diff --git a/view/adminhtml/templates/order/view/pickup/info.phtml b/view/adminhtml/templates/order/view/pickup/info.phtml index 0f41460..d999429 100755 --- a/view/adminhtml/templates/order/view/pickup/info.phtml +++ b/view/adminhtml/templates/order/view/pickup/info.phtml @@ -16,6 +16,13 @@ $viewModel = $block->getData('pickupViewModel'); = $block->escapeHtml($viewModel->getLocationName()) ?>