What this solution does
This module extends the standard set of restrictions for delivery and payment services in 1C-Bitrix, adding capabilities not present in the base version. It is compatible with the standard checkout component sale.order.ajax.
Supported restriction types:
- Time of day;
- Day of the week;
- User groups (for payment systems);
- Custom function execution result.
To configure a restriction based on a function, specify the function name or a static public class method. Examples: my_test_function or My\Namespace\Class::method. The function must return a boolean value. If the specified code is inaccessible or not callable, the restriction will evaluate as false.
The custom function receives two parameters:
1. The check object: Bitrix\Sale\Payment for payments or Bitrix\Sale\Shipment for shipments.
2. The ID of the delivery or payment service to which the restriction is applied.
The demo period is 3 days.
General iT can install and configure this module and check how it works on your website.