Answer the question
In order to leave comments, you need to log in
How to dynamically recalculate sale.basket.basket.line for multiple price types with the OnGetOptimalPrice event?
Good afternoon. Tell me how to completely update sale.basket.basket.line, which dynamically changes the price and quantity indicators when adding a product?
A product has several types of prices. Depending on the total amount in the cart, the price types of the goods change. This is implemented using the OnGetOptimalPrice event in init.php. On the basket page, everything is successfully recalculated both in the basket itself (sale.basket.basket) and in the small basket (sale.basket.basket.line). But on other pages, sale.basket.basket.line, when a certain value is reached, changes the price only for the last added product, while other products remain with the wrong (previous) price. How to solve this problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question