A
A
Alexander2021-02-15 18:04:04
1C-Bitrix
Alexander, 2021-02-15 18:04:04

How can I set an arbitrary date for an order after placing it in Bitrix?

Online store on Bitrix edition Small business. The store works with a multi-basket (a custom solution based on a standard basket component), users can buy goods (order food) for all 5 working days of the week, that is, the user can place an order on Monday both for Monday and for other days of the
602a8ce2b1c90632778647.png

week Bitrix when creating an order, it is created with the date that was at the time of its execution.

Can you tell me how to create an order with a date depending on the passed parameter?

For example, today is Monday - February 15, and the user makes an order today for Wednesday - February 17, how to make the order date also be February 17 and not today's date.

Perhaps you should use an event handler for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yariy, 2021-02-16
@Yariy

OnBeforeOrderAdd(&arFields) - order creation event. catch it and change what you need in arFields

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question