Remove currency from URL in catalogue list

Questions around the TYPO3 integration and plugins
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!
User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Remove currency from URL in catalogue list

Post by aimeos » 04 Oct 2024, 10:16

If you enable multi-language in the Aimeos distribution, at least the language parameter is then a route attribute:
https://github.com/aimeos#multi-language
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MirkoDz
Posts: 4
Joined: 18 Sep 2024, 08:02

Re: Remove currency from URL in catalogue list

Post by MirkoDz » 04 Oct 2024, 10:28

Is there a way to exclute query locale and currency, and append then as url prefixes and than use them where needed?
Currently I am developing Laravel app and those pages are not translated when language is switched, and I do not want to have
site-url.test?locale=rs&&currency=RSD
but rather
site-url.test/rs/rsd/

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

Re: Remove currency from URL in catalogue list

Post by aimeos » 04 Oct 2024, 10:50

You can change the route prefix to '{locale}/{currency}/' but you have to make sure that the currency is always available when the route is generated: https://github.com/aimeos/aimeos/blob/2 ... hp#L80-L87
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply