Hi Folks,
I want to ask about "Latest" module. It works correctly at me but when the product has out of stock, it still appear at latest's product page. How to change it?
example:
I have product A which just now added with qty=1, it appears at "latest" product page. But after that customer buy it so it called out of stock. When I check at "latest" product page, it still appear. It must be removed from latest product page because I have "Out of Stock" category (from product category it moved to out of stock category).
Thank you,
Joash
Hi Josh - Try and look into model class where it gets the latest products (should be in product folder) you can change the sql to not get you the items that are out of stock. There might be more to it but its a start.
Hi Kedgetech,
Thank you for your help.. it already running well after I added:
Can you share what do you mean

Thank you
Joash
Thank you for your help.. it already running well after I added:
Code: Select all
AND p.quantity > '0'
There might be more to it but its a start.

Thank you
Joash
Who is online
Users browsing this forum: No registered users and 2 guests