Display Japanese prefectures on the invoice (Order Printer)

Highlighted
New Member
4 0 0

HI, I have a question about the Shopify app called "Order Printer".

It's almost great app except for the prefecture part. In the invoice , a prefecture name is displayed as like "JP-39" instead of "東京都". 

↓Please check this out.

https://tinyurl.com/yyxklkz8

If possible , could somebody tell me how to display it correctly? 

 

I think it can be fixed as long as I can add php code like below. However I don't know how to add...

 

switch ($pref_value){
 case 'JP-01': $pref = '北海道';
 case 'JP-02': $pref = '青森県';
 case 'JP-03': $pref = '岩手県';
 case 'JP-04': $pref = '宮城県';
 case 'JP-05': $pref = '秋田県';
 case 'JP-06': $pref = '山形県';
 case 'JP-07': $pref = '福島県';
 case 'JP-08': $pref = '茨城県';
 case 'JP-09': $pref = '栃木県';
 case 'JP-10': $pref = '群馬県';
 case 'JP-11': $pref = '埼玉県';
 case 'JP-12': $pref = '千葉県';
 case 'JP-13': $pref = '東京都';
 case 'JP-14': $pref = '神奈川県';
 case 'JP-15': $pref = '新潟県';
 case 'JP-16': $pref = '富山県';
 case 'JP-17': $pref = '石川県';
 case 'JP-18': $pref = '福井県';
 case 'JP-19': $pref = '山梨県';
 case 'JP-20': $pref = '長野県';
 case 'JP-21': $pref = '岐阜県';
 case 'JP-22': $pref = '静岡県';
 case 'JP-23': $pref = '愛知県';
 case 'JP-24': $pref = '三重県';
 case 'JP-25': $pref = '滋賀県';
 case 'JP-26': $pref = '京都府';
 case 'JP-27': $pref = '大阪府';
 case 'JP-28': $pref = '兵庫県';
 case 'JP-29': $pref = '奈良県';
 case 'JP-30': $pref = '和歌山県';
 case 'JP-31': $pref = '鳥取県';
 case 'JP-32': $pref = '島根県';
 case 'JP-33': $pref = '岡山県';
 case 'JP-34': $pref = '広島県';
 case 'JP-35': $pref = '山口県';
 case 'JP-36': $pref = '徳島県';
 case 'JP-37': $pref = '香川県';
 case 'JP-38': $pref = '愛媛県';
 case 'JP-39': $pref = '高知県';
 case 'JP-40': $pref = '福岡県';
 case 'JP-41': $pref = '佐賀県';
 case 'JP-42': $pref = '長崎県';
 case 'JP-43': $pref = '熊本県';
 case 'JP-44': $pref = '大分県';
 case 'JP-45': $pref = '宮崎県';
 case 'JP-46': $pref = '鹿児島県';
 case 'JP-47': $pref = '沖縄県';
}

 

Thank you.

 

Order Printer

https://apps.shopify.com/order-printer

0 Likes