Answer the question
In order to leave comments, you need to log in
Bitrix LOCK_CHANGE_PAYSYSTEM payment change after placing an order?
Tell me, where is this parameter configured in Bitrix?
LOCK_CHANGE_PAYSYSTEM
to prevent users from changing payment after checkout.
in templates like this
if ($payment['PAID'] !== 'Y' && $order['ORDER']['LOCK_CHANGE_PAYSYSTEM'] !== 'Y')
Answer the question
In order to leave comments, you need to log in
There is a component parameter RESTRICT_CHANGE_PAYSYSTEM
In the class.php of the component, the check is performed as follows:
if (
is_array($this->arParams['RESTRICT_CHANGE_PAYSYSTEM'])
&& in_array($orderFields['STATUS_ID'], $this->arParams['RESTRICT_CHANGE_PAYSYSTEM'])
)
{
$orderFields['LOCK_CHANGE_PAYSYSTEM'] = 'Y';
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question