From 6d215139e991eee7589cd2c527486f4543d01686 Mon Sep 17 00:00:00 2001 From: livca Date: Thu, 23 Nov 2023 15:51:26 +0100 Subject: [PATCH] fix accent + search per words --- Block/Checkout/LayoutProcessor.php | 2 ++ view/frontend/web/css/source/_module.less | 2 ++ .../web/js/view/checkout/shipping/store-delivery.js | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Block/Checkout/LayoutProcessor.php b/Block/Checkout/LayoutProcessor.php index bd6c8c1..eae5ad4 100644 --- a/Block/Checkout/LayoutProcessor.php +++ b/Block/Checkout/LayoutProcessor.php @@ -134,6 +134,8 @@ private function getStores(): array 'directionUrl' => $this->map->getDirectionUrl($address->getCoordinates()), 'setStoreData' => $this->getSetStorePostData($retailer), 'addressData' => $address->getData(), + 'postCode' => $address->getPostcode(), + 'city' => $address->getCity(), ]; // phpcs:ignore Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge diff --git a/view/frontend/web/css/source/_module.less b/view/frontend/web/css/source/_module.less index 96d6d15..4859c2d 100644 --- a/view/frontend/web/css/source/_module.less +++ b/view/frontend/web/css/source/_module.less @@ -91,8 +91,10 @@ body.checkout-index-index { border-bottom: 1px solid #c2c2c2; height: @fulltext-search-wrapper-height; padding: @fulltext-search-wrapper-padding; + margin-bottom: 42px; .form { + position: relative; display: flex; padding: 10px 0 5px; align-items: center; diff --git a/view/frontend/web/js/view/checkout/shipping/store-delivery.js b/view/frontend/web/js/view/checkout/shipping/store-delivery.js index 9a72f39..4880d16 100644 --- a/view/frontend/web/js/view/checkout/shipping/store-delivery.js +++ b/view/frontend/web/js/view/checkout/shipping/store-delivery.js @@ -28,7 +28,7 @@ define([ var type = quote.shippingAddress().getType(); if (type === 'store-delivery') { selectShippingMethodAction({ - carrier_code: this.getCarrierCode(), + carrier_code: this.getCarrierCode(), carrier_title: this.getCarrierTitle(), method_code: this.getMethodCode(), method_title: this.getMethodTitle(), @@ -67,7 +67,7 @@ define([ return this.methodCode; }, - getMethodTitle: function() { + getMethodTitle: function() { return this.methodTitle; }, @@ -75,7 +75,7 @@ define([ return this.carrierCode; }, - getCarrierTitle: function() { + getCarrierTitle: function() { return this.carrierTitle; },