Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2008
    Posts
    46
    Plugin Contributions
    0

    help question Showing products from different languages

    My Zencart is showing products from different languages.
    For example if i choose english language, i see products with other languages name.
    And often i see listed the same product in 3-4 languages all together at the same time in the same page.
    Why happens this?
    How can i do to make the site show only products of the same language (the one i choose of course!) ??

    Thanks in advance for your help!

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Showing products from different languages

    if you mean new products side box , then i guess you can limit this box to show only one product.

    I had the same issue with only two languages .. no matter which language i chose , side box would display products in multiple language. now i don't know if thats zencart bug , or is it done this way.

  3. #3
    Join Date
    Aug 2008
    Posts
    46
    Plugin Contributions
    0

    Default Re: Showing products from different languages

    Yes i mean the "New Products" side box.
    It shows sometimes only 1 product, repeated 3 times in different languages. Or sometimes 2 products, with a product repeated 2 times in different languages.

    I want that this sidebox shows different products but always in the language selected for the site.
    How do i do this?

  4. #4
    Join Date
    Nov 2008
    Posts
    9
    Plugin Contributions
    0

    bug Re: Showing products from different languages

    Hi Gyus,

    Yes I confirm this is happening and (according to my opinion it is a bug and zen team should be notified...).

    The problem is there because in file /includes/modules/sideboxes/whats_new.php there is a query and does not take into account the selected language.

    Fix:
    1. First copy the file whats_new.php into /includes/modules/sideboxes/<MY_TEMPLATE>/ to ensure override mechanism compliance
    2. Secondly add the following line
      PHP Code:
      and pd.language_id '" . (int)$_SESSION['languages_id'] . "' 
      just before the line
      PHP Code:
      and p.products_status " . $display_limit
      so in the end the whole query will be:
      PHP Code:
        $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


    That should do the trick...

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

    Default Re: Showing products from different languages

    Might peek in the Known Bugfixes for v1.3.8 ...
    http://www.zen-cart.com/forum/showth...717#post659717

    Seems that one is already on the list ...
    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!

 

 

Similar Threads

  1. different products for different languages
    By p.lank in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 12 Apr 2011, 08:59 PM
  2. different products for different languages
    By creff in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Oct 2009, 07:57 PM
  3. Products not showing up when languages switched!
    By dimmyr in forum General Questions
    Replies: 1
    Last Post: 6 Oct 2008, 05:58 AM
  4. Replies: 1
    Last Post: 24 Jan 2008, 07:45 PM
  5. different products with different languages
    By nannid in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Feb 2007, 05:18 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