Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Location
    Antwerpen
    Posts
    51
    Plugin Contributions
    0

    Default Sold product still showing as new

    We're selling postage stamps, and sometimes we sell rare stamps of which we have only 1 item in stock, when we add such an item to our shop, it shows up as a new product, but when we sell this item very quickly, say after 2 or 3 days, it still shows up in the 'new products' although it's already sold, (new products are set to 30 days)

    is there a way of avoiding this ?

    regards,
    Fons

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sold product still showing as new

    You would need to customize the SELECT statements where ever you do not want to see the Sold Out Products to have on them:
    and products_quantity > 0
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2008
    Location
    Antwerpen
    Posts
    51
    Plugin Contributions
    0

    Default Re: Sold product still showing as new

    thanks for your quick reply,

    how do I go about it ? I'm afraid I'm not a programmer

    thanks

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sold product still showing as new

    Let's say you want to customize the New Products centerbox ...

    The code:
    Code:
      $new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
                                    p.products_date_added, p.products_price, p.products_type, p.master_categories_id
                               from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                               where p.products_id = pd.products_id
                               and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                               and   p.products_status = 1 " . $display_limit;
    would change to read:
    Code:
      $new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
                                    p.products_date_added, p.products_price, p.products_type, p.master_categories_id
                               from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                               where p.products_id = pd.products_id
                               and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                               and p.products_quantity > 0
                               and   p.products_status = 1 " . $display_limit;
    and change the code:
    Code:
        $new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
                                      p.products_date_added, p.products_price, p.products_type, p.master_categories_id
                               from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                               where p.products_id = pd.products_id
                               and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                               and p.products_status = 1
                               and p.products_id in (" . $list_of_products . ")";
    to read:
    Code:
        $new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
                                      p.products_date_added, p.products_price, p.products_type, p.master_categories_id
                               from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                               where p.products_id = pd.products_id
                               and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                               and p.products_status = 1
                               and p.products_quantity > 0
                               and p.products_id in (" . $list_of_products . ")";
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Feb 2008
    Location
    Antwerpen
    Posts
    51
    Plugin Contributions
    0

    Default Re: Sold product still showing as new

    thanks a lot, it works perfect,

    regards,
    Fons

 

 

Similar Threads

  1. v151 Deleted product still showing under "New Products!"
    By Fly130 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 6 Dec 2012, 02:03 AM
  2. New Products Still Showing on Prouduct Pages
    By ricangem in forum Addon Sideboxes
    Replies: 0
    Last Post: 21 Oct 2011, 04:20 PM
  3. New Products still showing Sold Out and Disabled Items
    By shawnchr in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 1 Nov 2010, 12:57 AM
  4. Discountinued products still showing up in the What's New Box
    By splanchak in forum Basic Configuration
    Replies: 2
    Last Post: 12 Mar 2010, 12:19 AM
  5. products sold but not showing sold in report or inventory
    By knitlady in forum Managing Customers and Orders
    Replies: 3
    Last Post: 7 Jul 2006, 04:31 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR