is there a simple way to add multiple products to the basket in one call, without creating a bundle?
I want to give the option to select one or more add-on products as shown in the red square below. The products will vary by product category and will change from time to time.
Just wondering if there's a tried and tested way to do this before I dig into it myself.
Actually looking into this, perhaps creating a bundle is the way to do this. My only concern is the grouping of products so if someone added a few items and selected the add on under one of them then later removed the parent product they may remove the add-on product without realising.
You should be able to use the HTML API to add multiple products at the same time. To do so you can follow closely the bundle example, but just miss out the bundle parts.
Adding multiple products on Add to Basket
Hi,
is there a simple way to add multiple products to the basket in one call, without creating a bundle?
I want to give the option to select one or more add-on products as shown in the red square below. The products will vary by product category and will change from time to time.
Just wondering if there's a tried and tested way to do this before I dig into it myself.
thanks
t
Actually looking into this, perhaps creating a bundle is the way to do this. My only concern is the grouping of products so if someone added a few items and selected the add on under one of them then later removed the parent product they may remove the add-on product without realising.
I'll investigate further,
regards
t
Hey Tom,
You should be able to use the HTML API to add multiple products at the same time. To do so you can follow closely the bundle example, but just miss out the bundle parts.
They key is to add multiple input fields, and use the
AddOrUpdateOrderLine
mapping API to map to specific input fields for each item being added.brilliant, thanks Matt
is working on a reply...