Wed, 04/02/2008 - 04:34 — SRW2D
Zen-Cart Japanese/English Pull Downs
This tutorial will show you how to add pull down lists for Japanese prefectures. This is a more advanced tutorial, but if you fallow it and do backups of your files/database before hand, there should be no problem.
What we are going to do is upload the zones to the database in English and Japanese. Then we will change the output of the zones based on the language of the cart.
Pleas have your test site ready with the Japanese Pack installed.
If you have not yet installed your Japanese Pack, start here:
UTF-8 Zen-Cart
Zen-Cart 1.3.8 Japanese Pack Install
This tutorial will show you how to add pull down lists for Japanese prefectures. This is a more advanced tutorial, but if you fallow it and do backups of your files/database before hand, there should be no problem.
What we are going to do is upload the zones to the database in English and Japanese. Then we will change the output of the zones based on the language of the cart.
Pleas have your test site ready with the Japanese Pack installed.
If you have not yet installed your Japanese Pack, start here:
UTF-8 Zen-Cart
Zen-Cart 1.3.8 Japanese Pack Install
If you have all that, then we are ready to go. Download one of the attachment below and move onto the next step.
Updates
Changes to the " Final Two Files" page, 4.06.08
Changes to the "Japanese Zones in English" page 7.10.08
| Attachment | Size |
|---|---|
| CKD-Multi-lingual-PullDowns1.0.7z | 2.47 KB |
| CKD-Multi-lingual-PullDowns1.0.rar | 7.36 KB |
| CKD-Multi-lingual-PullDowns1.0.zip | 9.45 KB |

  S.R. Ward Web Development Copyright © 2010


Comments
About Zip file
Zip File
I just checked the zip file and it works fine. Do a right click and save as. What do you use to unpack it? I use winrar for most my stuff. 7-zip would work too.
Let me know if you have more problems,
Regards,
Shaun
Found Solution!
Thanks for the input, the
collation bug
the download "zip" file for JP/EN Pull Downs was only able to unzip with 7zip...which is okay, but could confuse someone. I have both, so no problem;
I found I had to go into zones in phpmyadmin and manually change the collation for zone_code and zone_name to get the drop down Japanese characters to show (all other JP language in the store showed okay). For some reason the initial configure did not do the job . This is not the fault of your code, but if someone runs into an issue that the zones are not collating properly this was one place to look.
I am having a little trouble with the pull downs showing both languages in several fields, log in is okay, but I will go over all and am sure to catch the problem. I am customizing a new zen cart to replace our existing store and have found the whole program interesting, frustrating at times, but generally fairly easy to get installed (locally) and customized. The manual is invaluable...I have little web design or programming experience, so if I can do it.....Once I move from local to web based host will be the tell.
Hi Robert, Thanks for the
Thanks for the details. For the zip file, I just tested it, with WinRAR, and it works fine. Zzip is a good thing to use too, but I find WinRAR to do an over all better job when it comes to decompressing compressed folders.
As for the database thing, I will check this out, thanks for pointing this out. Let me know if you have any problems more than this. Also, if you are using PayPal, contact me.
Regards,
Shaun
Thank you for your hard
My follow up for my comment
http://www.zen-cart.com/forum/showthread.php?t=93438&page=4
and did what pilow2 said, i.e to copy "jscript_addr_pulldowns.php" created in "/includes/modules/pages/create_account/" to 3 other folders:
../includes/modules/pages/checkout_payment_address/
../includes/modules/pages/login/
../includes/modules/pages/popup_shipping_estimator/
and it works! Japanese character in Japanese language mode, and alphabet in English language mode.
Thanks again.