I have a custom pricing scheme for some products, defined through attributes on the products in the backend. I can display this new pricing scheme on the product detail page, but when I add the product to the cart, the info is discarded. So now I need to alter the extended row price of an item in the cart as the product is added to the cart.
I’ve created a method in my module’s helper that responds to the Event “sales_quote_save_before”. In that method, I can isolate the quote item that I want to alter, and have tried changing the following:
Altering those seems to have no effect on the cart, where the default pricing scheme is still displayed. Any suggestions as to the best way to intercept an item as it is added to the cart and apply my own price for the line item (I can’t just alter the base price, because the calculation isn’t as simple as just price * quantity)?