Copied to clipboard

Flag this post as spam?

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


  • René 327 posts 852 karma points
    Aug 31, 2014 @ 16:06
    René
    0

    addUniqueOrderLine - Teacommerce

    Hi 

    How can i add the same product to the basket twice?

    I have a shop with products, every has variants (The variants sets the size), each variant has a unik sku. 

    But some of the variants has a property of "color".

    If i add two of the same product/size, but with different color, i get one line in the basket where it adds the the quantity, but i will get the last chosen color for all the products.

    I have found that there once were a function to add diferent lines with the same product "addUniqueOrderLine".

    But i cant find it anywhere, in version 2

    René

     

  • Anders Burla 2560 posts 8256 karma points
    Sep 01, 2014 @ 10:57
    Anders Burla
    100

    You go to the Tea Commerce settings and specify the color as a product uniqueness property alias. Then order lines with different values in this property will be treated as unique order lines.

    Kind regards
    Anders

  • René 327 posts 852 karma points
    Sep 01, 2014 @ 11:16
    René
    0

    Tanks :-) It works

  • Simon Justesen 74 posts 193 karma points
    Sep 01, 2014 @ 22:10
    Simon Justesen
    0

    Feature request: Would it be possible to make the above-mentioned uniqueness feature less dependant on manual input somehow? I'm not very keen on having our customers toying too much with configuration settings, they might not fully understand. If its a huge shop you could end up having to type in A LOT of many different variant type aliases.

    I just did a test setup like the one René described, and multiple variants is a bit cumbersome to setup (I'm a TC-Noob). Your solution worked. Thanks Anders

  • Anders Burla 2560 posts 8256 karma points
    Sep 02, 2014 @ 11:26
    Anders Burla
    0

    Hi Simon

    You could also just make a property with the name "variant" for uniqueness. Then in your UI and in Umbraco you make your structure so the customer can create different variants. Some have color, some has dimentions, some has weight etc. Then make your UI always write in the "variant" order line property and all cases will be handled as variants. So you only need to code it once.

  • Simon Justesen 74 posts 193 karma points
    Sep 03, 2014 @ 20:55
    Simon Justesen
    0

    Cool, going to try that - thanks :)

Please Sign in or register to post replies

Write your reply to:

Draft