Bundled products break when removing or updating cart
I've got my setup from the other form topic:
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.
These combination sets can now be added in the Cart using the new Uniqueness feature. This works fine.
So in the cart I have OrderLines which contain children OrderLines with the subproducts.
However when I use HTML (or javascript) AddOrUpdateOrderLine or RemoveOrderLine to update quantity or to remove the orderlines I get errors:
At removing the parent orderline:
The DELETE statement conflicted with the SAME TABLE REFERENCE constraint "FK_TeaCommerce_OrderLine_TeaCommerce_OrderLine"
At updating the quantity the FormPost.aspx just returns with status 200, however the javascript code returns "Cart update failed".
I tried addOrUpdateOrderLine with the children orderlines, but I get the same problem. Is there something to be added when removing bundled products?
The single, not bundled, products work perfectly. However whenever I add a bundled product to the cart the delete and update functionality starts to fail.
Bundled products break when removing or updating cart
I've got my setup from the other form topic:
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.
These combination sets can now be added in the Cart using the new Uniqueness feature. This works fine.
So in the cart I have OrderLines which contain children OrderLines with the subproducts.
However when I use HTML (or javascript) AddOrUpdateOrderLine or RemoveOrderLine to update quantity or to remove the orderlines I get errors:
At removing the parent orderline:
The DELETE statement conflicted with the SAME TABLE REFERENCE constraint "FK_TeaCommerce_OrderLine_TeaCommerce_OrderLine"
At updating the quantity the FormPost.aspx just returns with status 200, however the javascript code returns "Cart update failed".
I tried addOrUpdateOrderLine with the children orderlines, but I get the same problem. Is there something to be added when removing bundled products?
The single, not bundled, products work perfectly. However whenever I add a bundled product to the cart the delete and update functionality starts to fail.
Does the update only fail when updating to 0 quantity or just any quantity?
Kind regards
Anders
Any quantity fails. But only when there is a bundled product in the cart.
Anders,
I have the same problem (reproducable, javascript api).
Merijn
Fixed in 2.2 - but still in the build process :)
is working on a reply...