how to get a list of all stores
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!
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
how to get a list of all stores
How can I get the list of all stores and it's details
Re: how to get a list of all stores
You have a multi-site setup? If yes, you can use the locale/site manager to get a list of all sites:
These are the available methods of the locale/site items:
https://github.com/aimeos/aimeos-core/b ... /Iface.php
Code: Select all
$manager = \Aimeos\MShop::create( app( 'aimeos.context' )->get() );
$items = $manager->search( $manager->filter() );
https://github.com/aimeos/aimeos-core/b ... /Iface.php
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
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Re: how to get a list of all stores
thanks, it works.
But, I wonder there are a lot of config files. Which of them can be relied upon?
But, I wonder there are a lot of config files. Which of them can be relied upon?
Re: how to get a list of all stores
The ./config/shop.php will always OVERWRITE setting from extension config files and extension config files can ADD settings to core config files.
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