Developer forum

Forum » Ecommerce - Standard features » Add multiple BOM products to cart

Add multiple BOM products to cart

Sonni Tost
Reply

Hi all,

I have a site, where i would like to be able to add a parts-list product to cart. But when i add more than one product to the cart - the cart contains fx. three of the main products but only one of each of the parts.

An example:
Main product A

Optional parts:
Part A
Part B

If i select 2 x Main product A and checks Part B and press the add-to-cart button - then it adds 2 x Main product A but only 1 x Part B. I would like it to add two of both products.

The optional parts list groups are rendered as check boxes with the productid as name.

I hope it makes sense.

Kind regards

Sonni T.


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Sonni

The optional parts is per configuratioin - meaning, that partslist "Main product A" consists of 1 "Part A" and 2 "Part B" items. when you increase the cart, you increase the amount of "Main product A" configurations you buy. so you buy 3 times that configuration, makes sense?

If you want to display how many of each parts list lines there is, you can multiply the parts list lines with the main orderline amount.

NP

 

You must be logged in to post in the forum