Results 1 to 10 of 42

Threaded View

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

    Default Re: Known Bugs with v1.3.8

    Symptom:
    Center boxes for NEW PRODUCTS and UPCOMING PRODUCTS show Products even when products_status = 0

    Solution:
    Fix SELECT statements in the two modules:

    /includes/modules/new_products.php

    This section around lines 40-45
    PHP 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_id in (" 
    $list_of_products ")"
    Needs to be updated to:
    PHP 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 ")"
    And then in the:
    /includes/modules/upcoming_products.php

    around lines 43 to 50
    PHP Code:
        $expected_query "select p.products_id, pd.products_name, products_date_available as date_expected, p.master_categories_id
                           from " 
    TABLE_PRODUCTS " p, " TABLE_PRODUCTS_DESCRIPTION " pd
                           where p.products_id = pd.products_id
                           and p.products_id in (" 
    $list_of_products ")
                           and pd.language_id = '" 
    . (int)$_SESSION['languages_id'] . "' " .
                           
    $display_limit .
                           
    $limit_clause
    to read:
    PHP Code:
        $expected_query "select p.products_id, pd.products_name, products_date_available as date_expected, p.master_categories_id
                           from " 
    TABLE_PRODUCTS " p, " TABLE_PRODUCTS_DESCRIPTION " pd
                           where p.products_id = pd.products_id
                           and p.products_status = 1
                           and p.products_id in (" 
    $list_of_products ")
                           and pd.language_id = '" 
    . (int)$_SESSION['languages_id'] . "' " .
                           
    $display_limit .
                           
    $limit_clause
    Last edited by Ajeh; 4 Jan 2008 at 05:15 AM.
    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!

 

 

Similar Threads

  1. v155 Known Bugs (and fixes) with v1.5.5 , a, b, c, d, e, f
    By DrByte in forum Upgrading to 1.5.x
    Replies: 17
    Last Post: 16 Aug 2017, 03:25 AM
  2. v153 Known Bugs (and fixes) with v1.5.3
    By swguy in forum Upgrading to 1.5.x
    Replies: 9
    Last Post: 18 Oct 2016, 06:17 PM
  3. v151 Known Bugs (and fixes) with v1.5.1
    By DrByte in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 18 Oct 2016, 06:17 PM
  4. v150 Known Bugs (and fixes) with v1.5.0
    By DrByte in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 18 Oct 2016, 06:17 PM
  5. Known Bugs (and fixes) with v1.3.9
    By DrByte in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 31 Oct 2010, 01:11 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