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'); escapeHtml($viewModel->getLocationName()) ?>
+ + getLocationCode()): ?> +
+ :
+ escapeHtml($viewModel->getLocationCode())?> +
+
diff --git a/view/adminhtml/web/css/styles.css b/view/adminhtml/web/css/styles.css index 32c0acb..ad2eda7 100644 --- a/view/adminhtml/web/css/styles.css +++ b/view/adminhtml/web/css/styles.css @@ -180,4 +180,9 @@ section.paazl.method-select { section.paazl.method-select section.paazl__body.body form.options { max-height: 400px; overflow-y: auto; -} \ No newline at end of file +} + +.pickup-info-wrapper .store-code-wrapper { + margin-top: 1.5em; + margin-bottom: 1.5em; +}