Product Filter (Currency Reset Issue)
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!
Product Filter (Currency Reset Issue)
Hi,
Frontend - While apply the product filter on shop page, results loading with the default currency instead of the selected one.
Frontend - While apply the product filter on shop page, results loading with the default currency instead of the selected one.
Re: Product Filter (Currency Reset Issue)
Did you set up your routes according to:
https://aimeos.org/docs/latest/laravel/ ... ze/#routes
In the current dev-master branch there's an improvement that prevents Laravel from throwing away the currency GET parameter if it's not part of the route.
https://aimeos.org/docs/latest/laravel/ ... ze/#routes
In the current dev-master branch there's an improvement that prevents Laravel from throwing away the currency GET parameter if it's not part of the route.
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: Product Filter (Currency Reset Issue)
Thank you.
Added the below routes with shop.php
'default' => ['prefix' => 'shop/{currency}', 'middleware' => ['web'] ],
Now filter is working as expected. But homepage getting the below error while try to access with direct domain (Ex: www.example.com). Earlier the same loaded with default currency.
Missing required parameters for [Route: aimeos_shop_list] [URI: {currency}].
Anything wrong with this one - 'default' => ['prefix' => 'shop/{currency}', 'middleware' => ['web'] ],
Added the below routes with shop.php
'default' => ['prefix' => 'shop/{currency}', 'middleware' => ['web'] ],
Now filter is working as expected. But homepage getting the below error while try to access with direct domain (Ex: www.example.com). Earlier the same loaded with default currency.
Missing required parameters for [Route: aimeos_shop_list] [URI: {currency}].
Anything wrong with this one - 'default' => ['prefix' => 'shop/{currency}', 'middleware' => ['web'] ],
Re: Product Filter (Currency Reset Issue)
As currency isn't an optional parameter, you have to add a route in your ./routes/web.php file that redirects to the default currency like:
Code: Select all
Route::get('/', function () {
return redirect('/EUR');
});
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: Product Filter (Currency Reset Issue)
Thank you. Issue got resolved