Post by diegito » Wed Oct 25, 2017 5:24 am

How can i hide products with zero inventory at opnecat 3.0?

New member

Posts

Joined
Wed Oct 07, 2015 5:21 am

Post by yodapt » Wed Oct 25, 2017 5:37 am

catalog/model/catalog/product.php

Right before line 156, add :

Code: Select all

$sql .= " AND p.quantity > 0'";
I didnt test it. It should only show the products that have quantity bigger than zero.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm

Who is online

Users browsing this forum: Baidu [Spider] and 413 guests