DW 9.8.11
I'm implementing an addmulti javascript function which is working fine, except it only adds variants to the first product added every time to the cart. I'm using this example from Jeppe:
https://doc.dynamicweb.com/forum/development/development/adding-multiple-products-in-the-cart
See this screencast:
https://mg-co3.tinytake.com/msc/NjUwNzk3MF8xODk4MTAzNg
When I add to cart the first time, the "main" product is added with variants. Then I move the "main" product after the "optional products", and now when I add to cart the optional product is added with variants, but not the "main" product.
The products you see in the dropdown is just related products, but this shouldn't matter, as I seem to have the correct data in the parameters.
BR
Martin