Fronteng get all site ids

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!
wassim.hattab
Posts: 20
Joined: 13 Jul 2016, 08:03

Fronteng get all site ids

Post by wassim.hattab » 08 Sep 2016, 07:13

Hello,
I'm facing a problem with multi shop,
in the frontend it only show items from default site id which is 1 and does not show items from different shop id.
Is there any function to get all site ids for the frontend only without affecting the products on the backend and keep showing items depending on site id on the backend?

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

Re: Fronteng get all site ids

Post by aimeos » 08 Sep 2016, 09:43

Laravel has no means to separate frontend and backend configuration as far as I know.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

wassim.hattab
Posts: 20
Joined: 13 Jul 2016, 08:03

Re: Fronteng get all site ids

Post by wassim.hattab » 08 Sep 2016, 13:15

I'm not talking about laravel,
in aimeos list page it's by default showing products from siteid 1 ,
if i have many sites it does not display the items of other siteid how can i fix it?

And also i want to ask about filters if i want to use f_name and not f_catid is it possible or use f_catid with array of ids? :?: :?:

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

Re: Fronteng get all site ids

Post by aimeos » 08 Sep 2016, 15:20

wassim.hattab wrote:I'm not talking about laravel,
in aimeos list page it's by default showing products from siteid 1 ,
if i have many sites it does not display the items of other siteid how can i fix it?
Well, that requires some changes and separating the frontend and backend configuration. We will think about this a bit more and add it to the dev-master branch next week (I think, if nobody from the other developers objects).
wassim.hattab wrote:And also i want to ask about filters if i want to use f_name and not f_catid is it possible or use f_catid with array of ids? :?: :?:
f_name is only for the user, f_catid is the value that is used to find the category. If I remember correctly, there was a change in the dev-master branch which allows to use an array of values for f_catid.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Fronteng get all site ids

Post by aimeos » 13 Sep 2016, 11:18

The dev-master branch of the Aimeos Laravel package contains now the possibility to add separate configuration settings for backend and frontend :-)

To show products from all sites in the frontend, you have to add this to your Laravel ./config/shop.php:

Code: Select all

	'frontend' => array(
		'mshop' => array(
			'common' => array(
				'manager' => array(
					'sitecheck' => 0
				),
			),
		),
	),
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply