Post by FCWC » Fri Oct 19, 2018 3:21 am

Found this for 1.5 but no go on 3.0.2
Simple do not want it to show out of stock products.

Really surprised that there isn't an Option to "Show Out of stock items" so default is NOT to show.
Actually thinking about that - it should only show if Pre Book is selected. If Out of stock is selected then it doesn't show item.

New member

Posts

Joined
Tue Jul 31, 2012 3:17 am

Post by kestas » Fri Oct 19, 2018 2:31 pm

FCWC wrote:
Fri Oct 19, 2018 3:21 am
Found this for 1.5 but no go on 3.0.2
Hi,
Should be the same...
in file catalog/model/catalog/product.php
find:

Code: Select all

p.status = '1'
replace with:

Code: Select all

 p.status = '1' AND p.quantity > '0' 
After that do not forget clear cache in your admin dashboard and refresh modifications.

Cheers

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by FCWC » Tue Oct 23, 2018 1:58 am

Thanks on the Refresh the Modifications list. That was what made it work - well semi anyway.

It is giving a blank product placement holder for every product of quantity of 0.

New member

Posts

Joined
Tue Jul 31, 2012 3:17 am

Post by kestas » Tue Oct 23, 2018 2:54 am

FCWC wrote:
Tue Oct 23, 2018 1:58 am
Thanks on the Refresh the Modifications list. That was what made it work - well semi anyway.

It is giving a blank product placement holder for every product of quantity of 0.
Have you found and replaced in all places? it should be 9 places where you should replace this code.
Last edited by kestas on Tue Oct 23, 2018 5:19 am, edited 1 time in total.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by FCWC » Tue Oct 23, 2018 4:55 am

Yes I did.
Again - works but I'm getting a blank product placement holder.
IE the Cart Image , 2 dots under that, price of $0.00, Add to cart, Wishlist, and Compare

New member

Posts

Joined
Tue Jul 31, 2012 3:17 am

Post by kestas » Tue Oct 23, 2018 5:23 am

Seems you miss something. I have checked and all working fine. Did you refreshed modifications and cleared cache (both theme and sass) in admin dashboard?

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by FCWC » Tue Oct 23, 2018 7:05 am

yes on cache etc.
if it isn't doing that for you it must be something else Ive done.
So I will be testing and see what I can find out.

New member

Posts

Joined
Tue Jul 31, 2012 3:17 am

Post by FCWC » Wed Oct 24, 2018 5:24 am

So it turns out Dreamvention's Ajax Filter is causing my issue.
Not sure why as of yet. Hope to get some time to go through that extensions code to try to sort it out.
Or find another such filter

New member

Posts

Joined
Tue Jul 31, 2012 3:17 am
Who is online

Users browsing this forum: JNeuhoff, nonnedelectari and 107 guests