Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Location
    BC, Canada
    Posts
    33
    Plugin Contributions
    0

    Default Disabled items showing in specials list

    Hi,

    Running 3.7.1

    When adding a new special, the product list that appears contains both enabled and disabled products. Is there any way to stop it from displaying the disabled products?

    Thanks
    James

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Disabled items showing in specials list

    Take a look at this thread (even though the disabled items in that thread are showing up in bestsellers list)

    http://www.zen-cart.com/forum/showthread.php?t=14760

    You may also want to scroll down to the bottom of this page and see similar threads

  3. #3
    Join Date
    Aug 2006
    Location
    BC, Canada
    Posts
    33
    Plugin Contributions
    0

    Default Re: Disabled items showing in specials list

    Thanks for the links.

    I already did some searching and I'm sure this is the code I need to insert:

    and p.products_status = 1

    I'm just not 100% sure where I should be using it, looking in admin\specials.php around line 256 at this code, I tried adding it as per the examples given for the best sellers bug fix but did not see any change so maybe I'm looking in the wrong place:
    HTML Code:
    $product = $db->Execute("select p.products_id, pd.products_name, p.products_price, p.products_priced_by_attribute,
                                          s.specials_new_products_price, s.expires_date, s.specials_date_available
                                   from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " .
                                            TABLE_SPECIALS . " s
                                   where p.products_id = pd.products_id
                                   and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                                   and p.products_id = s.products_id
                                   and s.specials_id = '" . (int)$_GET['sID'] . "'");
    If I add a disabled item as a special they do not appear in the store - I just want to tidy up the admin side so the disabled items do not appear in the list when adding a new special.

 

 

Similar Threads

  1. 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
  2. Disabled products showing up in new products list
    By amyleew in forum General Questions
    Replies: 1
    Last Post: 23 May 2010, 11:11 AM
  3. disabled items showing in best sellers list
    By EraD in forum General Questions
    Replies: 6
    Last Post: 9 Feb 2010, 12:37 AM
  4. Disabled Items Showing
    By dwessell in forum General Questions
    Replies: 4
    Last Post: 27 Jul 2008, 12:28 PM
  5. Disabled items showing in 'new products'
    By robsnowden in forum General Questions
    Replies: 2
    Last Post: 11 May 2008, 02:20 PM

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