Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    10
    Plugin Contributions
    0

    application error Duplicate Product Descriptions when adding new language

    Hiya!
    We're hoping to translate our website into Chinese and Spanish soon. We have 2 web servers, one where we test and one where we actually do business. I installed a chinese language pack on the testing server, but since I didn't have myphpadmin access to that database, I didn't notice the duplications on the products_description table.

    Since we only have 3 or 4 people in our company that speak chinese, mainly salespeople, we weren't planning on translating all our product descriptions. Seeing that we're planning on adding several more languages, and that will just make the admin editing screen longer and longer, is there any way to turn this OFF when I add a new language pack so that the products aren't duplicated?

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

    Default Re: Duplicate Product Descriptions when adding new language

    I am curious about this also. On my site, I have noticed that the 'new products' box almost always shows the same product twice, once in each of the installed languages. I'd really rather that visitors who select language "A" only be shown links and product info in that language...

  3. #3
    Join Date
    Jul 2006
    Posts
    58
    Plugin Contributions
    0

    help question Re: Duplicate Product Descriptions when adding new language

    I've tried the Chinese language pack (TW) and it did the same thing on my site: two product description -- one for English and one for Chinese even user just picked one language. Bugs from the language pack?


  4. #4
    Join Date
    Jul 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Duplicate Product Descriptions when adding new language

    the same is when you add product filter addon, it see all attributes doubled, as in database, maybe there is way to let him see only attributes or descriptions of customer language?

  5. #5
    Join Date
    May 2006
    Posts
    18
    Plugin Contributions
    0

    Default Re: Duplicate Product Descriptions when adding new language

    in the file, for example: includes\modules\sideboxes\whats_new.php

    original

    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 p.products_status = 1 " . $display_limit;bằng đoạn code
    replacement:
    Code:
    if ($_SESSION['language'] == "english"){
    
    $random_whats_new_sidebox_product_query= "select distinct 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 inner join " . TABLE_LANGUAGES . " l on pd.language_id = l.languages_id)
    where p.products_id = pd.products_id and l.name = 'English'
    and p.products_status = 1 " . $display_limit;
    }
    else if ($_SESSION['language'] == "YOUR_LANGUAGE")
    {
    
    $random_whats_new_sidebox_product_query = "select distinct 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 inner join " . TABLE_LANGUAGES . " l on pd.language_id = l.languages_id)
    where p.products_id = pd.products_id and l.name = 'YOUR_LANGUAGE'
    and p.products_status = 1 " . $display_limit;
    }

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

    Default Re: Duplicate Product Descriptions when adding new language

    You may wish to review all of the Known Bug Fixes for v1.3.8 ...
    http://www.zen-cart.com/forum/showth...860#post610860

    And, for security issues on any of the v1.3.x Zen Cart series:
    http://www.zen-cart.com/forum/showthread.php?t=131115
    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. Replies: 5
    Last Post: 20 Feb 2011, 07:19 AM
  2. product_music.php error when adding new product
    By opengrave in forum General Questions
    Replies: 1
    Last Post: 19 Jan 2010, 06:56 PM
  3. Replies: 6
    Last Post: 16 Nov 2009, 02:03 PM
  4. Language Packs - Do they translate product descriptions?
    By YZ250 in forum Addon Language Packs
    Replies: 3
    Last Post: 12 Feb 2009, 11:14 PM
  5. Duplicate Product Descriptions when adding new language
    By jamina1 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Apr 2008, 01:45 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