Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to add products to the basket uniquely.
I've followed the documentation to add the propertyAlias to 'Product uniqueness property aliases' like productName and sku.
But it doesn't seem to want to see them as unique products.
For some of the products I am overriding CalculatePrice to build up the price via size, it's for a Picture Frame.
I read another post from 2013 about adding a Guid to the OrdlerLine property, but shouldn't setting the 'productName' or 'sku' property force it to add it uniquely anyway?
Scratch that, figure it out :)
var newGuid = Guid.NewGuid();
<input name="productGuidUnique" value="@newGuid.ToString()" type="hidden" />
Glad you got it working 👍
As an explanation, the unieqPropertAliases list properties on a node to use to determine if the product is unique or not. If the values of those properties are the same for each item being added, then it will see the product as being the same.
What you have done is right because now you are introducing a value that is unique for each item added to the cart, whether it is the same product or not.
Hope this helps
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted