I have a problem in Umbraco/uCommerce.
I'm trying to find a way of adapting uCommerce Store for my specific needs. What I'm aiming to do is add an indemnification amount to an insurance product, but can't seem to figure it out.
Edit: On the product page I want to have a field where you can input a number (the indemnification amount) which will be used to present the insurance premium via some service (not realy import for the question). When the amount is entered and the customer is happy with the premium and adds the product to the basket, I want the product property (indemnification amount) to be populated and the product added to the basket...
Anybody got an idea?
First add the product to your basket with CommerceLibrary:AddToBasket()
Then add a dynamic order property to the line created with AddToBasket(). You can set them on the order itself or individual order lines.
In XSLT you use CommerceLibrary:SetOrderProperty("myProp", "myValue") or SetOrderPorperty(lineIndex, "myProp", "myValue").
In .NET you use myOrder["myProp"] = "myValue or myOrderLine["myProp"] = "myValue".