Sorting of Country List
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Sorting of Country List
Aimeos 22.x
TYPO3 11.x
In previous versions it was possible to manually sorting countries.
client.html.checkout.standard.address.countries {
1 = CH
2 = AT
3 = DE
4 = AD
5 = ...
}
Since 22.x countries are listed in alphabetical order ignoring the assignment in typoscript.
is there a way to prioritise countries by showing them above others?
e.g. a shop receives 90% of orders from Switzerland and you want it to show up first in the list of payment address countries.
cheers
TYPO3 11.x
In previous versions it was possible to manually sorting countries.
client.html.checkout.standard.address.countries {
1 = CH
2 = AT
3 = DE
4 = AD
5 = ...
}
Since 22.x countries are listed in alphabetical order ignoring the assignment in typoscript.
is there a way to prioritise countries by showing them above others?
e.g. a shop receives 90% of orders from Switzerland and you want it to show up first in the list of payment address countries.
cheers
Re: Sorting of Country List
The country configuration has been moved to "common/countries" so it's the same everywhere:
https://github.com/aimeos/aimeos-core/b ... common.php
https://github.com/aimeos/aimeos-core/b ... common.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Sorting of Country List
yes, I've realised this although documentation is not up-to-date at every point.
still, can't find a logic to sort countries according to shop requirements as it was possible before the change
still, can't find a logic to sort countries according to shop requirements as it was possible before the change
Re: Sorting of Country List
The problem is that countries are sorted alphabetically by name after translation in the HTML client. We've changed that and they are only sorted by country name now if the list of country codes is strictly alphabetical. If not, the custom order is preserved.
You need to execute this command to get the relevant changes:
You need to execute this command to get the relevant changes:
Code: Select all
composer req aimeos/aimeos-core:2023.10.x-dev aimeos/ai-client-html:2023.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Sorting of Country List
Where are updates in the documentation missing?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star