Answer the question
In order to leave comments, you need to log in
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);
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