Products from multiple address of supplier table
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!
-
- Posts: 40
- Joined: 02 Dec 2021, 17:18
Products from multiple address of supplier table
I have created a site and created a supplier-1 and then added some 5 products there
then I have added another supplier-2 for same site and selected supplier-2 as well for some 3 products added before.
I am providing an supplier switching option in my frontend on supplier catalog list page
After making a selection of supplier how can I fetch those products applicable for/available with that supplier
Eg : in above case, all products should be available with supplier-1 , and only 3 products are available with supplier-2
Help me to get this thing achieved;
and can we able to fetch suppliers available for particular product (need to to display on catalog detail page) ?
TIA
then I have added another supplier-2 for same site and selected supplier-2 as well for some 3 products added before.
I am providing an supplier switching option in my frontend on supplier catalog list page
After making a selection of supplier how can I fetch those products applicable for/available with that supplier
Eg : in above case, all products should be available with supplier-1 , and only 3 products are available with supplier-2
Help me to get this thing achieved;
and can we able to fetch suppliers available for particular product (need to to display on catalog detail page) ?
TIA

Re: Products from multiple address of supplier table
Pass the "f_supid" parameter with the ID of the supplier to filter by supplier.kartikbhat wrote: ↑13 Jul 2022, 13:28 I am providing an supplier switching option in my frontend on supplier catalog list page
After making a selection of supplier how can I fetch those products applicable for/available with that supplier
Yes, "supplier" should be fetched by default and to get the supplier label:kartikbhat wrote: ↑13 Jul 2022, 13:28 and can we able to fetch suppliers available for particular product (need to to display on catalog detail page) ?
Code: Select all
$this->detailProductItem->getSupplierItems()->getLabel()->first();
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
