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".
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.
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
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.
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é
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
Tanks :-) It works
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
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.
Cool, going to try that - thanks :)
is working on a reply...