Configs for adding products form different sites in default shop

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
nos3
Posts: 86
Joined: 01 Sep 2015, 13:26

Re: Configs for adding products form different sites in default shop

Post by nos3 » 17 Jun 2021, 04:40

If you have already configured the ai-sites extension in marketplace
mode (sitelevel = 3), the next todo is to adapt the catalog/detail
template and add the buttons for the vendors.

As each vendor adds a different price and stock level, the product will
contain the prices (and stock level if you add "stock" to
https://aimeos.org/docs/2021.x/config/c ... l/#domains)
from all vendors.

You have to display the price, stock (both identified by the value of
$price->getSiteId() and $stock->getSiteId()) and the button for each vendor.

There's already a parameter to select the site this product should be
used from:
https://github.com/aimeos/ai-client-htm ... #L300-L303

In the basket, there will be two order lines if the same product is
bought from several vendors.

You can configure Aimeos to aggregate coupons too using:
https://aimeos.org/docs/2021.x/config/m ... /#sitemode
For delivery service options, this is already the case.

It's also possible to store several delivery service options for one
order but the frontend needs to be adapted to show options separated by
vendor and enforce the customer to choose one delivery option for each
vendor. The checkout delivery code must be adapted too to save the site
for each chosen delivery option and to allow adding several delivery
options. If you are unsure about that, we can implement these parts for you.

Vendors already only see their products in the orders in the backend.
For coupons this doesn't apply up to now.

Post Reply