Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The default values are specified in the .description.php file of the corresponding handler. For example, bill
payment system .
The handler is located in the bitrix/modules/sale/handlers/paysystem/bill folder.
If you open the .description.php file , you can see the $data array, which contains the "CODES" nested array. The latter describes the fields of the payment system.
You can specify the "DEFAULT" parameter in the field.
"PAYMENT_DATE_INSERT" => array(
"NAME" => Loc::getMessage("SALE_HPS_BILL_DATE"),
"SORT" => 100,
'GROUP' => 'PAYMENT',
"DESCRIPTION" => Loc::getMessage("SALE_HPS_BILL_DATE_DESC"),
'DEFAULT' => array(
"PROVIDER_VALUE" => "DATE_BILL_DATE",
"PROVIDER_KEY" => "PAYMENT"
)
),
"PAYMENT_DATE_PAY_BEFORE" => array(
"NAME" => Loc::getMessage("SALE_HPS_BILL_PAY_BEFORE"),
"DESCRIPTION" => Loc::getMessage("SALE_HPS_BILL_PAY_BEFORE_DESC"),
"SORT" => 300,
'GROUP' => 'PAYMENT',
'DEFAULT' => array(
"PROVIDER_VALUE" => "DATE_PAY_BEFORE",
"PROVIDER_KEY" => "ORDER"
)
),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question