AddOrUpdateOrderLine with multiple (bundled) products
We have a situation where the customer can select one or more bundled base products which contain different sub products.
I've tried creating more than one AddOrRemoveOrderLine hidden fields in the html form to be able to put these articles in the basket. However, the basket only contains one base product with a SKU (quantity 2) and only the first selected bundled products.
This are the (stripped down) values which are posted:
So basically what we've got are 2 base products (same SKU), and 2 different subproducts (different SKU's), however the basket only shows 2 base products and 1 subproduct.
However, I'd expect it to have 2 orderlines in the basket with both base products and both orderlines have one sub orderline.
Is this actually possible using the HTML API? Or should I use the javascript API to accomplish this?
You say that the basket contain 1 order line with a quantity of 2. That is because of the products have the same SKU. The SKU is used as a key for uniqueness. So your base products should have different SKU's - else the order quantity will be updated. Can you do that in your case?
Unfortunately this is not really possible in my case. I've got the following structure:
Product A - Color 1 - Color 2 - Color 3 - .... Product B - Color 1 - Color 2 - Color 3 - .... Product C - Color 1 - Color 2 - Color 3 - ....
All these products and colors have their own unique SKU. No we also have Combination Sets which are defined as follows:
Combination Set 1, containing product A, B and C. Combination Set 2, containing product A and C.
Each of these combination sets have their own SKU, however the set can be Product A with color1, Product B with color 3, etc.
We have one screen where a client can select f.i. 5 times Combination Set 1 with 5 different combinations of Product A, B, C.
It's not really feasible to create a SKU for all possible combinations. So I tried the bundledproduct functionality. However I want every orderline to have their own combination of SKU's.
Do you have any idea how to structure a situation like this?
AddOrUpdateOrderLine with multiple (bundled) products
We have a situation where the customer can select one or more bundled base products which contain different sub products.
I've tried creating more than one AddOrRemoveOrderLine hidden fields in the html form to be able to put these articles in the basket. However, the basket only contains one base product with a SKU (quantity 2) and only the first selected bundled products.
This are the (stripped down) values which are posted:
So basically what we've got are 2 base products (same SKU), and 2 different subproducts (different SKU's), however the basket only shows 2 base products and 1 subproduct.
However, I'd expect it to have 2 orderlines in the basket with both base products and both orderlines have one sub orderline.
Is this actually possible using the HTML API? Or should I use the javascript API to accomplish this?
Hi Rody
You say that the basket contain 1 order line with a quantity of 2. That is because of the products have the same SKU. The SKU is used as a key for uniqueness. So your base products should have different SKU's - else the order quantity will be updated. Can you do that in your case?
Kind regards
Anders
Hi Anders,
Unfortunately this is not really possible in my case. I've got the following structure:
Product A
- Color 1
- Color 2
- Color 3
- ....
Product B
- Color 1
- Color 2
- Color 3
- ....
Product C
- Color 1
- Color 2
- Color 3
- ....
All these products and colors have their own unique SKU. No we also have Combination Sets which are defined as follows:
Combination Set 1, containing product A, B and C.
Combination Set 2, containing product A and C.
Each of these combination sets have their own SKU, however the set can be Product A with color1, Product B with color 3, etc.
We have one screen where a client can select f.i. 5 times Combination Set 1 with 5 different combinations of Product A, B, C.
It's not really feasible to create a SKU for all possible combinations. So I tried the bundledproduct functionality. However I want every orderline to have their own combination of SKU's.
Do you have any idea how to structure a situation like this?
Hi Rody
You need the latest unreleased version of Tea Commerce 2.2 which has a product uniqueness feature. Send an email to [email protected] :)
Kind regards
Anders
is working on a reply...