Post by joash » Fri Oct 22, 2010 7:05 pm

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

Newbie

Posts

Joined
Mon Oct 18, 2010 11:42 am

Post by kedgetech » Sat Oct 23, 2010 8:09 am

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.

User avatar
Active Member

Posts

Joined
Mon Mar 22, 2010 5:20 pm
Location - USA, Australia, India

Post by joash » Sat Oct 23, 2010 10:28 am

Hi Kedgetech,
Thank you for your help.. it already running well after I added:

Code: Select all

AND p.quantity > '0'
Can you share what do you mean
There might be more to it but its a start.
:)
Thank you

Joash

Newbie

Posts

Joined
Mon Oct 18, 2010 11:42 am
Who is online

Users browsing this forum: No registered users and 2 guests