Results 1 to 6 of 6
  1. #1
    Join Date
    May 2008
    Posts
    7
    Plugin Contributions
    0

    Default [Done 1.3.8] New Products box and multilanguage issue

    Hello,

    I'm setting up a zen-cart store and I have one little problem:

    the box that shows randomly new products doesn't seem to look at the language.
    I mean that it shows any new product in any language, no matter what language are you using.

    My store is both in english and spanish and, of course, I want the box to show descriptions in the language beeing used..

    I have a template installed (I don't think this is the cause) and the multilanguage EZ page mod.

    Thanks in advance

  2. #2
    Join Date
    May 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: New Products box and multilanguage issue

    Ok, I've just found that the following condition has to be added to the query at "whats_new.php"

    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'

  3. #3
    Join Date
    Aug 2008
    Location
    Puerto Rico
    Posts
    1
    Plugin Contributions
    0

    Default Re: New Products box and multilanguage issue

    Thanks for the solution, I was having the exact same problem.

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

    Default Re: New Products box and multilanguage issue

    Thanks for the update ...

    Moving over to Bug Fixes ...
    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!]
    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 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: New Products box and multilanguage issue

    This problem exists in the default template, and yet I see the line you refer to in the file "new_products.php" located at includes/modules/

    i see clearly the line you refer to:
    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'


    however I still have the problem of duplicate products in the "New Products" when using the default (or any other) template.

    I have not been able to locate any file named "whats_new.php"

  6. #6

    Default Re: New Products box and multilanguage issue

    Thanks SYR2000 for the fix....any other newbies like myself who might run into this problem, here's clearer directions.

    The whats_new.php file is in the includes>modules>sideboxes folder


    I added the lines as suggested by SYR2000 as shown below...

    // display limits
    // $display_limit = zen_get_products_new_timelimit();
    $display_limit = zen_get_new_date_range();
    $random_whats_new_sidebox_product_query = "select p.products_id, p.products_image, p.products_tax_class_id, p.products_price, pd.products_name,
    p.master_categories_id
    from (" . TABLE_PRODUCTS . " p
    left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id )
    where p.products_id = pd.products_id
    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    and p.products_status = 1 " . $display_limit;

    Like magic! No more duplicates! Hope it helps someone.....

 

 

Similar Threads

  1. Troubles with Featured Products Box and New Products Boxes
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Mar 2010, 12:36 PM
  2. Replies: 0
    Last Post: 2 Jul 2008, 03:19 PM
  3. Replies: 3
    Last Post: 14 Jan 2008, 03:18 PM
  4. Problem with featured products and new products box
    By KHOOT in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Sep 2006, 02:23 AM

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