language switching hidden
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!
language switching hidden
Hello,
"aimeos/aimeos-laravel": "2020.04.x-dev",
windows 10: 64
Laravel Framework 6.18.3
after a default installation,language switching hidden.
how to display it on the home page.
Thank you very much!
"aimeos/aimeos-laravel": "2020.04.x-dev",
windows 10: 64
Laravel Framework 6.18.3
after a default installation,language switching hidden.
how to display it on the home page.
Thank you very much!
- Attachments
-
- langue.JPG (20.84 KiB) Viewed 1228 times
Re: language switching hidden
Please have a look here how to add the language/currency selector to your pages:
https://aimeos.org/docs/Laravel/Add_locale_selector
https://aimeos.org/docs/Laravel/Add_locale_selector
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: language switching hidden
Hello,
Yes, thank you very much
1)
I modified the following file :
C:\laragon\www\myshop\vendor\aimeos\aimeos-laravel\src\views\catalog\list.blade.php
by adding:
@section('aimeos_head')
<?= $aibody['locale/select'] ?>
@stop
2) the same thing in :
C:\laragon\www\shop\config\shop.php
by adding:
'routes' => [
'default' => ['prefix' => '{locale}/shop', 'middleware' => ['web']]
]
3) in web.php:
Route::get('/', function () {
return redirect('fr/shop');
});
4) php artisan config:cache ;php artisan cache:clear
Yes, thank you very much
1)
I modified the following file :
C:\laragon\www\myshop\vendor\aimeos\aimeos-laravel\src\views\catalog\list.blade.php
by adding:
@section('aimeos_head')
<?= $aibody['locale/select'] ?>
@stop
2) the same thing in :
C:\laragon\www\shop\config\shop.php
by adding:
'routes' => [
'default' => ['prefix' => '{locale}/shop', 'middleware' => ['web']]
]
3) in web.php:
Route::get('/', function () {
return redirect('fr/shop');
});
4) php artisan config:cache ;php artisan cache:clear