Answer the question
In order to leave comments, you need to log in
Why doesn't CCatalogDiscountCoupon::Update work?
require_once($_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/prolog_before.php");
use Bitrix\Main\Loader;
\Bitrix\Main\Loader::includeModule('catalog');
\Bitrix\Main\Loader::includeModule('sale');
$arFields = [
'ACTIVE' => 'N'
];
CCatalogDiscountCoupon::Update(
'1',
$arFields
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question