Forums / Templates, Stylesheets, Page Layout / Hide Sold out product from Product Listing page

Hide Sold out product from Product Listing page

Views: 2,915

Results 1 to 5 of 5
24 Feb 2010, 5:18 AM
#1
needsome avatar

needsome

New Zenner

Join Date:
Feb 2010
Posts:
10
Plugin Contributions:
0

Hide Sold out product from Product Listing page

Hi all,

Quick question.

I want to hide the sold out product from product listing page..

Let say the url is this : http://somesite.com/index.php?main_page=index&cPath=2

So i need to check stock for that product and only display if it's not 0.

Now, which file should i edit in order to achieve this?

Thanks.

24 Feb 2010, 9:04 AM
#2
needsome avatar

needsome

New Zenner

Join Date:
Feb 2010
Posts:
10
Plugin Contributions:
0

Re: Hide Sold out product from Product Listing page

Nevermind.

Got it.

I edited the product_listing.php

24 Feb 2010, 10:59 AM
#3
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Hide Sold out product from Product Listing page

you shouldnt edit the core files for this its completely uneccesary, i would advise you to put back whatever code you took out and then goto:

admin> configuration> stock> Products status in Catalog when out of stock should be set to: (then choose 0 for off or 1 for on)

setting this to off will stop un-stocked products displaying.

http://www.mods.livvylougifts.co.uk Zen Cart Mod Site
http://www.livvylougifts.co.uk Personalised gifts for every occasion

25 Feb 2010, 1:32 AM
#4
needsome avatar

needsome

New Zenner

Join Date:
Feb 2010
Posts:
10
Plugin Contributions:
0

Re: Hide Sold out product from Product Listing page

bonnit:

you shouldnt edit the core files for this its completely uneccesary, i would advise you to put back whatever code you took out and then goto:

admin> configuration> stock> Products status in Catalog when out of stock should be set to: (then choose 0 for off or 1 for on)

setting this to off will stop un-stocked products displaying.

thanks but yes, it was already set to off. But the "Sold out" items were still displayed in the category and were marked as sold out.

What i want to achieve is wipe out the sold out item completely from the category since i want to have a separate category "Sold out" and showed everything there (which i already did by modifying the product_all code and copying all the instances to new file as sold_out_item) .

Any easy way to do this from the admin setting that i might missed?

7 May 2011, 5:49 PM
#5
heyits007 avatar

heyits007

Zen Follower

Join Date:
Sep 2010
Posts:
270
Plugin Contributions:
0

Re: Hide Sold out product from Product Listing page

Try marking the product as Out of Stock. It should not list then.

Thanks,
007