Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2010
    Posts
    31
    Plugin Contributions
    0

    Default Production Option Value - Other language

    I set up product attribute in Chinese Language, and it can be viewed well on my website as well as in the order confirmation i received via email. However, it is shown as codes in zencart admin. When I go to phpmyadmin under production option value, they are shown as codes as well.

    The order confirmation that i received via email was displayed in codes when it was in plain text. I have successfully changed it to HTML email and now they are displaying the right words.

    What is wrong with the admin setting? The guy who set up my website said he can do nothing.

    Please help.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Production Option Value - Other language

    First of all if you are actually running ZenCart v138a You need to upgrade NOW
    Do this on your schedule versus getting hacked and having to perform a clean and an upgrade
    When I go to phpmyadmin under production option value, they are shown as codes as well.
    What do you mean by "production"??
    What language is set in your language.php file??
    Code:
    // look in your $PATH_LOCALE/locale directory for available locales..
      @setlocale(LC_TIME, 'en_US');

  3. #3
    Join Date
    Jan 2010
    Posts
    31
    Plugin Contributions
    0

    Default Re: Production Option Value - Other language

    Sorry I mean product option value!
    Language is English and Chinese.

    Ps: I can't find where to edit my post...
    Last edited by cocolala; 6 Apr 2013 at 05:25 AM.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Production Option Value - Other language

    What language is set in your chinese.php language file??

  5. #5
    Join Date
    Jan 2010
    Posts
    31
    Plugin Contributions
    0

    Default Re: Production Option Value - Other language

    May I know how to check it? Sorry i'm not really familiar with php...
    anyway i found this info from the chinese.php:

    Global entries for the <html> tag
    define('HTML_PARAMS','dir="ltr" lang="zh"');

    // charset for web pages and emails
    define('CHARSET', 'GB2312')

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Production Option Value - Other language

    In your chinese.php file locate this code and what do you have for it?
    Code:
    // look in your $PATH_LOCALE/locale directory for available locales..
      @setlocale(LC_TIME, 'en_US');
    What is in red might need changing to 'GBK'
    See this article
    http://en.wikipedia.org/wiki/GB_2312

    Not positive but what you have for
    Code:
    // charset for web pages and emails
    define('CHARSET', 'GB2312')
    Might need another charset designation??

    See this article
    http://www.herongyang.com/PHP-Chines...g-Options.html

  7. #7
    Join Date
    Jan 2010
    Posts
    31
    Plugin Contributions
    0

    Default Re: Production Option Value - Other language

    setlocale(LC_TIME, 'zh_CN.GB2312')

    I tried changing charset to GB18030, then both locale and charset to GB18030 but still the same...

    The weird thing is it displays correctly on my website and order via email, but in codes in the shopping cart and order under admin.

    Click image for larger version. 

Name:	zencart.jpg 
Views:	45 
Size:	36.2 KB 
ID:	12317
    Click image for larger version. 

Name:	zencart2.jpg 
Views:	35 
Size:	26.9 KB 
ID:	12318
    Last edited by cocolala; 7 Apr 2013 at 06:09 AM.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Production Option Value - Other language

    You might check with your host and ask if they have Chinese language supported

 

 

Similar Threads

  1. AuthorizeNet switch from test to production looses card pay option
    By kevin_a in forum Addon Payment Modules
    Replies: 13
    Last Post: 13 May 2013, 07:37 PM
  2. Option value words running into each other
    By murphys in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 11 Sep 2009, 04:28 PM
  3. text attributes option value not showing (only english language)
    By bear1728 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 18 Aug 2009, 08:53 PM
  4. 2nd option value need to be changed by 1st option value
    By userman in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 15 Jan 2008, 03:04 PM
  5. Using one Option Name/Value dataset for two other Option Names
    By Gart in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 12 Aug 2006, 04:06 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