Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store locator page broken when some countries are disabled #108

Open
sezio opened this issue May 15, 2020 · 0 comments
Open

Store locator page broken when some countries are disabled #108

sezio opened this issue May 15, 2020 · 0 comments

Comments

@sezio
Copy link

sezio commented May 15, 2020

Hello

If a store exists in tthe backend for a specific country (let's say France for the example) and that we disable the country in magento system configuration, store locator page is broken

Preconditions

Magento Version : M2 CE 2.3.3-p1

Module Store Locator Version : 1.3.9.0

Environment : production

Third party modules : yes but not related

Steps to reproduce

  1. Log in the backend
  2. Go to Sellers > Store
  3. Create a new one in France
  4. Flush cache, go to frontend on the /stores page : map shows up
  5. In the backend : stores > configuration > general > general > country options
  6. In the allowed countries, disable the country "France"
  7. Save
  8. Flush cache, go to frontend on the /stores page : map does not shows up

Expected result

Map should be displayed, even with the store in disabled countries

Actual result

Map is not displayed for excluded countries in the configuration

This is broken with whatever country you choose.
Problem seems to come from the \Smile\StoreLocator\Block\Search::getMarkers function probably when loading the address.
Also, you can see that if you go see the french store in Sellers > Store after having disabled the country, the store has no country associated anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant