Jump to content

how to hide products without quantity from special product list


Darius1990

Recommended Posts

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

Edited by Darius1990 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...