Answer the question
In order to leave comments, you need to log in
How can I change the cost of an order in bitrix?
How can I change the cost of an order in bitrix?
Intercepts the event, get the order object, etc. everything is ok with this, but how to make the price separate from the goods. Now you can set the PRICE property with the desired price through the initField function of the Order object. This price will be entered in the table of orders, however, if you change the order in any way, this price will be recalculated according to the prices of the goods in the basket. Here's an even more illustrative example:
Item 1 - price 1300
Item 2 - price 200
--------------------------- Order
amount
: 1500
then change the total amount to any other, so that it is independent of the goods. Of course, you can change the cost of goods in the basket and thereby reduce the total amount, but you need to change the Total amount.
You can create your own discount for each order on the fly, apply it, and then delete it, but somehow it’s not nice
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