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 17, 2013 @ 14:48
    Rody
    0

    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: 

    AddOrUpdateOrderLine: "productIdentifier: productIdentifier, quantity : quantityOne, bundleIdentifier : bundleIdentifier_set1"
    AddOrUpdateOrderLine: "productIdentifier: productIdentifier, quantity : quantityOne, bundleIdentifier : bundleIdentifier_set2"
    AddOrUpdateOrderLine: "productIdentifier : productIdentifier_1_set1, quantity : quantityOne, parentBundleIdentifier : bundleIdentifier_set1"
    AddOrUpdateOrderLine: "productIdentifier : productIdentifier_1_set2, quantity : quantityOne, parentBundleIdentifier : bundleIdentifier_set2"

     

    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?

     

  • Anders Burla 2560 posts 8256 karma points
    Sep 17, 2013 @ 18:12
    Anders Burla
    0

    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

  • Rody 80 posts 280 karma points
    Sep 18, 2013 @ 08:24
    Rody
    0

    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?

  • Anders Burla 2560 posts 8256 karma points
    Sep 18, 2013 @ 12:46
    Anders Burla
    100

    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

Please Sign in or register to post replies

Write your reply to:

Draft