G
G
Georgy Kotov2018-11-27 13:04:38
1C-Bitrix
Georgy Kotov, 2018-11-27 13:04:38

How to get a list of cumulative discounts, as well as the value of a specific user's cumulative discount?

BUS 18, A loyalty program has been created in the "Rules for working with the basket".
This method is probably outdated. The $arResult array is returned empty.

require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
global $USER;
Bitrix\Main\Loader::includeModule("catalog");
$arResult['DiscountSave'] = CCatalogDiscountSave::GetDiscount(array('USER_ID' => $USER->GetID()));
print_r($arResult);

Are there options to get a list of cumulative discounts and the value of the cumulative discount of an individual user?

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