J
J
jenny_sunny2017-09-08 18:11:20
1C-Bitrix
jenny_sunny, 2017-09-08 18:11:20

How to limit the choice of time in delivery when placing an order?

Hello!
When placing an order, indicate the date and time of delivery of the goods.
The field time and date of delivery is displayed through the standard properties of the order.
The standard calendar BX.calendar is used. Version "1C-Bitrix: Site Management 16.5.4".
The minimum time that can be specified is +2 hours to the present, that is, if a person places an order at 12:00, then he cannot specify a delivery time less than 14:00.
How can this be implemented?
The BX.calendar function, as I understand it, where the date and time output is written is in the bitrix\js\main\core\core_date.js file?
Climb there, look for a function to output time and change it there? If so, what is the function responsible for this?
Or is it possible somehow differently, without getting into the core itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2017-09-08
@babarun

The BX.calendar function, as I understand it, where the date and time output is written is in the bitrix\js\main\core\core_date.js file?
Climb there, look for a function to output time and change it there? If so, what is the function responsible for this?
Or is it possible somehow differently, without getting into the core itself?

You take a calendar object and override the method that generates html and insert the conditions you need into it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question