Skip to content

Instantly share code, notes, and snippets.

@nafilimonov
Last active June 30, 2018 08:55
Show Gist options
  • Save nafilimonov/30306d80943faba979b8abd35c369a09 to your computer and use it in GitHub Desktop.
Save nafilimonov/30306d80943faba979b8abd35c369a09 to your computer and use it in GitHub Desktop.
Bitrix. Catalog. Выбрать товары со скидками
<?
$dbProductDiscounts = CCatalogDiscount::GetList(
array("SORT" => "ASC"),
array("ACTIVE" => "Y"),
false,
false,
array("ID", "PRODUCT_ID")
);
while ($arProductDiscounts = $dbProductDiscounts->Fetch()) {
$akcii_arr[] = $arProductDiscounts["PRODUCT_ID"];
}
foreach($akcii_arr as $ID) {
$akcii_arr_[] = $ID;
}
$GLOBALS['arrFilterAkcii'] = array("ID"=>$akcii_arr_);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment