how to get a list of all stores

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!
User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

how to get a list of all stores

Post by ahmed31916 » 15 Apr 2022, 06:27

How can I get the list of all stores and it's details

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

Re: how to get a list of all stores

Post by aimeos » 16 Apr 2022, 08:11

You have a multi-site setup? If yes, you can use the locale/site manager to get a list of all sites:

Code: Select all

$manager = \Aimeos\MShop::create( app( 'aimeos.context' )->get() );
$items = $manager->search( $manager->filter() );
These are the available methods of the locale/site items:
https://github.com/aimeos/aimeos-core/b ... /Iface.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

Re: how to get a list of all stores

Post by ahmed31916 » 17 Apr 2022, 10:24

thanks, it works.

But, I wonder there are a lot of config files. Which of them can be relied upon?

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

Re: how to get a list of all stores

Post by aimeos » 18 Apr 2022, 07:59

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, Image give us a star

Post Reply