Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2010
    Posts
    10
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Feb 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Hide Sold out product from Product Listing page

    Nevermind.

    Got it.

    I edited the product_listing.php

  3. #3
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    359
    Plugin Contributions
    5

    Default 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.

  4. #4
    Join Date
    Feb 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Hide Sold out product from Product Listing page

    Quote Originally Posted by bonnit View Post
    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?

  5. #5
    Join Date
    Sep 2010
    Posts
    203
    Plugin Contributions
    0

    Default Re: Hide Sold out product from Product Listing page

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

 

 

Similar Threads

  1. product listing remove sold out image
    By restless in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Mar 2009, 02:18 AM
  2. Gap in product listing between price and 'sold out' button
    By hindley08 in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 29 Jul 2008, 06:51 PM
  3. product listing 'sold out' image is missing!
    By notrub225 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 Sep 2006, 02:04 AM
  4. Make a product go to affiliate link not product page (sold out)
    By apemusic in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 29 May 2006, 09:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •