Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rody 80 posts 280 karma points
    Sep 23, 2013 @ 16:51
    Rody
    0

    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.

  • Anders Burla 2560 posts 8256 karma points
    Sep 23, 2013 @ 23:50
    Anders Burla
    0

    Does the update only fail when updating to 0 quantity or just any quantity?

    Kind regards
    Anders

  • Rody 80 posts 280 karma points
    Sep 24, 2013 @ 05:25
    Rody
    0

    Any quantity fails. But only when there is a bundled product in the cart.

  • Merijn van Mourik 58 posts 128 karma points
    Sep 25, 2013 @ 09:25
    Merijn van Mourik
    0

    Anders,

    I have the same problem (reproducable, javascript api).

    Merijn

  • Anders Burla 2560 posts 8256 karma points
    Sep 25, 2013 @ 16:00
    Anders Burla
    100

    Fixed in 2.2 - but still in the build process :)

Please Sign in or register to post replies

Write your reply to:

Draft