language switching hidden

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!
mahmoud
Posts: 27
Joined: 27 Mar 2020, 22:01

language switching hidden

Post by mahmoud » 01 Jun 2020, 01:18

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!
Attachments
langue.JPG
langue.JPG (20.84 KiB) Viewed 1212 times

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

Re: language switching hidden

Post by aimeos » 02 Jun 2020, 07:29

Please have a look here how to add the language/currency selector to your pages:
https://aimeos.org/docs/Laravel/Add_locale_selector
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mahmoud
Posts: 27
Joined: 27 Mar 2020, 22:01

Re: language switching hidden

Post by mahmoud » 02 Jun 2020, 20:46

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

Post Reply