PV
Asked
Hello support,
accidentally I can see that a product with 0 qty that related with other product we show on the products list on website was appeared. so we don't want that.
is there any way to completely hide the products with 0 qty from the shop web page completely ( from category, brand and even in related products ) ?
thanks
accidentally I can see that a product with 0 qty that related with other product we show on the products list on website was appeared. so we don't want that.
is there any way to completely hide the products with 0 qty from the shop web page completely ( from category, brand and even in related products ) ?
thanks
- MSAnsweredHello,
There is such option to hide products. You will need to modify the `getProducts` & `getProductsCount` method of the `app/models/shop/Shop_model.php` as you need.
Thank you - PVAnsweredI got it, but which and how can I set the hide0 products from fetching in to show on the shop site?
- MSAnsweredHello,
You will need to check the quantity by adding where clause something like
```
$this->db->where('warehouses_products.quantity >', 0);
```
If you are not sure, you can hire any php developer to help you.
Thank you - PVAnsweredI already injected the Where Clause but the product with 0 qty still show up in my related items.
see my all screenshot - Login to Reply