Darius1990 Posted February 4, 2019 Share Posted February 4, 2019 (edited) 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 February 4, 2019 by Darius1990 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now