Hi there,
I have a notification subscriber for Cart.Line.Increased. Inside the OnNotify method I have the following code:
double price = repo.GetPriceFromCudFile(addedSessionId); item.AllowOverridePrices = true; item.Price.Currency = increasedArgs.Cart.Currency; item.Quantity = increasedArgs.IncreasedLine.Quantity; item.SetUnitPrice(price); item.Price.Currency = increasedArgs.Cart.Currency; item.Price.PriceWithoutVAT = price; item.Price.PriceWithVAT = price; item.Price.VATPercent = 0; item.Save();
The subscriber runs fine but it doesn't multiply the line price by the quantity. Should I calculate the total myself and pass that to SetUnitPrice? Or is something else going on?
Thanks,
Imar