Skip to content

Commit

Permalink
Search by partial zipcode is handle by map/geocoder provider - openst…
Browse files Browse the repository at this point in the history
…reetmap and google map does not have same result on same search - so add config on search placeholder to be able to correctly advice customer during search
  • Loading branch information
livca-smile committed Nov 16, 2023
1 parent f128607 commit 885056f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions Block/Checkout/LayoutProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function process($jsLayout)

$storeDelivery['provider'] = $this->map->getIdentifier();
$storeDelivery['markers'] = $markers;
$storeDelivery['searchPlaceholderText'] = $this->storeLocatorHelper->getSearchPlaceholder();
$storeDelivery = array_merge($storeDelivery, $this->map->getConfig());

// @codingStandardsIgnoreStart
Expand Down
1 change: 0 additions & 1 deletion view/frontend/layout/checkout_index_index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
<item name="geocoder" xsi:type="array">
<item name="component" xsi:type="string">smile-geocoder</item>
<item name="searchTitleText" xsi:type="string" translate="true">Find a store :</item>
<item name="searchPlaceholderText" xsi:type="string" translate="true">City, Zipcode, Department, ...</item>
<item name="searchButtonText" xsi:type="string" translate="true">Search</item>
</item>
<item name="store-list" xsi:type="array">
Expand Down

0 comments on commit 885056f

Please sign in to comment.