Currency Session
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 4
- Joined: 15 Apr 2024, 09:39
Currency Session
Hi,
I have selected the currency and I want to maintain this selection using session instead of using url parameter like "?locale=en¤cy=USD" on each time redirecting from one page to another page.
Please advise on it.
Thanks
I have selected the currency and I want to maintain this selection using session instead of using url parameter like "?locale=en¤cy=USD" on each time redirecting from one page to another page.
Please advise on it.
Thanks
Re: Currency Session
No, it's not possible to store the locale and currency in the session and remove them from the URL. This would cause massive caching problems where pages with wrong languages/currencies would be served because the URL isn't unique any more.
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
-
- Posts: 4
- Joined: 15 Apr 2024, 09:39
Re: Currency Session
Okay. Understood.
Then I want to set a cookie to keep the browser session on to redirect the repeat visitor to the old selection so for that how can I set the cookie to maintain the previous currency selection?
Thanks
Then I want to set a cookie to keep the browser session on to redirect the repeat visitor to the old selection so for that how can I set the cookie to maintain the previous currency selection?
Thanks
Re: Currency Session
Implement a Laravel middleware that does the redirect based on the cookie content.
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