-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
New feature: Highlight popular countries in country select #4089
base: main
Are you sure you want to change the base?
Conversation
…() to use related method in Mage_Directory to avoid code duplication, moved new code for top countries also to Mage_Directory
Please re-check ... cache-key |
…nd erroneously used in other places
@SuSiSonnenschein111 thanks for your feedback (although it could have been a little bit more detailed). But I agree, the result before sorting should be cached, I've pushed the change and extended the testing scenarios. Moreover probably |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quickly tested on frontend and backend and works fine
Description (*)
This PR backports a feature from Magento 2 (in a nicer way with option groups) that allows to configure countries that will be shown on top of the country list ("popular countries").
Also the code duplication for
Mage_Checkout_Block_Onepage_Abstract::getCountryHtmlSelect()
andMage_Directory_Block_Data::getCountryHtmlSelect()
is removed.In addition a new event
directory_get_top_countries
is added, that allows to customize the logic (e.g. to determine top countries automatically from quotes/orders).Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Repeat the following tests 1.-5. for country dropdown in
country_of_manufacture
uses non-sorted country list in backendcountry_of_manufacture
can be displayed correctly on product detail pageQuestions or comments
Contribution checklist (*)