D
D
DYLAN2019-01-22 13:20:46
1C-Bitrix
DYLAN, 2019-01-22 13:20:46

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

1 answer(s)
A
Adamos, 2019-01-22
@Adamos

Are you still not sending a fiscal receipt when paying for an order?
You will not have the sum of the goods with the price of the order, if you correct it simply on the forehead, and do not make a discount in a separate line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question