click&collect country name

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
GülsümAkça
Posts: 57
Joined: 20 Nov 2020, 13:30

click&collect country name

Post by GülsümAkça » 04 Nov 2021, 08:18

This is how the countries added for the click&collect option appear on the frontend with their ISO codes. How can I add the name of the country instead of the ISO code? Translate doesn't work
Screenshot_17.jpg
Screenshot_17.jpg (63.17 KiB) Viewed 979 times

User avatar
aimeos
Administrator
Posts: 7918
Joined: 01 Jan 1970, 00:00

Re: click&collect country name

Post by aimeos » 05 Nov 2021, 07:34

We need to add:

Code: Select all

$context->translate( 'country' , $addr->getCountryId() ),
here:
https://github.com/aimeos/aimeos-core/b ... er.php#L91
and here:
https://github.com/aimeos/aimeos-core/b ... r.php#L112

Can you create a pull request so we can merge the necessary changes into the core?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
GülsümAkça
Posts: 57
Joined: 20 Nov 2020, 13:30

Re: click&collect country name

Post by GülsümAkça » 05 Nov 2021, 09:43

Sure! :)
Thank you

Post Reply