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