Answer the question
In order to leave comments, you need to log in
How to use the function to change the product before putting it in the cart?
Guys, hello everyone. I have a question. I read that in Bitrix Online Store you can change some product properties before sending them to the cart, or already being in the cart. There is a CSaleBasket::Update method - I don't understand how to use it. Help, please, to understand.
Do I need to write a function in init.php? Or do I need to create an ajax file. I'm kind of confused.
Answer the question
In order to leave comments, you need to log in
You may or may not want to use this feature.
Before 15.5.0 (on the old directory), there are add events - OnBeforeBasketAdd or OnBasketAdd
After 15.5.0 (on the new directory), there are add / change events - OnSaleBasketItemEntitySaved
How events work is described in the documentation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question