Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1

    Default New Products with sold out

    I want to show out of stock items with the sold out warning when looking at products in a category of the shop but I also get sold out products in the New Products listing page.

    Is there a way to only show in stock products in the New Products pages?

    Thanks.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: New Products with sold out

    You would have to custom code this in stock check into the new products and whats new files
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: New Products with sold out

    BACK UP FIRST!

    edit includes/modules/pages/products_new/header_php.php

    Add
    Code:
    and p.products_quantity > 0
    after
    Code:
    WHERE p.products_status = 1
    AND p.products_id = pd.products_id
    which is found on around lines 30 - 31

    Make sure you back this file up, as there is no override system for this folder!

    Absolute

  4. #4

    Default Re: New Products with sold out

    Excellent,
    Thanks

  5. #5
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: New Products with sold out

    I tried this fix, but it made no difference at all. I am still getting sold out (zero quantity) showing up in New Products.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  6. #6
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: New Products with sold out

    This fix will only remove teh sold out products from the New Products page - not the New Products box which appears in various locations within the store. Is this where the sold out products are appearing?

    Absolute

  7. #7
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: New Products with sold out

    The phantom new products are showing up in the new products for "month" boxes that show up when you click catagories and sub catagories. The do Not appear when you click the New Products link.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  8. #8
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: New Products with sold out

    For that box, you would need to edit includes/modules/YOUR_TEMPLATE/new_products.php

    Add the following code to the SQL starting line 23 ater and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    Code:
    and p.products_quantity > 0
    That's it.

    Absolute

  9. #9
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: New Products with sold out

    Nope. That didn't work. Sorry.

    Just to reiterate, I am talking about the New Products for "month" box that shows up when you click on a catagory, or sub catagory. IE: New Products for January

    Nothing I've done, short of actually deleting the product, has removed it from that box.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  10. #10
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: New Products with sold out

    That's the file you need to edit. Have you placed it in your active template folder, or in a folder called YOUR_TEMPLATE?

    Absolute

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Sold New Products display Sold Out instead of price on index and products_new pages
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 36
    Last Post: 1 Jun 2016, 09:29 PM
  2. Replies: 7
    Last Post: 28 Mar 2011, 04:08 AM
  3. Change SOLD OUT button to text on new products page only
    By asphole in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Sep 2008, 03:56 PM
  4. Sold out products listing in New products
    By sparkiii in forum Basic Configuration
    Replies: 3
    Last Post: 27 Sep 2007, 10:58 PM

Posting Permissions

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