Jump to content

Edit History

Darius1990

Darius1990

Hi,

how to hide products without quantity from special product list(products with discounts)

tried but doesn`t work:

if (is_array($products)) {
foreach ($products as $rawProduct) {
 
 
$allProduct = $presenter->present(
$presentationSettings,
$assembler->assembleProduct($rawProduct),
$this->context->language
);
 
if($allProduct['quantity'] > 0) {
$product_list[] = $allProduct;
}
}
}

Thank you for you answer

Darius1990

Darius1990

Hi,

how to make hide products without quantity from special product list(products with discounts)

Thank you for you answer

×
×
  • Create New...