I whant to change the price for the produkts in the cart.
I have tryed both the OrderTemplateExtender and the OrdetLineTemplateExtender but it the prices will not save to the database or even change in the cart.
I hardecoded one orderline and manage to change it once but when I tryed to change another orderline it dodn't work and I coulden't change the first one anymore.
I have even tryed the different "cart observers" but with no luck.
This is the code I used the one time I managed to get it to work:
var test = OrderLine.GetOrderLineByID("OL897");
test.SetUnitPrice(777);
test.Save();
Dynamicweb.eCommerce.Frontend.Cart.CartCatch.SaveCart();
What extender or observer should I use and what is wrong whit the code above?