Skip to content

Cleverscript/ProductDiscount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ProductDiscount 1C-Bitrix

Getting a list of discounted products in 1C-Bitrix

Use

Create a cart rule

Общие параметры правила Выполняемые действия и условия применения

Use the class to get product IDs and pass them to the component filter

$products = ProductDiscount::getDiscounProducts();
$GLOBALS["arrFilter"] = Array("ID" => $products);

<? if(count($products)):?>
	<?$APPLICATION->IncludeComponent(
        "bitrix:catalog.section", 
        "",
        array(
        ...
        "FILTER_NAME" => "arrFilter",
        ...
		),
		false
	);?>
<?else: ?>
	There are no products to display.
<? endif; ?>	

About

Getting a list of discounted products

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages