P
P
pavelmosin2020-12-23 18:37:12
1C-Bitrix
pavelmosin, 2020-12-23 18:37:12

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 question

Ask a Question

731 491 924 answers to any question