Last active
June 30, 2018 08:55
-
-
Save nafilimonov/30306d80943faba979b8abd35c369a09 to your computer and use it in GitHub Desktop.
Bitrix. Catalog. Выбрать товары со скидками
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$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