Open eugene-shramko opened 5 years ago
Hi @eugene-shramko
In fact, state/region is not displayed on Frontend. It's not a bug, it's an oversight but You can purpose a PR.
Hi @Fdec, Thank you for your attention.
I would disagree with you. As far as I see, custom address formatter is used to get formatted address for all store details templates (see \Smile\Map\Model\AddressFormatter). The region and region ID are a part of custom address interface (see \Smile\Map\Api\Data\AddressInterface). Corresponding address templates have region in the body by default (see vendor/smile/module-map/etc/config.xml). All this means that when correct address data is passed to address formatter, the region is displayed on Frontend.
I assume this is a bug. Please correct me if I am wrong.
Preconditions
Magento Version: 2.3.1 (Commerce) Retailer Module Version: 1.2.5 (and higher) Store Locator Module Version: 1.3.8 (and higher) Environment: Production mode
Should be reproducible for the recent version of the extensions according to the release notes.
Steps to reproduce
Expected result
Selected state/region is displayed on Frontend in addition to country.
Actual result
Only country is displayed on Frontend.
It looks like the "region" value is not populated in "smile_retailer_address" table for the retailer in the case the state/region is selected from the dropdown in the Backend.