| @@ -1,623 +1,1663 @@ | ||
| 1 | -<?php | |
| 2 | -$zaiko_status = array( | |
| 3 | - '0' => __('In Stock', 'usces'), | |
| 4 | - '1' => __('A Few Stock', 'usces'), | |
| 5 | - '2' => __('Sold Out', 'usces'), | |
| 6 | - '3' => __('Out Of Stock', 'usces'), | |
| 7 | - '4' => __('Out of print', 'usces') | |
| 8 | - ); | |
| 9 | -$management_status = array( | |
| 10 | - 'estimate' => __('An estimate', 'usces'), | |
| 11 | - 'adminorder' => __('Management of Note', 'usces'), | |
| 12 | - 'noreceipt' => __('unpaid', 'usces'), | |
| 13 | - 'receipted' => __('payment confirmed', 'usces'), | |
| 14 | - 'duringorder' => __('temporaly out of stock', 'usces'), | |
| 15 | - 'cancel' => __('Cancel', 'usces'), | |
| 16 | - 'completion' => __('It has sent it out.', 'usces'), | |
| 17 | - 'pending' => __('Pending', 'usces'), | |
| 18 | -// 'continuation' => __('Continuation', 'usces'), | |
| 19 | -// 'termination' => __('Termination', 'usces'), | |
| 20 | - ); | |
| 21 | - | |
| 22 | -$customer_status = array( | |
| 23 | - '0' => __('notmal member', 'usces'), | |
| 24 | - '1' => __('good member', 'usces'), | |
| 25 | - '2' => __('VIP member', 'usces'), | |
| 26 | - '99' => __('bad member', 'usces') | |
| 27 | - ); | |
| 28 | - | |
| 29 | -$payment_structure = array( | |
| 30 | - 'acting' => __('The representation supplier settlement', 'usces'), | |
| 31 | - 'transferAdvance' => __('Transfer (prepayment)', 'usces'), | |
| 32 | - 'transferDeferred' => __('Transfer (postpay)', 'usces'), | |
| 33 | - 'COD' => __('COD', 'usces'), | |
| 34 | - 'installment' => __('Payment in installments', 'usces') | |
| 35 | - ); | |
| 36 | - | |
| 37 | -$display_mode = array( | |
| 38 | - 'Usualsale' => __('Normal business', 'usces'), | |
| 39 | - 'Promotionsale' => __('During the campaign', 'usces'), | |
| 40 | - 'Maintenancemode' => __('Under Maintenance', 'usces') | |
| 41 | - ); | |
| 42 | - | |
| 43 | -$shipping_rule = array( | |
| 44 | - '0' => __('-- Select --', 'usces'), | |
| 45 | - '1' => __('immediately', 'usces'), | |
| 46 | - '2' => __('1-2 days', 'usces'), | |
| 47 | - '3' => __('2-3days', 'usces'), | |
| 48 | - '4' => __('3-5days', 'usces'), | |
| 49 | - '5' => __('4-6days', 'usces'), | |
| 50 | - '6' => __('about 1 week later', 'usces'), | |
| 51 | - '7' => __('about 2 weeks later', 'usces'), | |
| 52 | - '8' => __('about 3 weeks later', 'usces'), | |
| 53 | - '9' => __('after we get new items', 'usces') | |
| 54 | - ); | |
| 55 | - | |
| 56 | -$shipping_indication = array(0, 0, 2, 3, 5, 6, 7, 14, 21, 0); | |
| 57 | - | |
| 58 | -//20100914ysk start | |
| 59 | -//$item_option_select = array(__('Single-select','usces'), __('Multi-select','usces'), __('Text','usces')); | |
| 60 | -$item_option_select = array( | |
| 61 | - '0' => __('Single-select', 'usces'), | |
| 62 | - '1' => __('Multi-select', 'usces'), | |
| 63 | - '2' => __('Text', 'usces'), | |
| 64 | - '5' => __('Text-area', 'usces') | |
| 65 | - ); | |
| 66 | -//20100914ysk end | |
| 67 | - | |
| 68 | -//20100818ysk start | |
| 69 | -//20100809ysk start | |
| 70 | -$custom_order_select = array( | |
| 71 | - '0' => __('Single-select', 'usces'), | |
| 72 | - '2' => __('Text', 'usces'), | |
| 73 | - '3' => __('Radio-button', 'usces'), | |
| 74 | - '4' => __('Check-box', 'usces') | |
| 75 | - ); | |
| 76 | -//20100809ysk end | |
| 77 | -$custom_customer_select = array( | |
| 78 | - '0' => __('Single-select', 'usces'), | |
| 79 | - '2' => __('Text', 'usces'), | |
| 80 | - '3' => __('Radio-button', 'usces'), | |
| 81 | - '4' => __('Check-box', 'usces') | |
| 82 | - ); | |
| 83 | -$custom_delivery_select = array( | |
| 84 | - '0' => __('Single-select', 'usces'), | |
| 85 | - '2' => __('Text', 'usces'), | |
| 86 | - '3' => __('Radio-button', 'usces'), | |
| 87 | - '4' => __('Check-box', 'usces') | |
| 88 | - ); | |
| 89 | -$custom_member_select = array( | |
| 90 | - '0' => __('Single-select', 'usces'), | |
| 91 | - '2' => __('Text', 'usces'), | |
| 92 | - '3' => __('Radio-button', 'usces'), | |
| 93 | - '4' => __('Check-box', 'usces') | |
| 94 | - ); | |
| 95 | -$custom_field_position_select = array( | |
| 96 | - 'name_pre' => __('Previous the name', 'usces'), | |
| 97 | - 'name_after' => __('After the name', 'usces'), | |
| 98 | - 'fax_after' => __('After the fax', 'usces') | |
| 99 | - ); | |
| 100 | - | |
| 101 | -//20100818ysk end | |
| 102 | -//20110331ysk start | |
| 103 | -/* | |
| 104 | -$province_ja = array(__('-- Select --', 'usces'),"北海道","青森県","岩手県","宮城県","秋田県","山形県","福島県","茨城県", | |
| 105 | - "栃木県","群馬県","埼玉県","千葉県","東京都","神奈川県","新潟県","富山県","石川県", | |
| 106 | - "福井県","山梨県","長野県","岐阜県","静岡県","愛知県","三重県","滋賀県","京都府", | |
| 107 | - "大阪府","兵庫県","奈良県","和歌山県","鳥取県","島根県","岡山県","広島県","山口県", | |
| 108 | - "徳島県","香川県","愛媛県","高知県","福岡県","佐賀県","長崎県","熊本県","大分県", | |
| 109 | - "宮崎県","鹿児島県","沖縄県"); | |
| 110 | -$province_en = array(__('-- Select --', 'usces'),"Alabama","Alaska","Arizona","Arkansas","California","Colorado", | |
| 111 | - "Connecticut","Delaware","District of Columbia","Florida","Georgia","Hawaii", | |
| 112 | - "Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine", | |
| 113 | - "Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri", | |
| 114 | - "Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York", | |
| 115 | - "North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania", | |
| 116 | - "Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont", | |
| 117 | - "Virginia","Washington","West Virginia","Wisconsin","Wyoming"); | |
| 118 | -$usces_pref = ( 'ja' == get_locale() ) ? $province_ja : $province_en; | |
| 119 | -*/ | |
| 120 | -//20110331ysk end | |
| 121 | - | |
| 122 | -$usces_secure_link = array('zeus'); | |
| 123 | - | |
| 124 | - | |
| 125 | -update_option('usces_management_status',$management_status); | |
| 126 | -update_option('usces_zaiko_status',$zaiko_status); | |
| 127 | -update_option('usces_customer_status',$customer_status); | |
| 128 | -if( !get_option('usces_payment_structure') ) | |
| 129 | - update_option('usces_payment_structure',$payment_structure); | |
| 130 | -update_option('usces_display_mode',$display_mode); | |
| 131 | -//20110331ysk start | |
| 132 | -//update_option('usces_pref',$usces_pref); | |
| 133 | -//20110331ysk end | |
| 134 | -update_option('usces_shipping_rule',$shipping_rule); | |
| 135 | -update_option('usces_item_option_select',$item_option_select); | |
| 136 | -//20100809ysk start | |
| 137 | -update_option('usces_custom_order_select', $custom_order_select); | |
| 138 | -//20100809ysk end | |
| 139 | -//20100818ysk start | |
| 140 | -update_option('usces_custom_customer_select', $custom_customer_select); | |
| 141 | -update_option('usces_custom_delivery_select', $custom_delivery_select); | |
| 142 | -update_option('usces_custom_member_select', $custom_member_select); | |
| 143 | -update_option('usces_custom_field_position_select', $custom_field_position_select); | |
| 144 | -//20100818ysk end | |
| 145 | - | |
| 146 | -update_option('usces_currency_symbol',__('$', 'usces')); | |
| 147 | -update_option('usces_secure_link', $usces_secure_link); | |
| 148 | -if(!get_option('usces_wcid')) | |
| 149 | - update_option('usces_wcid', md5(uniqid(rand(),1))); | |
| 150 | - | |
| 151 | -update_option('usces_secure_link', $usces_secure_link); | |
| 152 | -update_option('usces_secure_link', $usces_secure_link); | |
| 153 | - | |
| 154 | -$usces_op = get_option('usces'); | |
| 155 | -if( !is_array($usces_op) || empty($usces_op) ){ | |
| 156 | - $usces_op = array(); | |
| 157 | -} | |
| 158 | -$uop_init['company_name'] = isset($usces_op['company_name']) ? $usces_op['company_name'] : ''; | |
| 159 | -$uop_init['zip_code'] = isset($usces_op['zip_code']) ? $usces_op['zip_code'] : ''; | |
| 160 | -$uop_init['address1'] = isset($usces_op['address1']) ? $usces_op['address1'] : ''; | |
| 161 | -$uop_init['address2'] = isset($usces_op['address2']) ? $usces_op['address2'] : ''; | |
| 162 | -$uop_init['tel_number'] = isset($usces_op['tel_number']) ? $usces_op['tel_number'] : ''; | |
| 163 | -$uop_init['fax_number'] = isset($usces_op['fax_number']) ? $usces_op['fax_number'] : ''; | |
| 164 | -$uop_init['inquiry_mail'] = isset($usces_op['inquiry_mail']) ? $usces_op['inquiry_mail'] : ''; | |
| 165 | - | |
| 166 | -$usces_op['mail_default']['title']['thankyou'] = __('Confirmation of order details', 'usces'); | |
| 167 | -$usces_op['mail_default']['title']['order'] = __('An order report', 'usces'); | |
| 168 | -$usces_op['mail_default']['title']['inquiry'] = __('Your question is sent', 'usces'); | |
| 169 | -$usces_op['mail_default']['title']['returninq'] = __('About your question', 'usces'); | |
| 170 | -$usces_op['mail_default']['title']['membercomp'] = __('Comfirmation of your registration for membership', 'usces'); | |
| 171 | -$usces_op['mail_default']['title']['completionmail'] = __('Information for shipping of your ordered items', 'usces'); | |
| 172 | -$usces_op['mail_default']['title']['ordermail'] = __('Confirmation of order details', 'usces'); | |
| 173 | -$usces_op['mail_default']['title']['changemail'] = __('Confirmation of change for your order details', 'usces'); | |
| 174 | -$usces_op['mail_default']['title']['receiptmail'] = __('Confirmation mail for your transfer', 'usces'); | |
| 175 | -$usces_op['mail_default']['title']['mitumorimail'] = __('Estimate', 'usces'); | |
| 176 | -$usces_op['mail_default']['title']['cancelmail'] = __('Confirmatin of your cancellation', 'usces'); | |
| 177 | -$usces_op['mail_default']['title']['othermail'] = "[]"; | |
| 178 | - | |
| 179 | -$usces_op['mail_default']['header']['thankyou'] = sprintf(__('Thank you for choosing %s.', 'usces'), get_option('blogname')) . "\r\n"; | |
| 180 | -$usces_op['mail_default']['header']['thankyou'] .= __("We have received your order. Please check following information.", 'usces') . "\r\n\r\n"; | |
| 181 | -$usces_op['mail_default']['header']['thankyou'] .= __("We will inform you by e-mail when we are ready to ship ordered items to you.", 'usces') . "\r\n\r\n"; | |
| 182 | -$usces_op['mail_default']['header']['order'] = sprintf(__('There is new order by %s.', 'usces'), get_option('blogname')) . "\r\n"; | |
| 183 | -$usces_op['mail_default']['header']['inquiry'] = sprintf(__('Thank you for choosing %s.', 'usces'), get_option('blogname')) . "\r\n"; | |
| 184 | -$usces_op['mail_default']['header']['inquiry'] .= __("We have received following e-mail.", 'usces') . "\r\n\r\n"; | |
| 185 | -$usces_op['mail_default']['header']['inquiry'] .= __("We will contact you by e-mail soon.", 'usces') . "\r\n\r\n"; | |
| 186 | -$usces_op['mail_default']['header']['returninq'] = ""; | |
| 187 | -$usces_op['mail_default']['header']['membercomp'] = sprintf(__('Than you for registrating as %s membership.', 'usces'), get_option('blogname')) . "\r\n\r\n"; | |
| 188 | -$usces_op['mail_default']['header']['membercomp'] .= __("You can chek your purchase status at section 'membership information'.", 'usces') . "\r\n\r\n"; | |
| 189 | -$usces_op['mail_default']['header']['completionmail'] = __("Your ordered items have been sent today.", 'usces') . "\r\n\r\n"; | |
| 190 | -$usces_op['mail_default']['header']['completionmail'] .= __("It will be delivered by company xxx in couple of days.", 'usces') . "\r\n\r\n"; | |
| 191 | -$usces_op['mail_default']['header']['completionmail'] .= __("Please contact us in case you have any problems with receiving your items.", 'usces') . "\r\n\r\n"; | |
| 192 | -$usces_op['mail_default']['header']['ordermail'] = sprintf(__('Thank you for choosing %s.', 'usces'), get_option('blogname')) . "\r\n"; | |
| 193 | -$usces_op['mail_default']['header']['ordermail'] .= __("We have received your order. Please check following information.", 'usces') . "\r\n\r\n"; | |
| 194 | -$usces_op['mail_default']['header']['ordermail'] .= __("We will inform you by e-mail when we are ready to ship ordered items to you.", 'usces') . "\r\n\r\n"; | |
| 195 | -$usces_op['mail_default']['header']['changemail'] = sprintf(__('Thank you for choosing %s.', 'usces'), get_option('blogname')) . "\r\n"; | |
| 196 | -$usces_op['mail_default']['header']['changemail'] .= __("You have changed your order as following.", 'usces') . "\r\n\r\n"; | |
| 197 | -$usces_op['mail_default']['header']['changemail'] .= __("We will inform you by e-mail when we are ready to send your items.", 'usces') . "\r\n\r\n"; | |
| 198 | -$usces_op['mail_default']['header']['receiptmail'] = sprintf(__('Thank you for choosing %s.', 'usces'), get_option('blogname')) . "\r\n"; | |
| 199 | -$usces_op['mail_default']['header']['receiptmail'] .= __("Your transfer have been made successfully.", 'usces') . "\r\n\r\n"; | |
| 200 | -$usces_op['mail_default']['header']['receiptmail'] .= __("We will inform you by e-mail when we are ready to send your items.", 'usces') . "\r\n\r\n"; | |
| 201 | -$usces_op['mail_default']['header']['mitumorimail'] = sprintf(__('Thank you for choosing %s.', 'usces'), get_option('blogname')) . "\r\n"; | |
| 202 | -$usces_op['mail_default']['header']['mitumorimail'] .= __("We will send you following estimate for your items.", 'usces') . "\r\n\r\n"; | |
| 203 | -$usces_op['mail_default']['header']['mitumorimail'] .= __("This estimate is valid for one week.", 'usces') . "\r\n\r\n"; | |
| 204 | -$usces_op['mail_default']['header']['cancelmail'] = sprintf(__('Thank you for choosing %s.', 'usces'), get_option('blogname')) . "\r\n"; | |
| 205 | -$usces_op['mail_default']['header']['cancelmail'] .= __("We have received your cancellationfor your order.", 'usces') . "\r\n\r\n"; | |
| 206 | -$usces_op['mail_default']['header']['othermail'] = sprintf(__('Thank you for choosing %s.', 'usces'), get_option('blogname')) . "\r\n\r\n"; | |
| 207 | - | |
| 208 | -$usces_op['mail_default']['footer']['thankyou'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 209 | -$usces_op['mail_default']['footer']['order'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 210 | -$usces_op['mail_default']['footer']['inquiry'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 211 | -$usces_op['mail_default']['footer']['returninq'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 212 | -$usces_op['mail_default']['footer']['membercomp'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 213 | -$usces_op['mail_default']['footer']['completionmail'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 214 | -$usces_op['mail_default']['footer']['ordermail'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 215 | -$usces_op['mail_default']['footer']['changemail'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 216 | -$usces_op['mail_default']['footer']['receiptmail'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 217 | -$usces_op['mail_default']['footer']['mitumorimail'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 218 | -$usces_op['mail_default']['footer']['cancelmail'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 219 | -$usces_op['mail_default']['footer']['othermail'] = "=============================================\r\n" . get_option('blogname') . "\r\n" . $uop_init['company_name'] . "\r\n" . __('zip code', 'usces') . " " . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . "TEL " . $uop_init['tel_number'] . "\r\n" . "FAX " . $uop_init['fax_number'] . "\r\n" . __('contact', 'usces') . " " . $uop_init['inquiry_mail'] . "\r\n" . get_option('home') . "\r\n" . "=============================================\r\n"; | |
| 220 | - | |
| 221 | -$usces_op['usces_shipping_indication'] = $shipping_indication; | |
| 222 | - | |
| 223 | -update_option('usces', $usces_op); | |
| 224 | - | |
| 225 | -/************************************************************************/ | |
| 226 | -/* usces_settings */ | |
| 227 | -$usces_settings['language'] = array(); | |
| 228 | -//20111117ysk 0000308 | |
| 229 | -$usces_settings['currency'] = array( | |
| 230 | - 'AR' => array('ARS', 2, '.', ',', '$'), | |
| 231 | - 'AU' => array('AUD', 2, '.', ',', '$'), | |
| 232 | - 'AT' => array('EUR', 2, '.', ',', '€'), | |
| 233 | - 'BE' => array('EUR', 2, '.', ',', '€'), | |
| 234 | - 'BR' => array('BRL', 2, '.', ',', '$'), | |
| 235 | - 'CA' => array('CAD', 2, '.', ',', '$'), | |
| 236 | - 'CL' => array('CLP', 2, '.', ',', '$'), | |
| 237 | - 'CN' => array('CNY', 2, '.', ',', '¥'), | |
| 238 | - 'CR' => array('CRC', 2, '.', ',', '₡'), | |
| 239 | - 'CZ' => array('CZK', 2, '.', ',', 'Kč'), | |
| 240 | - 'DK' => array('DKK', 2, '.', ',', 'kr'), | |
| 241 | - 'DO' => array('DOP', 2, '.', ',', 'RD$'), | |
| 242 | - 'FI' => array('EUR', 2, '.', ',', '€'), | |
| 243 | - 'FR' => array('EUR', 2, '.', ',', '€'), | |
| 244 | - 'DE' => array('EUR', 2, '.', ',', '€'), | |
| 245 | - 'GR' => array('EUR', 2, '.', ',', '€'), | |
| 246 | - 'GT' => array('GTQ', 2, '.', ',', ''), | |
| 247 | - 'HK' => array('HKD', 2, '.', ',', '$'), | |
| 248 | - 'HU' => array('HUF', 2, '.', ',', ''), | |
| 249 | - 'IN' => array('INR', 2, '.', ',', '₨'), | |
| 250 | - 'ID' => array('IDR', 2, '.', ',', 'Rp'), | |
| 251 | - 'IE' => array('EUR', 2, '.', ',', '€'), | |
| 252 | - 'IL' => array('ILS', 2, '.', ',', '₪'), | |
| 253 | - 'IT' => array('EUR', 2, '.', ',', '€'), | |
| 254 | - 'JP' => array('JPY', 0, '.', ',', '¥'), | |
| 255 | - 'MO' => array('MOP', 2, '.', ',', '$'), | |
| 256 | - 'MY' => array('MYR', 2, '.', ',', 'RM'), | |
| 257 | - 'MX' => array('MXN', 2, '.', ',', '$'), | |
| 258 | - 'NL' => array('EUR', 2, '.', ',', '€'), | |
| 259 | - 'NZ' => array('NZD', 2, '.', ',', '$'), | |
| 260 | - 'NO' => array('NOK', 2, '.', ',', ''), | |
| 261 | - 'PA' => array('PAB', 2, '.', ',', ''), | |
| 262 | - 'PH' => array('PHP', 2, '.', ',', 'P'), | |
| 263 | - 'PL' => array('PLN', 2, '.', ',', ''), | |
| 264 | - 'PT' => array('EUR', 2, '.', ',', '€'), | |
| 265 | - 'PR' => array('USD', 2, '.', ',', '$'), | |
| 266 | - 'RO' => array('ROL', 2, '.', ',', 'L'), | |
| 267 | - 'RU' => array('RUR', 2, '.', ',', ''), | |
| 268 | - 'SG' => array('SGD', 2, '.', ',', '$'), | |
| 269 | - 'KR' => array('KRW', 0, '.', ',', '₩'), | |
| 270 | - 'ES' => array('EUR', 2, '.', ',', '€'), | |
| 271 | - 'SW' => array('SEK', 2, '.', ',', ''), | |
| 272 | - 'CH' => array('CHF', 2, '.', ',', 'Fr.'), | |
| 273 | - 'TW' => array('NT$', 0, '.', ',', '元'), | |
| 274 | - 'TH' => array('THB', 2, '.', ',', '฿'), | |
| 275 | - 'TR' => array('TRL', 2, '.', ',', '₤'), | |
| 276 | - 'GB' => array('GBP', 2, '.', ',', '£'), | |
| 277 | - 'US' => array('USD', 2, '.', ',', '$'), | |
| 278 | - 'VN' => array('VND', 2, '.', ',', '₫'), | |
| 279 | - 'OO' => array('USD', 2, '.', ',', '$'), | |
| 280 | - ); | |
| 281 | -$usces_settings['nameform'] = array( | |
| 282 | - 'AR' => 1, | |
| 283 | - 'AU' => 1, | |
| 284 | - 'AT' => 1, | |
| 285 | - 'BE' => 1, | |
| 286 | - 'BR' => 1, | |
| 287 | - 'CA' => 1, | |
| 288 | - 'CL' => 1, | |
| 289 | - 'CN' => 0, | |
| 290 | - 'CR' => 1, | |
| 291 | - 'CZ' => 1, | |
| 292 | - 'DK' => 1, | |
| 293 | - 'DO' => 1, | |
| 294 | - 'FI' => 1, | |
| 295 | - 'FR' => 1, | |
| 296 | - 'DE' => 1, | |
| 297 | - 'GR' => 1, | |
| 298 | - 'GT' => 1, | |
| 299 | - 'HK' => 1, | |
| 300 | - 'HU' => 1, | |
| 301 | - 'IN' => 1, | |
| 302 | - 'ID' => 1, | |
| 303 | - 'IE' => 1, | |
| 304 | - 'IL' => 1, | |
| 305 | - 'IT' => 1, | |
| 306 | - 'JP' => 0, | |
| 307 | - 'MO' => 1, | |
| 308 | - 'MY' => 1, | |
| 309 | - 'MX' => 1, | |
| 310 | - 'NL' => 1, | |
| 311 | - 'NZ' => 1, | |
| 312 | - 'NO' => 1, | |
| 313 | - 'PA' => 1, | |
| 314 | - 'PH' => 1, | |
| 315 | - 'PL' => 1, | |
| 316 | - 'PT' => 1, | |
| 317 | - 'PR' => 1, | |
| 318 | - 'RO' => 1, | |
| 319 | - 'RU' => 1, | |
| 320 | - 'SG' => 1, | |
| 321 | - 'KR' => 1, | |
| 322 | - 'ES' => 1, | |
| 323 | - 'SW' => 1, | |
| 324 | - 'CH' => 1, | |
| 325 | - 'TW' => 0, | |
| 326 | - 'TH' => 1, | |
| 327 | - 'TR' => 1, | |
| 328 | - 'GB' => 1, | |
| 329 | - 'US' => 1, | |
| 330 | - 'VN' => 1, | |
| 331 | - 'OO' => 1, | |
| 332 | - ); | |
| 333 | -$usces_settings['addressform'] = array( | |
| 334 | - 'AR' => 'US', | |
| 335 | - 'AU' => 'US', | |
| 336 | - 'AT' => 'US', | |
| 337 | - 'BE' => 'US', | |
| 338 | - 'BR' => 'US', | |
| 339 | - 'CA' => 'US', | |
| 340 | - 'CL' => 'US', | |
| 341 | - 'CN' => 'CN', | |
| 342 | - 'CR' => 'US', | |
| 343 | - 'CZ' => 'US', | |
| 344 | - 'DK' => 'US', | |
| 345 | - 'DO' => 'US', | |
| 346 | - 'FI' => 'US', | |
| 347 | - 'FR' => 'US', | |
| 348 | - 'DE' => 'US', | |
| 349 | - 'GR' => 'US', | |
| 350 | - 'GT' => 'US', | |
| 351 | - 'HK' => 'US', | |
| 352 | - 'HU' => 'US', | |
| 353 | - 'IN' => 'US', | |
| 354 | - 'ID' => 'US', | |
| 355 | - 'IE' => 'US', | |
| 356 | - 'IL' => 'US', | |
| 357 | - 'IT' => 'US', | |
| 358 | - 'JP' => 'JP', | |
| 359 | - 'MO' => 'US', | |
| 360 | - 'MY' => 'US', | |
| 361 | - 'MX' => 'US', | |
| 362 | - 'NL' => 'US', | |
| 363 | - 'NZ' => 'US', | |
| 364 | - 'NO' => 'US', | |
| 365 | - 'PA' => 'US', | |
| 366 | - 'PH' => 'US', | |
| 367 | - 'PL' => 'US', | |
| 368 | - 'PT' => 'US', | |
| 369 | - 'PR' => 'US', | |
| 370 | - 'RO' => 'US', | |
| 371 | - 'RU' => 'US', | |
| 372 | - 'SG' => 'US', | |
| 373 | - 'KR' => 'US', | |
| 374 | - 'ES' => 'US', | |
| 375 | - 'SW' => 'US', | |
| 376 | - 'CH' => 'US', | |
| 377 | - 'TW' => 'JP', | |
| 378 | - 'TH' => 'US', | |
| 379 | - 'TR' => 'US', | |
| 380 | - 'GB' => 'US', | |
| 381 | - 'US' => 'US', | |
| 382 | - 'VN' => 'US', | |
| 383 | - 'OO' => 'US', | |
| 384 | - ); | |
| 385 | -$usces_settings['country'] = array( | |
| 386 | - 'AR' => __('Argentina', 'usces'), | |
| 387 | - 'AU' => __('Australia', 'usces'), | |
| 388 | - 'AT' => __('Austria', 'usces'), | |
| 389 | - 'BE' => __('Belgium', 'usces'), | |
| 390 | - 'BR' => __('Brazil', 'usces'), | |
| 391 | - 'CA' => __('Canada', 'usces'), | |
| 392 | - 'CL' => __('Chile', 'usces'), | |
| 393 | - 'CN' => __('China', 'usces'), | |
| 394 | - 'CR' => __('Costa Rica', 'usces'), | |
| 395 | - 'CZ' => __('Czech Republic', 'usces'), | |
| 396 | - 'DK' => __('Denmark', 'usces'), | |
| 397 | - 'DO' => __('Dominican Republic', 'usces'), | |
| 398 | - 'FI' => __('Finland', 'usces'), | |
| 399 | - 'FR' => __('France', 'usces'), | |
| 400 | - 'DE' => __('Germany', 'usces'), | |
| 401 | - 'GR' => __('Greece', 'usces'), | |
| 402 | - 'GT' => __('Guatemala', 'usces'), | |
| 403 | - 'HK' => __('Hong Kong', 'usces'), | |
| 404 | - 'HU' => __('Hungary', 'usces'), | |
| 405 | - 'IN' => __('India', 'usces'), | |
| 406 | - 'ID' => __('Indonesia', 'usces'), | |
| 407 | - 'IE' => __('Ireland', 'usces'), | |
| 408 | - 'IL' => __('Israel', 'usces'), | |
| 409 | - 'IT' => __('Italy', 'usces'), | |
| 410 | - 'JP' => __('Japan', 'usces'), | |
| 411 | - 'MO' => __('Macau', 'usces'), | |
| 412 | - 'MY' => __('Malaysia', 'usces'), | |
| 413 | - 'MX' => __('Mexico', 'usces'), | |
| 414 | - 'NL' => __('Netherlands', 'usces'), | |
| 415 | - 'NZ' => __('New Zealand', 'usces'), | |
| 416 | - 'NO' => __('Norway', 'usces'), | |
| 417 | - 'PA' => __('Panama', 'usces'), | |
| 418 | - 'PH' => __('Philippines', 'usces'), | |
| 419 | - 'PL' => __('Poland', 'usces'), | |
| 420 | - 'PT' => __('Portugal', 'usces'), | |
| 421 | - 'PR' => __('Puerto Rico', 'usces'), | |
| 422 | - 'RO' => __('Romania', 'usces'), | |
| 423 | - 'RU' => __('Russia', 'usces'), | |
| 424 | - 'SG' => __('Singapore', 'usces'), | |
| 425 | - 'KR' => __('South Korea', 'usces'), | |
| 426 | - 'ES' => __('Spain', 'usces'), | |
| 427 | - 'SW' => __('Sweden', 'usces'), | |
| 428 | - 'CH' => __('Switzerland', 'usces'), | |
| 429 | - 'TW' => __('Taiwan', 'usces'), | |
| 430 | - 'TH' => __('Thailand', 'usces'), | |
| 431 | - 'TR' => __('Turkey', 'usces'), | |
| 432 | - 'GB' => __('United Kingdom', 'usces'), | |
| 433 | - 'US' => __('United States', 'usces'), | |
| 434 | - 'VN' => __('Vietnam', 'usces'), | |
| 435 | - 'OO' => __('Other', 'usces'), | |
| 436 | - ); | |
| 437 | -$usces_settings['country_num'] = array( | |
| 438 | - 'AR' => '54', | |
| 439 | - 'AR' => '61', | |
| 440 | - 'AT' => '43', | |
| 441 | - 'BE' => '32', | |
| 442 | - 'BR' => '55', | |
| 443 | - 'CA' => '1', | |
| 444 | - 'CL' => '56', | |
| 445 | - 'CN' => '86', | |
| 446 | - 'CR' => '506', | |
| 447 | - 'CZ' => '420', | |
| 448 | - 'DK' => '45', | |
| 449 | - 'DO' => '1-809', | |
| 450 | - 'FI' => '358', | |
| 451 | - 'FR' => '33', | |
| 452 | - 'DE' => '49', | |
| 453 | - 'GR' => '30', | |
| 454 | - 'GT' => '502', | |
| 455 | - 'HK' => '852', | |
| 456 | - 'HU' => '36', | |
| 457 | - 'IN' => '91', | |
| 458 | - 'ID' => '62', | |
| 459 | - 'IE' => '353', | |
| 460 | - 'IL' => '972', | |
| 461 | - 'IT' => '39', | |
| 462 | - 'JP' => '81', | |
| 463 | - 'MO' => '853', | |
| 464 | - 'MY' => '60', | |
| 465 | - 'MX' => '52', | |
| 466 | - 'NL' => '31', | |
| 467 | - 'NZ' => '64', | |
| 468 | - 'NO' => '47', | |
| 469 | - 'PA' => '507', | |
| 470 | - 'PH' => '63', | |
| 471 | - 'PL' => '48', | |
| 472 | - 'PT' => '351', | |
| 473 | - 'PR' => '1-787', | |
| 474 | - 'RO' => '40', | |
| 475 | - 'RU' => '7', | |
| 476 | - 'SG' => '65', | |
| 477 | - 'KR' => '82', | |
| 478 | - 'ES' => '34', | |
| 479 | - 'SW' => '46', | |
| 480 | - 'CH' => '41', | |
| 481 | - 'TW' => '886', | |
| 482 | - 'TH' => '66', | |
| 483 | - 'TR' => '90', | |
| 484 | - 'GB' => '44', | |
| 485 | - 'US' => '1', | |
| 486 | - 'VN' => '84', | |
| 487 | - 'OO' => '1', | |
| 488 | - ); | |
| 489 | -$usces_settings['lungage2country'] = array( | |
| 490 | - 'es_AR' => 'AR', | |
| 491 | - 'en_AU' => 'AU', | |
| 492 | - 'de_AT' => 'AT', | |
| 493 | - 'nl_BE' => 'BE', | |
| 494 | - 'fr_BE' => 'BE', | |
| 495 | - 'pt_BR' => 'BR', | |
| 496 | - 'en_CA' => 'CA', | |
| 497 | - 'fr_CA' => 'CA', | |
| 498 | - 'es_CL' => 'CL', | |
| 499 | - 'zh_CN' => 'CN', | |
| 500 | - 'zh' => 'CN', | |
| 501 | - 'es_CR' => 'CR', | |
| 502 | - 'cs_CZ' => 'CZ', | |
| 503 | - 'cs' => 'CZ', | |
| 504 | - 'da' => 'DK', | |
| 505 | - 'da_DK' => 'DK', | |
| 506 | - 'es_DO' => 'DO', | |
| 507 | - 'fi_FI' => 'FI', | |
| 508 | - 'fi' => 'FI', | |
| 509 | - 'sv_FI' => 'FI', | |
| 510 | - 'fr' => 'FR', | |
| 511 | - 'fr_FR' => 'FR', | |
| 512 | - 'de' => 'DE', | |
| 513 | - 'de_DE' => 'DE', | |
| 514 | - 'el' => 'GR', | |
| 515 | - 'el_GR' => 'GR', | |
| 516 | - 'es_GT' => 'GT', | |
| 517 | - 'zh_HK' => 'HK', | |
| 518 | - 'en_HK' => 'HK', | |
| 519 | - 'hu_HU' => 'HU', | |
| 520 | - 'hu' => 'HU', | |
| 521 | - 'hi' => 'IN', | |
| 522 | - 'hi_IN' => 'IN', | |
| 523 | - 'id' => 'ID', | |
| 524 | - 'id_ID' => 'ID', | |
| 525 | - 'ga' => 'IE', | |
| 526 | - 'ga_IE' => 'IE', | |
| 527 | - 'en_IE' => 'IE', | |
| 528 | - 'he_IL' => 'IL', | |
| 529 | - 'ar_IL' => 'IL', | |
| 530 | - 'it' => 'IT', | |
| 531 | - 'it_IT' => 'IT', | |
| 532 | - 'ja' => 'JP', | |
| 533 | - 'ja_JP' => 'JP', | |
| 534 | - 'zh_MO' => 'MO', | |
| 535 | - 'pt_MO' => 'MO', | |
| 536 | - 'ms' => 'MY', | |
| 537 | - 'ms_MY' => 'MY', | |
| 538 | - 'es_MX' => 'MX', | |
| 539 | - 'nl' => 'NL', | |
| 540 | - 'nl_NL' => 'NL', | |
| 541 | - 'en_NZ' => 'NZ', | |
| 542 | - 'mi_NZ' => 'NZ', | |
| 543 | - 'mi' => 'NZ', | |
| 544 | - 'no' => 'NO', | |
| 545 | - 'no_NO' => 'NO', | |
| 546 | - 'es_PA' => 'PA', | |
| 547 | - 'tl' => 'PH', | |
| 548 | - 'tl_PH' => 'PH', | |
| 549 | - 'en_PH' => 'PH', | |
| 550 | - 'pl' => 'PL', | |
| 551 | - 'pl_PL' => 'PL', | |
| 552 | - 'pt' => 'PT', | |
| 553 | - 'pt_PT' => 'PT', | |
| 554 | - 'es_PR' => 'PR', | |
| 555 | - 'en_PR' => 'PR', | |
| 556 | - 'ro' => 'RO', | |
| 557 | - 'ro_RO' => 'RO', | |
| 558 | - 'ru' => 'RU', | |
| 559 | - 'ru_RU' => 'RU', | |
| 560 | - 'en_SG' => 'SG', | |
| 561 | - 'ms_SG' => 'SG', | |
| 562 | - 'zh_SG' => 'SG', | |
| 563 | - 'ko' => 'KR', | |
| 564 | - 'ko_KR' => 'KR', | |
| 565 | - 'es' => 'ES', | |
| 566 | - 'es_ES' => 'ES', | |
| 567 | - 'sv' => 'SW', | |
| 568 | - 'sv_SW' => 'SW', | |
| 569 | - 'de_CH' => 'CH', | |
| 570 | - 'fr_CH' => 'CH', | |
| 571 | - 'it_CH' => 'CH', | |
| 572 | - 'rm_CH' => 'CH', | |
| 573 | - 'rm' => 'CH', | |
| 574 | - 'zh_TW' => 'TW', | |
| 575 | - 'th' => 'TH', | |
| 576 | - 'th_TH' => 'TH', | |
| 577 | - 'tr' => 'TR', | |
| 578 | - 'tr_TR' => 'TR', | |
| 579 | - 'en' => 'GB', | |
| 580 | - 'en_GB' => 'GB', | |
| 581 | - '' => 'US', | |
| 582 | - 'en_US' => 'US', | |
| 583 | - 'vi' => 'VN', | |
| 584 | - 'vi_VN' => 'VN', | |
| 585 | - 'zh_TW' => 'TW' | |
| 586 | - ); | |
| 587 | -$usces_states['JP'] = array(__('-- Select --', 'usces'),"北海道","青森県","岩手県","宮城県","秋田県","山形県","福島県","茨城県", | |
| 588 | - "栃木県","群馬県","埼玉県","千葉県","東京都","神奈川県","新潟県","富山県","石川県", | |
| 589 | - "福井県","山梨県","長野県","岐阜県","静岡県","愛知県","三重県","滋賀県","京都府", | |
| 590 | - "大阪府","兵庫県","奈良県","和歌山県","鳥取県","島根県","岡山県","広島県","山口県", | |
| 591 | - "徳島県","香川県","愛媛県","高知県","福岡県","佐賀県","長崎県","熊本県","大分県", | |
| 592 | - "宮崎県","鹿児島県","沖縄県"); | |
| 593 | -//20120123ysk 0000386 | |
| 594 | -//$usces_states['US'] = array(__('-- Select --', 'usces'),"Alabama","Alaska","Arizona","Arkansas","California","Colorado", | |
| 595 | -$usces_states['US'] = array('-- Select --',"Alabama","Alaska","Arizona","Arkansas","California","Colorado", | |
| 596 | - "Connecticut","Delaware","District of Columbia","Florida","Georgia","Hawaii", | |
| 597 | - "Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine", | |
| 598 | - "Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri", | |
| 599 | - "Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York", | |
| 600 | - "North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania", | |
| 601 | - "Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont", | |
| 602 | - "Virginia","Washington","West Virginia","Wisconsin","Wyoming"); | |
| 603 | -if( !get_option('usces_states') ) | |
| 604 | - update_option('usces_states',$usces_states); | |
| 605 | - | |
| 606 | - | |
| 607 | -$usces_essential_mark = array( | |
| 608 | - 'name1' => '<em>' . __('*', 'usces') . '</em>', | |
| 609 | - 'name2' => '', | |
| 610 | - 'name3' => '', | |
| 611 | - 'name4' => '', | |
| 612 | - 'zipcode' => '<em>' . __('*', 'usces') . '</em>', | |
| 613 | - 'country' => '<em>' . __('*', 'usces') . '</em>', | |
| 614 | - 'states' => '<em>' . __('*', 'usces') . '</em>', | |
| 615 | - 'address1' => '<em>' . __('*', 'usces') . '</em>', | |
| 616 | - 'address2' => '<em>' . __('*', 'usces') . '</em>', | |
| 617 | - 'address3' => '', | |
| 618 | - 'tel' => '<em>' . __('*', 'usces') . '</em>', | |
| 619 | - 'fax' => '' | |
| 620 | - ); | |
| 621 | - | |
| 622 | -unset($uop_init); | |
| 623 | -?> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Initial value settings. | |
| 4 | + * | |
| 5 | + * @package Welcart | |
| 6 | + */ | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * Load plugin textdomain | |
| 10 | + */ | |
| 11 | +function wel_textdomain() { | |
| 12 | + load_plugin_textdomain( 'usces', false, USCES_PLUGIN_FOLDER . '/languages' ); | |
| 13 | + $usces_tax = Welcart_Tax::get_instance(); | |
| 14 | + $usces_tax->load_textdomain(); | |
| 15 | +} | |
| 16 | +add_action( 'init', 'wel_textdomain', 1 ); | |
| 17 | +add_action( 'widgets_init', 'wel_textdomain' ); | |
| 18 | + | |
| 19 | +/** | |
| 20 | + * Initial value settings that need translation. | |
| 21 | + */ | |
| 22 | +function wel_lang_init() { | |
| 23 | + usces_zaiko_status_init(); | |
| 24 | + usces_management_status_init(); | |
| 25 | + usces_customer_status_init(); | |
| 26 | + usces_payment_structure_init(); | |
| 27 | + usces_display_mode_init(); | |
| 28 | + usces_shipping_rule_init(); | |
| 29 | + usces_item_option_select_init(); | |
| 30 | + usces_custom_order_select_init(); | |
| 31 | + usces_custom_customer_select_init(); | |
| 32 | + usces_custom_delivery_select_init(); | |
| 33 | + usces_custom_member_select_init(); | |
| 34 | + usces_custom_field_position_select_init(); | |
| 35 | + usces_order_mail_print_fields_init(); | |
| 36 | + usces_currency_symbol_init(); | |
| 37 | + usces_default_mail_init(); | |
| 38 | + usces_country_name_init(); | |
| 39 | + usces_essential_mark_init(); | |
| 40 | + usces_available_settlement_init(); | |
| 41 | +} | |
| 42 | +add_action( 'init', 'wel_lang_init' ); | |
| 43 | + | |
| 44 | +/** | |
| 45 | + * Stock status initialization | |
| 46 | + * key(slug) => Stock status | |
| 47 | + */ | |
| 48 | +function usces_zaiko_status_init() { | |
| 49 | + $zaiko_status = array( | |
| 50 | + '0' => __( 'In Stock', 'usces' ), | |
| 51 | + '1' => __( 'A Few Stock', 'usces' ), | |
| 52 | + '2' => __( 'Sold Out', 'usces' ), | |
| 53 | + '3' => __( 'Out Of Stock', 'usces' ), | |
| 54 | + '4' => __( 'Out of print', 'usces' ), | |
| 55 | + ); | |
| 56 | + | |
| 57 | + $usces_op = get_option( 'usces' ); | |
| 58 | + if ( ! is_array( $usces_op ) || empty( $usces_op ) ) { | |
| 59 | + $usces_op = array(); | |
| 60 | + } | |
| 61 | + | |
| 62 | + if ( isset( $usces_op['stock_status_label'] ) && is_array( $usces_op['stock_status_label'] ) ) { | |
| 63 | + $stock_status_label = $zaiko_status; | |
| 64 | + foreach ( $stock_status_label as $key => $label ) { | |
| 65 | + if ( ! empty( $usces_op['stock_status_label'][ $key ] ) && $label != $usces_op['stock_status_label'][ $key ] ) { | |
| 66 | + $stock_status_label[ $key ] = $usces_op['stock_status_label'][ $key ]; | |
| 67 | + } | |
| 68 | + } | |
| 69 | + if ( $stock_status_label !== $zaiko_status ) { | |
| 70 | + update_option( 'usces_zaiko_status', $stock_status_label ); | |
| 71 | + } else { | |
| 72 | + update_option( 'usces_zaiko_status', $zaiko_status ); | |
| 73 | + } | |
| 74 | + } else { | |
| 75 | + if ( false === get_option( 'usces_zaiko_status' ) ) { | |
| 76 | + add_option( 'usces_zaiko_status', $zaiko_status ); | |
| 77 | + } | |
| 78 | + } | |
| 79 | +} | |
| 80 | + | |
| 81 | +/** | |
| 82 | + * Management status initialization | |
| 83 | + * key(slug) => Order status | |
| 84 | + */ | |
| 85 | +function usces_management_status_init() { | |
| 86 | + $management_status = array( | |
| 87 | + 'estimate' => __( 'An estimate', 'usces' ), | |
| 88 | + 'adminorder' => __( 'Management of Note', 'usces' ), | |
| 89 | + 'noreceipt' => __( 'unpaid', 'usces' ), | |
| 90 | + 'receipted' => __( 'payment confirmed', 'usces' ), | |
| 91 | + 'duringorder' => __( 'temporaly out of stock', 'usces' ), | |
| 92 | + 'cancel' => __( 'Cancel', 'usces' ), | |
| 93 | + 'completion' => __( 'It has sent it out.', 'usces' ), | |
| 94 | + 'pending' => __( 'Pending', 'usces' ), | |
| 95 | + ); | |
| 96 | + update_option( 'usces_management_status', $management_status ); | |
| 97 | +} | |
| 98 | + | |
| 99 | +/** | |
| 100 | + * Option - usces_customer_status | |
| 101 | + * key(slug) => 会員ランク | |
| 102 | + */ | |
| 103 | +function usces_customer_status_init() { | |
| 104 | + $customer_status = array( | |
| 105 | + '0' => __( 'notmal member', 'usces' ), | |
| 106 | + '1' => __( 'good member', 'usces' ), | |
| 107 | + '2' => __( 'VIP member', 'usces' ), | |
| 108 | + '99' => __( 'bad member', 'usces' ), | |
| 109 | + ); | |
| 110 | + update_option( 'usces_customer_status', $customer_status ); | |
| 111 | +} | |
| 112 | + | |
| 113 | +/** | |
| 114 | + * Payment structure initialization | |
| 115 | + * key(slug) => Payment method name | |
| 116 | + */ | |
| 117 | +function usces_payment_structure_init() { | |
| 118 | + global $payment_structure; | |
| 119 | + | |
| 120 | + $payment_structure = array( | |
| 121 | + 'acting' => __( 'The representation supplier settlement', 'usces' ), | |
| 122 | + 'transferAdvance' => __( 'Transfer (prepayment)', 'usces' ), | |
| 123 | + 'transferDeferred' => __( 'Transfer (postpay)', 'usces' ), | |
| 124 | + 'COD' => __( 'COD', 'usces' ), | |
| 125 | + ); | |
| 126 | + if ( ! get_option( 'usces_payment_structure' ) ) { | |
| 127 | + update_option( 'usces_payment_structure', $payment_structure ); | |
| 128 | + } | |
| 129 | +} | |
| 130 | + | |
| 131 | +/** | |
| 132 | + * Display mode initialization | |
| 133 | + * key(slug) => Display Mode | |
| 134 | + */ | |
| 135 | +function usces_display_mode_init() { | |
| 136 | + $display_mode = array( | |
| 137 | + 'Usualsale' => __( 'Normal business', 'usces' ), | |
| 138 | + 'Promotionsale' => __( 'During the campaign', 'usces' ), | |
| 139 | + 'Maintenancemode' => __( 'Under Maintenance', 'usces' ), | |
| 140 | + ); | |
| 141 | + update_option( 'usces_display_mode', $display_mode ); | |
| 142 | +} | |
| 143 | + | |
| 144 | +/** | |
| 145 | + * Shipping rule initialization | |
| 146 | + * key => Estimated shipping date | |
| 147 | + */ | |
| 148 | +function usces_shipping_rule_init() { | |
| 149 | + $shipping_rule = array( | |
| 150 | + '0' => __( '-- Select --', 'usces' ), | |
| 151 | + '1' => __( 'immediately', 'usces' ), | |
| 152 | + '2' => __( '1-2 days', 'usces' ), | |
| 153 | + '3' => __( '2-3days', 'usces' ), | |
| 154 | + '4' => __( '3-5days', 'usces' ), | |
| 155 | + '5' => __( '4-6days', 'usces' ), | |
| 156 | + '6' => __( 'about 1 week later', 'usces' ), | |
| 157 | + '7' => __( 'about 2 weeks later', 'usces' ), | |
| 158 | + '8' => __( 'about 3 weeks later', 'usces' ), | |
| 159 | + '9' => __( 'after we get new items', 'usces' ), | |
| 160 | + ); | |
| 161 | + update_option( 'usces_shipping_rule', $shipping_rule ); | |
| 162 | +} | |
| 163 | + | |
| 164 | +/** | |
| 165 | + * Item option select initialization | |
| 166 | + * key => input|attribute selection | |
| 167 | + */ | |
| 168 | +function usces_item_option_select_init() { | |
| 169 | + $item_option_select = array( | |
| 170 | + '0' => __( 'Single-select', 'usces' ), | |
| 171 | + '1' => __( 'Multi-select', 'usces' ), | |
| 172 | + '2' => __( 'Text', 'usces' ), | |
| 173 | + '3' => __( 'Radio-button', 'usces' ), | |
| 174 | + '4' => __( 'Check-box', 'usces' ), | |
| 175 | + '5' => __( 'Text-area', 'usces' ), | |
| 176 | + ); | |
| 177 | + update_option( 'usces_item_option_select', $item_option_select ); | |
| 178 | +} | |
| 179 | + | |
| 180 | +/** | |
| 181 | + * Custom order field select initialization | |
| 182 | + * key => input|attribute selection | |
| 183 | + */ | |
| 184 | +function usces_custom_order_select_init() { | |
| 185 | + $custom_order_select = array( | |
| 186 | + '0' => __( 'Single-select', 'usces' ), | |
| 187 | + '2' => __( 'Text', 'usces' ), | |
| 188 | + '3' => __( 'Radio-button', 'usces' ), | |
| 189 | + '4' => __( 'Check-box', 'usces' ), | |
| 190 | + '5' => __( 'Text-area', 'usces' ), | |
| 191 | + ); | |
| 192 | + update_option( 'usces_custom_order_select', $custom_order_select ); | |
| 193 | +} | |
| 194 | + | |
| 195 | +/** | |
| 196 | + * Custom customer field select initialization | |
| 197 | + * key => input|attribute selection | |
| 198 | + */ | |
| 199 | +function usces_custom_customer_select_init() { | |
| 200 | + $custom_customer_select = array( | |
| 201 | + '0' => __( 'Single-select', 'usces' ), | |
| 202 | + '2' => __( 'Text', 'usces' ), | |
| 203 | + '3' => __( 'Radio-button', 'usces' ), | |
| 204 | + '4' => __( 'Check-box', 'usces' ), | |
| 205 | + '5' => __( 'Text-area', 'usces' ), | |
| 206 | + ); | |
| 207 | + update_option( 'usces_custom_customer_select', $custom_customer_select ); | |
| 208 | +} | |
| 209 | + | |
| 210 | +/** | |
| 211 | + * Custom delivery field select initialization | |
| 212 | + * key => input|attribute selection | |
| 213 | + */ | |
| 214 | +function usces_custom_delivery_select_init() { | |
| 215 | + $custom_delivery_select = array( | |
| 216 | + '0' => __( 'Single-select', 'usces' ), | |
| 217 | + '2' => __( 'Text', 'usces' ), | |
| 218 | + '3' => __( 'Radio-button', 'usces' ), | |
| 219 | + '4' => __( 'Check-box', 'usces' ), | |
| 220 | + '5' => __( 'Text-area', 'usces' ), | |
| 221 | + ); | |
| 222 | + update_option( 'usces_custom_delivery_select', $custom_delivery_select ); | |
| 223 | +} | |
| 224 | + | |
| 225 | +/** | |
| 226 | + * Custom member field select initialization | |
| 227 | + * key => input|attribute selection | |
| 228 | + */ | |
| 229 | +function usces_custom_member_select_init() { | |
| 230 | + $custom_member_select = array( | |
| 231 | + '0' => __( 'Single-select', 'usces' ), | |
| 232 | + '2' => __( 'Text', 'usces' ), | |
| 233 | + '3' => __( 'Radio-button', 'usces' ), | |
| 234 | + '4' => __( 'Check-box', 'usces' ), | |
| 235 | + '5' => __( 'Text-area', 'usces' ), | |
| 236 | + ); | |
| 237 | + update_option( 'usces_custom_member_select', $custom_member_select ); | |
| 238 | +} | |
| 239 | + | |
| 240 | +/** | |
| 241 | + * Custom field position select initialization | |
| 242 | + * key(slug) => Custom field placement | |
| 243 | + */ | |
| 244 | +function usces_custom_field_position_select_init() { | |
| 245 | + $custom_field_position_select = array( | |
| 246 | + 'name_pre' => __( 'Previous the name', 'usces' ), | |
| 247 | + 'name_after' => __( 'After the name', 'usces' ), | |
| 248 | + 'fax_after' => __( 'After the fax', 'usces' ), | |
| 249 | + ); | |
| 250 | + update_option( 'usces_custom_field_position_select', $custom_field_position_select ); | |
| 251 | +} | |
| 252 | + | |
| 253 | +/** | |
| 254 | + * Order mail print fields initialization | |
| 255 | + * key(slug) => Various emails | |
| 256 | + */ | |
| 257 | +function usces_order_mail_print_fields_init() { | |
| 258 | + $order_mail_print_fields = array( | |
| 259 | + 'ordermail' => array( | |
| 260 | + 'type' => 'mail', | |
| 261 | + 'label' => __( 'Mail for confirmation of order', 'usces' ), | |
| 262 | + 'alias' => __( 'Order e-mail', 'usces' ), | |
| 263 | + ), | |
| 264 | + 'changemail' => array( | |
| 265 | + 'type' => 'mail', | |
| 266 | + 'label' => __( 'Mail for confiemation of change', 'usces' ), | |
| 267 | + 'alias' => __( 'Change e-mail', 'usces' ), | |
| 268 | + ), | |
| 269 | + 'receiptmail' => array( | |
| 270 | + 'type' => 'mail', | |
| 271 | + 'label' => __( 'Mail for confirmation of transter', 'usces' ), | |
| 272 | + 'alias' => __( 'Receipt e-mail', 'usces' ), | |
| 273 | + ), | |
| 274 | + 'mitumorimail' => array( | |
| 275 | + 'type' => 'mail', | |
| 276 | + 'label' => __( 'estimate mail', 'usces' ), | |
| 277 | + 'alias' => __( 'Estimate e-mail', 'usces' ), | |
| 278 | + ), | |
| 279 | + 'cancelmail' => array( | |
| 280 | + 'type' => 'mail', | |
| 281 | + 'label' => __( 'Cancelling mail', 'usces' ), | |
| 282 | + 'alias' => __( 'Cancel e-mail', 'usces' ), | |
| 283 | + ), | |
| 284 | + 'othermail' => array( | |
| 285 | + 'type' => 'mail', | |
| 286 | + 'label' => __( 'Other mail', 'usces' ), | |
| 287 | + 'alias' => __( 'Other e-mail', 'usces' ), | |
| 288 | + ), | |
| 289 | + 'completionmail' => array( | |
| 290 | + 'type' => 'mail', | |
| 291 | + 'label' => __( 'Mail for Shipping', 'usces' ), | |
| 292 | + 'alias' => __( 'Shipping e-mail', 'usces' ), | |
| 293 | + ), | |
| 294 | + 'mitumoriprint' => array( | |
| 295 | + 'type' => 'print', | |
| 296 | + 'label' => __( 'print out the estimate', 'usces' ), | |
| 297 | + 'alias' => __( 'Estimate print', 'usces' ), | |
| 298 | + ), | |
| 299 | + 'nohinprint' => array( | |
| 300 | + 'type' => 'print', | |
| 301 | + 'label' => __( 'print out Delivery Statement', 'usces' ), | |
| 302 | + 'alias' => __( 'Delivery print', 'usces' ), | |
| 303 | + ), | |
| 304 | + 'billprint' => array( | |
| 305 | + 'type' => 'print', | |
| 306 | + 'label' => __( 'Print Invoice', 'usces' ), | |
| 307 | + 'alias' => __( 'Invoice print', 'usces' ), | |
| 308 | + ), | |
| 309 | + 'receiptprint' => array( | |
| 310 | + 'type' => 'print', | |
| 311 | + 'label' => __( 'Print Receipt', 'usces' ), | |
| 312 | + 'alias' => __( 'Receipt print', 'usces' ), | |
| 313 | + ), | |
| 314 | + ); | |
| 315 | + update_option( 'usces_order_mail_print_fields', $order_mail_print_fields ); | |
| 316 | +} | |
| 317 | + | |
| 318 | +/** | |
| 319 | + * Currency symbol initialization | |
| 320 | + */ | |
| 321 | +function usces_currency_symbol_init() { | |
| 322 | + update_option( 'usces_currency_symbol', __( '$', 'usces' ) ); | |
| 323 | +} | |
| 324 | + | |
| 325 | +/** | |
| 326 | + * Default mail initialization | |
| 327 | + */ | |
| 328 | +function usces_default_mail_init() { | |
| 329 | + | |
| 330 | + $usces_op = get_option( 'usces' ); | |
| 331 | + if ( ! is_array( $usces_op ) || empty( $usces_op ) ) { | |
| 332 | + $usces_op = array(); | |
| 333 | + } | |
| 334 | + | |
| 335 | + $uop_init = array(); | |
| 336 | + $uop_init['company_name'] = isset( $usces_op['company_name'] ) ? $usces_op['company_name'] : ''; | |
| 337 | + $uop_init['zip_code'] = isset( $usces_op['zip_code'] ) ? $usces_op['zip_code'] : ''; | |
| 338 | + $uop_init['address1'] = isset( $usces_op['address1'] ) ? $usces_op['address1'] : ''; | |
| 339 | + $uop_init['address2'] = isset( $usces_op['address2'] ) ? $usces_op['address2'] : ''; | |
| 340 | + $uop_init['tel_number'] = isset( $usces_op['tel_number'] ) ? $usces_op['tel_number'] : ''; | |
| 341 | + $uop_init['fax_number'] = isset( $usces_op['fax_number'] ) ? $usces_op['fax_number'] : ''; | |
| 342 | + $uop_init['inquiry_mail'] = isset( $usces_op['inquiry_mail'] ) ? $usces_op['inquiry_mail'] : ''; | |
| 343 | + | |
| 344 | + $usces_op['mail_default']['title']['thankyou'] = __( 'Confirmation of order details', 'usces' ); | |
| 345 | + $usces_op['mail_default']['title']['order'] = __( 'An order report', 'usces' ); | |
| 346 | + $usces_op['mail_default']['title']['inquiry'] = __( 'Your question is sent', 'usces' ); | |
| 347 | + $usces_op['mail_default']['title']['returninq'] = __( 'About your question', 'usces' ); | |
| 348 | + $usces_op['mail_default']['title']['membercomp'] = __( 'Comfirmation of your registration for membership', 'usces' ); | |
| 349 | + $usces_op['mail_default']['title']['completionmail'] = __( 'Information for shipping of your ordered items', 'usces' ); | |
| 350 | + $usces_op['mail_default']['title']['ordermail'] = __( 'Confirmation of order details', 'usces' ); | |
| 351 | + $usces_op['mail_default']['title']['changemail'] = __( 'Confirmation of change for your order details', 'usces' ); | |
| 352 | + $usces_op['mail_default']['title']['receiptmail'] = __( 'Confirmation mail for your transfer', 'usces' ); | |
| 353 | + $usces_op['mail_default']['title']['mitumorimail'] = __( 'Estimate', 'usces' ); | |
| 354 | + $usces_op['mail_default']['title']['cancelmail'] = __( 'Confirmatin of your cancellation', 'usces' ); | |
| 355 | + $usces_op['mail_default']['title']['othermail'] = '[]'; | |
| 356 | + | |
| 357 | + $usces_op['mail_default']['header']['thankyou'] = sprintf( __( 'Thank you for choosing %s.', 'usces' ), get_option( 'blogname' ) ) . "\r\n"; | |
| 358 | + $usces_op['mail_default']['header']['thankyou'] .= __( 'We have received your order. Please check following information.', 'usces' ) . "\r\n\r\n"; | |
| 359 | + $usces_op['mail_default']['header']['thankyou'] .= __( 'We will inform you by e-mail when we are ready to ship ordered items to you.', 'usces' ) . "\r\n\r\n"; | |
| 360 | + $usces_op['mail_default']['header']['order'] = sprintf( __( 'There is new order by %s.', 'usces' ), get_option( 'blogname' ) ) . "\r\n"; | |
| 361 | + $usces_op['mail_default']['header']['inquiry'] = sprintf( __( 'Thank you for choosing %s.', 'usces' ), get_option( 'blogname' ) ) . "\r\n"; | |
| 362 | + $usces_op['mail_default']['header']['inquiry'] .= __( 'We have received following e-mail.', 'usces' ) . "\r\n\r\n"; | |
| 363 | + $usces_op['mail_default']['header']['inquiry'] .= __( 'We will contact you by e-mail soon.', 'usces' ) . "\r\n\r\n"; | |
| 364 | + $usces_op['mail_default']['header']['returninq'] = ''; | |
| 365 | + $usces_op['mail_default']['header']['membercomp'] = sprintf( __( 'Than you for registrating as %s membership.', 'usces' ), get_option( 'blogname' ) ) . "\r\n\r\n"; | |
| 366 | + $usces_op['mail_default']['header']['membercomp'] .= __( "You can chek your purchase status at section 'membership information'.", 'usces' ) . "\r\n\r\n"; | |
| 367 | + $usces_op['mail_default']['header']['completionmail'] = __( 'Your ordered items have been sent today.', 'usces' ) . "\r\n\r\n"; | |
| 368 | + $usces_op['mail_default']['header']['completionmail'] .= __( 'It will be delivered by company xxx in couple of days.', 'usces' ) . "\r\n\r\n"; | |
| 369 | + $usces_op['mail_default']['header']['completionmail'] .= __( 'Please contact us in case you have any problems with receiving your items.', 'usces' ) . "\r\n\r\n"; | |
| 370 | + $usces_op['mail_default']['header']['ordermail'] = sprintf( __( 'Thank you for choosing %s.', 'usces' ), get_option( 'blogname' ) ) . "\r\n"; | |
| 371 | + $usces_op['mail_default']['header']['ordermail'] .= __( 'We have received your order. Please check following information.', 'usces' ) . "\r\n\r\n"; | |
| 372 | + $usces_op['mail_default']['header']['ordermail'] .= __( 'We will inform you by e-mail when we are ready to ship ordered items to you.', 'usces' ) . "\r\n\r\n"; | |
| 373 | + $usces_op['mail_default']['header']['changemail'] = sprintf( __( 'Thank you for choosing %s.', 'usces' ), get_option( 'blogname' ) ) . "\r\n"; | |
| 374 | + $usces_op['mail_default']['header']['changemail'] .= __( 'You have changed your order as following.', 'usces' ) . "\r\n\r\n"; | |
| 375 | + $usces_op['mail_default']['header']['changemail'] .= __( 'We will inform you by e-mail when we are ready to send your items.', 'usces' ) . "\r\n\r\n"; | |
| 376 | + $usces_op['mail_default']['header']['receiptmail'] = sprintf( __( 'Thank you for choosing %s.', 'usces' ), get_option( 'blogname' ) ) . "\r\n"; | |
| 377 | + $usces_op['mail_default']['header']['receiptmail'] .= __( 'Your transfer have been made successfully.', 'usces' ) . "\r\n\r\n"; | |
| 378 | + $usces_op['mail_default']['header']['receiptmail'] .= __( 'We will inform you by e-mail when we are ready to send your items.', 'usces' ) . "\r\n\r\n"; | |
| 379 | + $usces_op['mail_default']['header']['mitumorimail'] = sprintf( __( 'Thank you for choosing %s.', 'usces' ), get_option( 'blogname' ) ) . "\r\n"; | |
| 380 | + $usces_op['mail_default']['header']['mitumorimail'] .= __( 'We will send you following estimate for your items.', 'usces' ) . "\r\n\r\n"; | |
| 381 | + $usces_op['mail_default']['header']['mitumorimail'] .= __( 'This estimate is valid for one week.', 'usces' ) . "\r\n\r\n"; | |
| 382 | + $usces_op['mail_default']['header']['cancelmail'] = sprintf( __( 'Thank you for choosing %s.', 'usces' ), get_option( 'blogname' ) ) . "\r\n"; | |
| 383 | + $usces_op['mail_default']['header']['cancelmail'] .= __( 'We have received your cancellation for your order.', 'usces' ) . "\r\n\r\n"; | |
| 384 | + $usces_op['mail_default']['header']['othermail'] = sprintf( __( 'Thank you for choosing %s.', 'usces' ), get_option( 'blogname' ) ) . "\r\n\r\n"; | |
| 385 | + | |
| 386 | + $usces_op['mail_default']['footer']['thankyou'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 387 | + $usces_op['mail_default']['footer']['order'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 388 | + $usces_op['mail_default']['footer']['inquiry'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 389 | + $usces_op['mail_default']['footer']['returninq'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 390 | + $usces_op['mail_default']['footer']['membercomp'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 391 | + $usces_op['mail_default']['footer']['completionmail'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 392 | + $usces_op['mail_default']['footer']['ordermail'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 393 | + $usces_op['mail_default']['footer']['changemail'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 394 | + $usces_op['mail_default']['footer']['receiptmail'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 395 | + $usces_op['mail_default']['footer']['mitumorimail'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 396 | + $usces_op['mail_default']['footer']['cancelmail'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 397 | + $usces_op['mail_default']['footer']['othermail'] = "=============================================\r\n" . get_option( 'blogname' ) . "\r\n" . $uop_init['company_name'] . "\r\n" . __( 'zip code', 'usces' ) . ' ' . $uop_init['zip_code'] . "\r\n" . $uop_init['address1'] . "\r\n" . $uop_init['address2'] . "\r\n" . 'TEL ' . $uop_init['tel_number'] . "\r\n" . 'FAX ' . $uop_init['fax_number'] . "\r\n" . __( 'contact', 'usces' ) . ' ' . $uop_init['inquiry_mail'] . "\r\n" . get_option( 'home' ) . "\r\n=============================================\r\n"; | |
| 398 | + | |
| 399 | + update_option( 'usces', $usces_op ); | |
| 400 | +} | |
| 401 | + | |
| 402 | +/** | |
| 403 | + * Country name initialization | |
| 404 | + * key(Country codes alpha-2) => Country name | |
| 405 | + */ | |
| 406 | +function usces_country_name_init() { | |
| 407 | + global $usces_settings; | |
| 408 | + | |
| 409 | + $usces_settings['country'] = array( | |
| 410 | + 'DZ' => __( 'Algeria', 'usces' ), | |
| 411 | + 'AR' => __( 'Argentina', 'usces' ), | |
| 412 | + 'AU' => __( 'Australia', 'usces' ), | |
| 413 | + 'AT' => __( 'Austria', 'usces' ), | |
| 414 | + 'AZ' => __( 'Azerbaidjan', 'usces' ), | |
| 415 | + 'BH' => __( 'Bahrain', 'usces' ), | |
| 416 | + 'BB' => __( 'Barbados', 'usces' ), | |
| 417 | + 'BD' => __( 'Bangladesh', 'usces' ), | |
| 418 | + 'BY' => __( 'Belarus', 'usces' ), | |
| 419 | + 'BE' => __( 'Belgium', 'usces' ), | |
| 420 | + 'BT' => __( 'Bhutan', 'usces' ), | |
| 421 | + 'BW' => __( 'Botswana', 'usces' ), | |
| 422 | + 'BN' => __( 'Brunei', 'usces' ), | |
| 423 | + 'BR' => __( 'Brazil', 'usces' ), | |
| 424 | + 'BG' => __( 'Bulgaria', 'usces' ), | |
| 425 | + 'KH' => __( 'Cambodia', 'usces' ), | |
| 426 | + 'CA' => __( 'Canada', 'usces' ), | |
| 427 | + 'CL' => __( 'Chile', 'usces' ), | |
| 428 | + 'CN' => __( 'China', 'usces' ), | |
| 429 | + 'CO' => __( 'Colombia', 'usces' ), | |
| 430 | + 'CR' => __( 'Costa Rica', 'usces' ), | |
| 431 | + 'CI' => __( "Cote d'lvoire", 'usces' ), | |
| 432 | + 'HR' => __( 'Croatia', 'usces' ), | |
| 433 | + 'CU' => __( 'Cuba', 'usces' ), | |
| 434 | + 'CY' => __( 'Cyprus', 'usces' ), | |
| 435 | + 'CZ' => __( 'Czech Republic', 'usces' ), | |
| 436 | + 'DK' => __( 'Denmark', 'usces' ), | |
| 437 | + 'DJ' => __( 'Djibouti', 'usces' ), | |
| 438 | + 'DO' => __( 'Dominican Republic', 'usces' ), | |
| 439 | + 'FI' => __( 'Finland', 'usces' ), | |
| 440 | + 'EC' => __( 'Ecuador', 'usces' ), | |
| 441 | + 'EG' => __( 'Egypt', 'usces' ), | |
| 442 | + 'SV' => __( 'El Salvador', 'usces' ), | |
| 443 | + 'EE' => __( 'Estonia', 'usces' ), | |
| 444 | + 'ET' => __( 'Ethiopia', 'usces' ), | |
| 445 | + 'FJ' => __( 'Fiji', 'usces' ), | |
| 446 | + 'FR' => __( 'France', 'usces' ), | |
| 447 | + 'GA' => __( 'Gabon', 'usces' ), | |
| 448 | + 'DE' => __( 'Germany', 'usces' ), | |
| 449 | + 'GH' => __( 'Ghana', 'usces' ), | |
| 450 | + 'GR' => __( 'Greece', 'usces' ), | |
| 451 | + 'GT' => __( 'Guatemala', 'usces' ), | |
| 452 | + 'HN' => __( 'Honduras', 'usces' ), | |
| 453 | + 'HK' => __( 'Hong Kong', 'usces' ), | |
| 454 | + 'HU' => __( 'Hungary', 'usces' ), | |
| 455 | + 'IS' => __( 'Iceland', 'usces' ), | |
| 456 | + 'IN' => __( 'India', 'usces' ), | |
| 457 | + 'ID' => __( 'Indonesia', 'usces' ), | |
| 458 | + 'IE' => __( 'Ireland', 'usces' ), | |
| 459 | + 'IQ' => __( 'Iraq', 'usces' ), | |
| 460 | + 'IR' => __( 'Iran', 'usces' ), | |
| 461 | + 'IL' => __( 'Israel', 'usces' ), | |
| 462 | + 'IT' => __( 'Italy', 'usces' ), | |
| 463 | + 'JP' => __( 'Japan', 'usces' ), | |
| 464 | + 'JM' => __( 'Jamaica', 'usces' ), | |
| 465 | + 'JO' => __( 'Jordan', 'usces' ), | |
| 466 | + 'KE' => __( 'Kenya', 'usces' ), | |
| 467 | + 'KW' => __( 'Kuwait', 'usces' ), | |
| 468 | + 'KZ' => __( 'Kazakhstan', 'usces' ), | |
| 469 | + 'LV' => __( 'Latvia', 'usces' ), | |
| 470 | + 'LA' => __( 'Laos', 'usces' ), | |
| 471 | + 'LI' => __( 'Liechtenstein', 'usces' ), | |
| 472 | + 'LT' => __( 'Lithuania', 'usces' ), | |
| 473 | + 'LU' => __( 'Luxembourg', 'usces' ), | |
| 474 | + 'MO' => __( 'Macau', 'usces' ), | |
| 475 | + 'MK' => __( 'Macedonia', 'usces' ), | |
| 476 | + 'MG' => __( 'Madagascar', 'usces' ), | |
| 477 | + 'MY' => __( 'Malaysia', 'usces' ), | |
| 478 | + 'MT' => __( 'Malta', 'usces' ), | |
| 479 | + 'MU' => __( 'Mauritius', 'usces' ), | |
| 480 | + 'MX' => __( 'Mexico', 'usces' ), | |
| 481 | + 'MV' => __( 'Maldives', 'usces' ), | |
| 482 | + 'MC' => __( 'Monaco', 'usces' ), | |
| 483 | + 'MN' => __( 'Mongolia', 'usces' ), | |
| 484 | + 'MA' => __( 'Morocco', 'usces' ), | |
| 485 | + 'MM' => __( 'Myanmar', 'usces' ), | |
| 486 | + 'NL' => __( 'Netherlands', 'usces' ), | |
| 487 | + 'NP' => __( 'Nepal', 'usces' ), | |
| 488 | + 'NZ' => __( 'New Zealand', 'usces' ), | |
| 489 | + 'NG' => __( 'Nigeria', 'usces' ), | |
| 490 | + 'NO' => __( 'Norway', 'usces' ), | |
| 491 | + 'NC' => __( 'New Caledonia', 'usces' ), | |
| 492 | + 'OM' => __( 'Oman', 'usces' ), | |
| 493 | + 'PA' => __( 'Panama', 'usces' ), | |
| 494 | + 'PK' => __( 'Pakistan', 'usces' ), | |
| 495 | + 'PG' => __( 'Papua New Guinea', 'usces' ), | |
| 496 | + 'PY' => __( 'Paraguay', 'usces' ), | |
| 497 | + 'PE' => __( 'Peru', 'usces' ), | |
| 498 | + 'PH' => __( 'Philippines', 'usces' ), | |
| 499 | + 'PL' => __( 'Poland', 'usces' ), | |
| 500 | + 'PT' => __( 'Portugal', 'usces' ), | |
| 501 | + 'PR' => __( 'Puerto Rico', 'usces' ), | |
| 502 | + 'QA' => __( 'Qatar', 'usces' ), | |
| 503 | + 'RO' => __( 'Romania', 'usces' ), | |
| 504 | + 'RU' => __( 'Russia', 'usces' ), | |
| 505 | + 'RW' => __( 'Rwanda', 'usces' ), | |
| 506 | + 'SA' => __( 'Saudi Arabia', 'usces' ), | |
| 507 | + 'SN' => __( 'Senegal', 'usces' ), | |
| 508 | + 'RS' => __( 'Serbia', 'usces' ), | |
| 509 | + 'SG' => __( 'Singapore', 'usces' ), | |
| 510 | + 'SK' => __( 'Slovak', 'usces' ), | |
| 511 | + 'SI' => __( 'Slovenia', 'usces' ), | |
| 512 | + 'SB' => __( 'Solomon Islands', 'usces' ), | |
| 513 | + 'ZA' => __( 'South Africa', 'usces' ), | |
| 514 | + 'KR' => __( 'South Korea', 'usces' ), | |
| 515 | + 'SS' => __( 'South Sudan', 'usces' ), | |
| 516 | + 'ES' => __( 'Spain', 'usces' ), | |
| 517 | + 'LK' => __( 'Sri Lanka', 'usces' ), | |
| 518 | + 'SD' => __( 'Sudan', 'usces' ), | |
| 519 | + 'SY' => __( 'Syria', 'usces' ), | |
| 520 | + 'SE' => __( 'Sweden', 'usces' ), | |
| 521 | + 'CH' => __( 'Switzerland', 'usces' ), | |
| 522 | + 'TW' => __( 'Taiwan', 'usces' ), | |
| 523 | + 'TZ' => __( 'Tanzania', 'usces' ), | |
| 524 | + 'TH' => __( 'Thailand', 'usces' ), | |
| 525 | + 'TG' => __( 'Togo', 'usces' ), | |
| 526 | + 'TT' => __( 'Trinidad and Tobago', 'usces' ), | |
| 527 | + 'TN' => __( 'Tunisia', 'usces' ), | |
| 528 | + 'TR' => __( 'Turkey', 'usces' ), | |
| 529 | + 'UG' => __( 'Uganda', 'usces' ), | |
| 530 | + 'UA' => __( 'Ukraine', 'usces' ), | |
| 531 | + 'AE' => __( 'United Arab Emirates', 'usces' ), | |
| 532 | + 'GB' => __( 'United Kingdom', 'usces' ), | |
| 533 | + 'US' => __( 'United States', 'usces' ), | |
| 534 | + 'UY' => __( 'Uruguay', 'usces' ), | |
| 535 | + 'VE' => __( 'Venezuela', 'usces' ), | |
| 536 | + 'VN' => __( 'Vietnam', 'usces' ), | |
| 537 | + 'ZW' => __( 'Zimbabwe', 'usces' ), | |
| 538 | + 'NA' => __( 'Republic of Namibia', 'usces' ), | |
| 539 | + 'OO' => __( 'Other', 'usces' ), | |
| 540 | + ); | |
| 541 | +} | |
| 542 | + | |
| 543 | +/** | |
| 544 | + * Essential mark initialization | |
| 545 | + * key(slug) => Required tagged markup | |
| 546 | + */ | |
| 547 | +function usces_essential_mark_init() { | |
| 548 | + global $usces_essential_mark; | |
| 549 | + | |
| 550 | + $usces_essential_mark = array( | |
| 551 | + 'name1' => '<em>' . __( '*', 'usces' ) . '</em>', | |
| 552 | + 'name2' => '', | |
| 553 | + 'name3' => '', | |
| 554 | + 'name4' => '', | |
| 555 | + 'zipcode' => '<em>' . __( '*', 'usces' ) . '</em>', | |
| 556 | + 'country' => '<em>' . __( '*', 'usces' ) . '</em>', | |
| 557 | + 'states' => '<em>' . __( '*', 'usces' ) . '</em>', | |
| 558 | + 'address1' => '<em>' . __( '*', 'usces' ) . '</em>', | |
| 559 | + 'address2' => '<em>' . __( '*', 'usces' ) . '</em>', | |
| 560 | + 'address3' => '', | |
| 561 | + 'tel' => '<em>' . __( '*', 'usces' ) . '</em>', | |
| 562 | + 'fax' => '', | |
| 563 | + ); | |
| 564 | +} | |
| 565 | + | |
| 566 | +/** | |
| 567 | + * Available settlement initialization | |
| 568 | + * Payment methods available on Welcart | |
| 569 | + * key(slug) => Payment processing company name | |
| 570 | + */ | |
| 571 | +function usces_available_settlement_init() { | |
| 572 | + $usces_available_settlement = get_option( 'usces_available_settlement', array() ); | |
| 573 | + $binding_settlement = array( | |
| 574 | + 'zeus' => __( 'ZEUS Japanese Settlement', 'usces' ), | |
| 575 | + 'remise' => __( 'Remise Japanese Settlement', 'usces' ), | |
| 576 | + 'jpayment' => 'ROBOT PAYMENT', | |
| 577 | + 'telecom' => 'テレコムクレジット', | |
| 578 | + 'digitalcheck' => 'ペイメントフォー', | |
| 579 | + 'mizuho' => 'みずほファクター', | |
| 580 | + 'anotherlane' => 'アナザーレーン', | |
| 581 | + 'veritrans' => 'ベリトランス Air-Web', | |
| 582 | + 'paygent' => 'ペイジェント', | |
| 583 | + ); | |
| 584 | + if ( empty( $usces_available_settlement ) ) { | |
| 585 | + update_option( 'usces_available_settlement', $binding_settlement ); | |
| 586 | + } else { | |
| 587 | + $available_settlement = array_merge( $usces_available_settlement, $binding_settlement ); | |
| 588 | + update_option( 'usces_available_settlement', $available_settlement ); | |
| 589 | + } | |
| 590 | +} | |
| 591 | + | |
| 592 | +/** | |
| 593 | + * Option - usces_shipping_indication | |
| 594 | + * key => 配達日数 | |
| 595 | + * | |
| 596 | + * @var array | |
| 597 | + */ | |
| 598 | +$shipping_indication = array( 0, 0, 2, 3, 5, 6, 7, 14, 21, 0 ); | |
| 599 | + | |
| 600 | +$usces_op = get_option( 'usces' ); | |
| 601 | +if ( ! is_array( $usces_op ) || empty( $usces_op ) ) { | |
| 602 | + $usces_op = array(); | |
| 603 | +} | |
| 604 | +$usces_op['usces_shipping_indication'] = $shipping_indication; | |
| 605 | +update_option( 'usces', $usces_op ); | |
| 606 | + | |
| 607 | +/** | |
| 608 | + * Global usces_settings - language | |
| 609 | + * | |
| 610 | + * @var array | |
| 611 | + */ | |
| 612 | +$usces_settings['language'] = array(); | |
| 613 | + | |
| 614 | +/** | |
| 615 | + * Global usces_settings - currency | |
| 616 | + * key(Country codes alpha-2) => Country codes alpha-3, Number of decimal digits, Decimal separator, Currency separator, Currency symbol | |
| 617 | + * | |
| 618 | + * @var array | |
| 619 | + */ | |
| 620 | +$usces_settings['currency'] = array( | |
| 621 | + 'DZ' => array( 'DZD', 2, '.', ',', 'د.ج' ), | |
| 622 | + 'AR' => array( 'ARS', 2, '.', ',', '$' ), | |
| 623 | + 'AU' => array( 'AUD', 2, '.', ',', '$' ), | |
| 624 | + 'AT' => array( 'EUR', 2, '.', ',', '€' ), | |
| 625 | + 'AZ' => array( 'AZN', 2, '.', ',', 'man.' ), | |
| 626 | + 'BH' => array( 'BHD', 2, '.', ',', 'BD' ), | |
| 627 | + 'BB' => array( 'BBD', 2, '.', ',', '$' ), | |
| 628 | + 'BE' => array( 'EUR', 2, '.', ',', '€' ), | |
| 629 | + 'BD' => array( 'BDT', 2, '.', ',', '৳' ), | |
| 630 | + 'BY' => array( 'BYR', 2, '.', ',', 'p.' ), | |
| 631 | + 'BT' => array( 'BTN', 2, '.', ',', 'Nu' ), | |
| 632 | + 'BW' => array( 'BWP', 2, '.', ',', 'P' ), | |
| 633 | + 'BN' => array( 'BND', 2, '.', ',', 'B$' ), | |
| 634 | + 'BR' => array( 'BRL', 2, '.', ',', '$' ), | |
| 635 | + 'BG' => array( 'BGN', 2, '.', ',', 'лв' ), | |
| 636 | + 'KH' => array( 'KHR', 2, '.', ',', '៛' ), | |
| 637 | + 'CA' => array( 'CAD', 2, '.', ',', '$' ), | |
| 638 | + 'CL' => array( 'CLP', 2, '.', ',', '$' ), | |
| 639 | + 'CN' => array( 'CNY', 2, '.', ',', '¥' ), | |
| 640 | + 'CO' => array( 'COP', 2, '.', ',', '$' ), | |
| 641 | + 'CR' => array( 'CRC', 2, '.', ',', '₡' ), | |
| 642 | + 'CI' => array( 'XOF', 2, '.', ',', 'Fr' ), | |
| 643 | + 'HR' => array( 'HRK', 2, '.', ',', 'kn' ), | |
| 644 | + 'CU' => array( 'CUC', 2, '.', ',', '$' ), | |
| 645 | + 'CY' => array( 'EUR', 2, '.', ',', '€' ), | |
| 646 | + 'CZ' => array( 'CZK', 2, '.', ',', 'Kč' ), | |
| 647 | + 'DK' => array( 'DKK', 2, '.', ',', 'kr' ), | |
| 648 | + 'DJ' => array( 'DJF', 2, '.', ',', 'Fr' ), | |
| 649 | + 'DO' => array( 'DOP', 2, '.', ',', 'RD$' ), | |
| 650 | + 'SV' => array( 'USD', 2, '.', ',', '$' ), | |
| 651 | + 'EE' => array( 'EUR', 2, '.', ',', '€' ), | |
| 652 | + 'ET' => array( 'ETB', 2, '.', ',', 'Br' ), | |
| 653 | + 'FI' => array( 'EUR', 2, '.', ',', '€' ), | |
| 654 | + 'EC' => array( 'USD', 2, '.', ',', '$' ), | |
| 655 | + 'EG' => array( 'EGP', 2, '.', ',', '£' ), | |
| 656 | + 'FJ' => array( 'FJD', 2, '.', ',', '$' ), | |
| 657 | + 'FR' => array( 'EUR', 2, '.', ',', '€' ), | |
| 658 | + 'GA' => array( 'XAF', 2, '.', ',', 'Fr' ), | |
| 659 | + 'DE' => array( 'EUR', 2, '.', ',', '€' ), | |
| 660 | + 'GH' => array( 'GHC', 2, '.', ',', '₵' ), | |
| 661 | + 'GR' => array( 'EUR', 2, '.', ',', '€' ), | |
| 662 | + 'GT' => array( 'GTQ', 2, '.', ',', 'Q' ), | |
| 663 | + 'HN' => array( 'HNL', 2, '.', ',', 'L' ), | |
| 664 | + 'HK' => array( 'HKD', 2, '.', ',', '$' ), | |
| 665 | + 'HU' => array( 'HUF', 2, '.', ',', 'Ft' ), | |
| 666 | + 'IS' => array( 'ISK', 2, '.', ',', 'kr' ), | |
| 667 | + 'IN' => array( 'INR', 2, '.', ',', '₨' ), | |
| 668 | + 'ID' => array( 'IDR', 2, '.', ',', 'Rp' ), | |
| 669 | + 'IE' => array( 'EUR', 2, '.', ',', '€' ), | |
| 670 | + 'IQ' => array( 'IQD', 2, '.', ',', 'د.ع' ), | |
| 671 | + 'IR' => array( 'IRR', 2, '.', ',', 'R' ), | |
| 672 | + 'IL' => array( 'ILS', 2, '.', ',', '₪' ), | |
| 673 | + 'IT' => array( 'EUR', 2, '.', ',', '€' ), | |
| 674 | + 'JP' => array( 'JPY', 0, '.', ',', '¥' ), | |
| 675 | + 'JM' => array( 'JMD', 2, '.', ',', '$' ), | |
| 676 | + 'JO' => array( 'JOD', 2, '.', ',', 'د.ا' ), | |
| 677 | + 'KE' => array( 'KES', 2, '.', ',', 'S' ), | |
| 678 | + 'KW' => array( 'KWD', 2, '.', ',', 'د.ك' ), | |
| 679 | + 'KZ' => array( 'KAZ', 2, '.', ',', '₸' ), | |
| 680 | + 'LV' => array( 'EUR', 2, '.', ',', '€' ), | |
| 681 | + 'LI' => array( 'CHF', 2, '.', ',', 'S₣' ), | |
| 682 | + 'LA' => array( 'LAK', 2, '.', ',', '₭' ), | |
| 683 | + 'LT' => array( 'EUR', 2, '.', ',', '€' ), | |
| 684 | + 'LU' => array( 'EUR', 2, '.', ',', '€' ), | |
| 685 | + 'MO' => array( 'MOP', 2, '.', ',', '$' ), | |
| 686 | + 'MK' => array( 'MKD', 2, '.', ',', 'ден' ), | |
| 687 | + 'MG' => array( 'MGA', 2, '.', ',', '' ), | |
| 688 | + 'MY' => array( 'MYR', 2, '.', ',', 'RM' ), | |
| 689 | + 'MT' => array( 'EUR', 2, '.', ',', '€' ), | |
| 690 | + 'MU' => array( 'MUR', 2, '.', ',', 'Rs' ), | |
| 691 | + 'MX' => array( 'MXN', 2, '.', ',', '$' ), | |
| 692 | + 'MV' => array( 'MVR', 2, '.', ',', '£' ), | |
| 693 | + 'MC' => array( 'EUR', 2, '.', ',', '€' ), | |
| 694 | + 'MN' => array( 'MNT', 2, '.', ',', '₮' ), | |
| 695 | + 'MA' => array( 'MAD', 2, '.', ',', 'د.م.' ), | |
| 696 | + 'MM' => array( 'MMK', 2, '.', ',', 'Kyat' ), | |
| 697 | + 'NL' => array( 'EUR', 2, '.', ',', '€' ), | |
| 698 | + 'NP' => array( 'NPR', 2, '.', ',', 'Rs' ), | |
| 699 | + 'NZ' => array( 'NZD', 2, '.', ',', '$' ), | |
| 700 | + 'NG' => array( 'NGN', 2, '.', ',', '₦' ), | |
| 701 | + 'NO' => array( 'NOK', 2, '.', ',', 'kr' ), | |
| 702 | + 'NC' => array( 'CFP', 2, '.', ',', 'F' ), | |
| 703 | + 'OM' => array( 'OMR', 2, '.', ',', 'R' ), | |
| 704 | + 'PA' => array( 'PAB', 2, '.', ',', 'B/.' ), | |
| 705 | + 'PK' => array( 'PKR', 2, '.', ',', 'Rs' ), | |
| 706 | + 'PG' => array( 'PKG', 2, '.', ',', 'K' ), | |
| 707 | + 'PY' => array( 'PYG', 2, '.', ',', '₲' ), | |
| 708 | + 'PE' => array( 'PEN', 2, '.', ',', 'S/.' ), | |
| 709 | + 'PH' => array( 'PHP', 2, '.', ',', 'P' ), | |
| 710 | + 'PL' => array( 'PLN', 2, '.', ',', 'zł' ), | |
| 711 | + 'PT' => array( 'EUR', 2, '.', ',', '€' ), | |
| 712 | + 'PR' => array( 'USD', 2, '.', ',', '$' ), | |
| 713 | + 'QA' => array( 'QAR', 2, '.', ',', 'R' ), | |
| 714 | + 'RO' => array( 'ROL', 2, '.', ',', 'L' ), | |
| 715 | + 'RU' => array( 'RUB', 2, '.', ',', '₽' ), | |
| 716 | + 'RW' => array( 'RWF', 2, '.', ',', 'Fr' ), | |
| 717 | + 'SA' => array( 'SAR', 2, '.', ',', 'R' ), | |
| 718 | + 'SN' => array( 'XOF', 2, '.', ',', 'Fr' ), | |
| 719 | + 'RS' => array( 'SRB', 2, '.', ',', 'RSD' ), | |
| 720 | + 'SG' => array( 'SGD', 2, '.', ',', '$' ), | |
| 721 | + 'SK' => array( 'EUR', 2, '.', ',', '€' ), | |
| 722 | + 'SI' => array( 'EUR', 2, '.', ',', '€' ), | |
| 723 | + 'SB' => array( 'SBD', 2, '.', ',', '$' ), | |
| 724 | + 'ZA' => array( 'ZAR', 2, '.', ',', 'R' ), | |
| 725 | + 'KR' => array( 'KRW', 0, '.', ',', '₩' ), | |
| 726 | + 'SS' => array( 'SSP', 0, '.', ',', '£' ), | |
| 727 | + 'ES' => array( 'EUR', 2, '.', ',', '€' ), | |
| 728 | + 'LK' => array( 'LKR', 2, '.', ',', 'SLRs' ), | |
| 729 | + 'SD' => array( 'SDG', 2, '.', ',', '£' ), | |
| 730 | + 'SY' => array( 'SYP', 2, '.', ',', '£' ), | |
| 731 | + 'SE' => array( 'SEK', 2, '.', ',', 'kr' ), | |
| 732 | + 'CH' => array( 'CHF', 2, '.', ',', 'Fr.' ), | |
| 733 | + 'TW' => array( 'TWD', 0, '.', ',', 'NT$' ), | |
| 734 | + 'TZ' => array( 'TZS', 2, '.', ',', 'Tsh' ), | |
| 735 | + 'TH' => array( 'THB', 2, '.', ',', '฿' ), | |
| 736 | + 'TG' => array( 'XOF', 2, '.', ',', 'Fr' ), | |
| 737 | + 'TT' => array( 'TTD', 2, '.', ',', '$' ), | |
| 738 | + 'TN' => array( 'TND', 2, '.', ',', 'د.ت' ), | |
| 739 | + 'TR' => array( 'TRL', 2, '.', ',', '₤' ), | |
| 740 | + 'UG' => array( 'UGX', 2, '.', ',', 'Ush' ), | |
| 741 | + 'UA' => array( 'UAH', 2, '.', ',', '₴' ), | |
| 742 | + 'AE' => array( 'AED', 2, '.', ',', 'DH' ), | |
| 743 | + 'GB' => array( 'GBP', 2, '.', ',', '£' ), | |
| 744 | + 'US' => array( 'USD', 2, '.', ',', '$' ), | |
| 745 | + 'UY' => array( 'UYU', 2, '.', ',', '$' ), | |
| 746 | + 'VE' => array( 'VEB', 2, '.', ',', 'Bs' ), | |
| 747 | + 'VN' => array( 'VND', 2, '.', ',', '₫' ), | |
| 748 | + 'ZW' => array( 'ZWD', 2, '.', ',', '$' ), | |
| 749 | + 'NA' => array( 'NAM', 2, '.', ',', '$' ), | |
| 750 | + 'OO' => array( 'USD', 2, '.', ',', '$' ), | |
| 751 | +); | |
| 752 | + | |
| 753 | +/** | |
| 754 | + * Global usces_settings - nameform | |
| 755 | + * key(Country codes alpha-2) => 1|0 | |
| 756 | + * | |
| 757 | + * @var array | |
| 758 | + */ | |
| 759 | +$usces_settings['nameform'] = array( | |
| 760 | + 'DZ' => 1, | |
| 761 | + 'AR' => 1, | |
| 762 | + 'AU' => 1, | |
| 763 | + 'AT' => 1, | |
| 764 | + 'AZ' => 1, | |
| 765 | + 'BH' => 1, | |
| 766 | + 'BB' => 1, | |
| 767 | + 'BD' => 1, | |
| 768 | + 'BY' => 1, | |
| 769 | + 'BE' => 1, | |
| 770 | + 'BT' => 1, | |
| 771 | + 'BW' => 1, | |
| 772 | + 'BN' => 1, | |
| 773 | + 'BR' => 1, | |
| 774 | + 'BG' => 1, | |
| 775 | + 'KH' => 1, | |
| 776 | + 'CA' => 1, | |
| 777 | + 'CL' => 1, | |
| 778 | + 'CN' => 0, | |
| 779 | + 'CO' => 1, | |
| 780 | + 'CR' => 1, | |
| 781 | + 'CI' => 1, | |
| 782 | + 'HR' => 1, | |
| 783 | + 'CU' => 1, | |
| 784 | + 'CY' => 1, | |
| 785 | + 'CZ' => 1, | |
| 786 | + 'DK' => 1, | |
| 787 | + 'DJ' => 1, | |
| 788 | + 'DO' => 1, | |
| 789 | + 'SV' => 1, | |
| 790 | + 'EE' => 1, | |
| 791 | + 'ET' => 1, | |
| 792 | + 'FI' => 1, | |
| 793 | + 'EC' => 1, | |
| 794 | + 'EG' => 1, | |
| 795 | + 'FJ' => 1, | |
| 796 | + 'FR' => 1, | |
| 797 | + 'GA' => 1, | |
| 798 | + 'DE' => 1, | |
| 799 | + 'GH' => 1, | |
| 800 | + 'GR' => 1, | |
| 801 | + 'GT' => 1, | |
| 802 | + 'HN' => 1, | |
| 803 | + 'HK' => 1, | |
| 804 | + 'HU' => 1, | |
| 805 | + 'IS' => 1, | |
| 806 | + 'IN' => 1, | |
| 807 | + 'ID' => 1, | |
| 808 | + 'IE' => 1, | |
| 809 | + 'IQ' => 1, | |
| 810 | + 'IR' => 1, | |
| 811 | + 'IL' => 1, | |
| 812 | + 'IT' => 1, | |
| 813 | + 'JP' => 0, | |
| 814 | + 'JM' => 1, | |
| 815 | + 'JO' => 1, | |
| 816 | + 'KE' => 1, | |
| 817 | + 'KW' => 1, | |
| 818 | + 'KZ' => 1, | |
| 819 | + 'LV' => 1, | |
| 820 | + 'LI' => 1, | |
| 821 | + 'LA' => 1, | |
| 822 | + 'LT' => 1, | |
| 823 | + 'LU' => 1, | |
| 824 | + 'MO' => 1, | |
| 825 | + 'MK' => 1, | |
| 826 | + 'MG' => 1, | |
| 827 | + 'MY' => 1, | |
| 828 | + 'MT' => 1, | |
| 829 | + 'MU' => 1, | |
| 830 | + 'MX' => 1, | |
| 831 | + 'MV' => 1, | |
| 832 | + 'MC' => 1, | |
| 833 | + 'MN' => 1, | |
| 834 | + 'MA' => 1, | |
| 835 | + 'MM' => 1, | |
| 836 | + 'NL' => 1, | |
| 837 | + 'NP' => 1, | |
| 838 | + 'NZ' => 1, | |
| 839 | + 'NG' => 1, | |
| 840 | + 'NO' => 1, | |
| 841 | + 'NC' => 1, | |
| 842 | + 'OM' => 1, | |
| 843 | + 'PA' => 1, | |
| 844 | + 'PK' => 1, | |
| 845 | + 'PG' => 1, | |
| 846 | + 'PY' => 1, | |
| 847 | + 'PE' => 1, | |
| 848 | + 'PH' => 1, | |
| 849 | + 'PL' => 1, | |
| 850 | + 'PT' => 1, | |
| 851 | + 'PR' => 1, | |
| 852 | + 'QA' => 1, | |
| 853 | + 'RO' => 1, | |
| 854 | + 'RU' => 1, | |
| 855 | + 'RW' => 1, | |
| 856 | + 'SA' => 1, | |
| 857 | + 'SN' => 1, | |
| 858 | + 'RS' => 1, | |
| 859 | + 'SG' => 1, | |
| 860 | + 'SK' => 1, | |
| 861 | + 'SI' => 1, | |
| 862 | + 'SB' => 1, | |
| 863 | + 'ZA' => 1, | |
| 864 | + 'KR' => 1, | |
| 865 | + 'SS' => 1, | |
| 866 | + 'ES' => 1, | |
| 867 | + 'LK' => 1, | |
| 868 | + 'SD' => 1, | |
| 869 | + 'SY' => 1, | |
| 870 | + 'SE' => 1, | |
| 871 | + 'CH' => 1, | |
| 872 | + 'TW' => 0, | |
| 873 | + 'TZ' => 1, | |
| 874 | + 'TH' => 1, | |
| 875 | + 'TG' => 1, | |
| 876 | + 'TT' => 1, | |
| 877 | + 'TN' => 1, | |
| 878 | + 'TR' => 1, | |
| 879 | + 'UG' => 1, | |
| 880 | + 'UA' => 1, | |
| 881 | + 'AE' => 1, | |
| 882 | + 'GB' => 1, | |
| 883 | + 'US' => 1, | |
| 884 | + 'UY' => 1, | |
| 885 | + 'VE' => 1, | |
| 886 | + 'VN' => 1, | |
| 887 | + 'ZW' => 1, | |
| 888 | + 'NA' => 1, | |
| 889 | + 'OO' => 1, | |
| 890 | +); | |
| 891 | + | |
| 892 | +/** | |
| 893 | + * Global usces_settings - addressform | |
| 894 | + * key(Country codes alpha-2) => US|JP|CN | |
| 895 | + * | |
| 896 | + * @var array | |
| 897 | + */ | |
| 898 | +$usces_settings['addressform'] = array( | |
| 899 | + 'DZ' => 'US', | |
| 900 | + 'AR' => 'US', | |
| 901 | + 'AU' => 'US', | |
| 902 | + 'AT' => 'US', | |
| 903 | + 'AZ' => 'US', | |
| 904 | + 'BH' => 'US', | |
| 905 | + 'BB' => 'US', | |
| 906 | + 'BD' => 'US', | |
| 907 | + 'BY' => 'US', | |
| 908 | + 'BE' => 'US', | |
| 909 | + 'BT' => 'US', | |
| 910 | + 'BW' => 'US', | |
| 911 | + 'BN' => 'US', | |
| 912 | + 'BR' => 'US', | |
| 913 | + 'BG' => 'US', | |
| 914 | + 'KH' => 'US', | |
| 915 | + 'CA' => 'US', | |
| 916 | + 'CL' => 'US', | |
| 917 | + 'CN' => 'CN', | |
| 918 | + 'CO' => 'US', | |
| 919 | + 'CR' => 'US', | |
| 920 | + 'CI' => 'US', | |
| 921 | + 'HR' => 'US', | |
| 922 | + 'CU' => 'US', | |
| 923 | + 'CY' => 'US', | |
| 924 | + 'CZ' => 'US', | |
| 925 | + 'DK' => 'US', | |
| 926 | + 'DJ' => 'US', | |
| 927 | + 'DO' => 'US', | |
| 928 | + 'FI' => 'US', | |
| 929 | + 'EC' => 'US', | |
| 930 | + 'EG' => 'US', | |
| 931 | + 'SV' => 'US', | |
| 932 | + 'EE' => 'US', | |
| 933 | + 'ET' => 'US', | |
| 934 | + 'FJ' => 'US', | |
| 935 | + 'FR' => 'US', | |
| 936 | + 'GA' => 'US', | |
| 937 | + 'DE' => 'US', | |
| 938 | + 'GH' => 'US', | |
| 939 | + 'GR' => 'US', | |
| 940 | + 'GT' => 'US', | |
| 941 | + 'HN' => 'US', | |
| 942 | + 'HK' => 'US', | |
| 943 | + 'HU' => 'US', | |
| 944 | + 'IS' => 'US', | |
| 945 | + 'IN' => 'US', | |
| 946 | + 'ID' => 'US', | |
| 947 | + 'IE' => 'US', | |
| 948 | + 'IQ' => 'US', | |
| 949 | + 'IR' => 'US', | |
| 950 | + 'IL' => 'US', | |
| 951 | + 'IT' => 'US', | |
| 952 | + 'JP' => 'JP', | |
| 953 | + 'JM' => 'US', | |
| 954 | + 'JO' => 'US', | |
| 955 | + 'KE' => 'US', | |
| 956 | + 'KW' => 'US', | |
| 957 | + 'KZ' => 'US', | |
| 958 | + 'LV' => 'US', | |
| 959 | + 'LA' => 'US', | |
| 960 | + 'LI' => 'US', | |
| 961 | + 'LT' => 'US', | |
| 962 | + 'LU' => 'US', | |
| 963 | + 'MO' => 'US', | |
| 964 | + 'MK' => 'US', | |
| 965 | + 'MG' => 'US', | |
| 966 | + 'MY' => 'US', | |
| 967 | + 'MT' => 'US', | |
| 968 | + 'MU' => 'US', | |
| 969 | + 'MX' => 'US', | |
| 970 | + 'MV' => 'US', | |
| 971 | + 'MC' => 'US', | |
| 972 | + 'MN' => 'US', | |
| 973 | + 'MA' => 'US', | |
| 974 | + 'MM' => 'US', | |
| 975 | + 'NL' => 'US', | |
| 976 | + 'NP' => 'US', | |
| 977 | + 'NZ' => 'US', | |
| 978 | + 'NG' => 'US', | |
| 979 | + 'NO' => 'US', | |
| 980 | + 'NC' => 'US', | |
| 981 | + 'OM' => 'US', | |
| 982 | + 'PA' => 'US', | |
| 983 | + 'PK' => 'US', | |
| 984 | + 'PG' => 'US', | |
| 985 | + 'PY' => 'US', | |
| 986 | + 'PE' => 'US', | |
| 987 | + 'PH' => 'US', | |
| 988 | + 'PL' => 'US', | |
| 989 | + 'PT' => 'US', | |
| 990 | + 'PR' => 'US', | |
| 991 | + 'QA' => 'US', | |
| 992 | + 'RO' => 'US', | |
| 993 | + 'RU' => 'US', | |
| 994 | + 'RW' => 'US', | |
| 995 | + 'SA' => 'US', | |
| 996 | + 'SN' => 'US', | |
| 997 | + 'RS' => 'US', | |
| 998 | + 'SG' => 'US', | |
| 999 | + 'SK' => 'US', | |
| 1000 | + 'SI' => 'US', | |
| 1001 | + 'SB' => 'US', | |
| 1002 | + 'ZA' => 'US', | |
| 1003 | + 'KR' => 'US', | |
| 1004 | + 'SS' => 'US', | |
| 1005 | + 'ES' => 'US', | |
| 1006 | + 'LK' => 'US', | |
| 1007 | + 'SD' => 'US', | |
| 1008 | + 'SY' => 'US', | |
| 1009 | + 'SE' => 'US', | |
| 1010 | + 'CH' => 'US', | |
| 1011 | + 'TW' => 'JP', | |
| 1012 | + 'TZ' => 'US', | |
| 1013 | + 'TH' => 'US', | |
| 1014 | + 'TG' => 'US', | |
| 1015 | + 'TT' => 'US', | |
| 1016 | + 'TN' => 'US', | |
| 1017 | + 'TR' => 'US', | |
| 1018 | + 'UG' => 'US', | |
| 1019 | + 'UA' => 'US', | |
| 1020 | + 'AE' => 'US', | |
| 1021 | + 'GB' => 'US', | |
| 1022 | + 'US' => 'US', | |
| 1023 | + 'UY' => 'US', | |
| 1024 | + 'VE' => 'US', | |
| 1025 | + 'VN' => 'US', | |
| 1026 | + 'ZW' => 'US', | |
| 1027 | + 'NA' => 'US', | |
| 1028 | + 'OO' => 'US', | |
| 1029 | +); | |
| 1030 | + | |
| 1031 | +/** | |
| 1032 | + * Global usces_settings - country_num | |
| 1033 | + * key(Country codes alpha-2) => numeric | |
| 1034 | + * | |
| 1035 | + * @var array | |
| 1036 | + */ | |
| 1037 | +$usces_settings['country_num'] = array( | |
| 1038 | + 'DZ' => '213', | |
| 1039 | + 'AR' => '54', | |
| 1040 | + 'AU' => '61', | |
| 1041 | + 'AT' => '43', | |
| 1042 | + 'AZ' => '7', | |
| 1043 | + 'BH' => '973', | |
| 1044 | + 'BB' => '1', | |
| 1045 | + 'BD' => '880', | |
| 1046 | + 'BY' => '375', | |
| 1047 | + 'BE' => '32', | |
| 1048 | + 'BT' => '975', | |
| 1049 | + 'BN' => '673', | |
| 1050 | + 'BR' => '55', | |
| 1051 | + 'BG' => '359', | |
| 1052 | + 'BW' => '267', | |
| 1053 | + 'KH' => '855', | |
| 1054 | + 'CA' => '1', | |
| 1055 | + 'CL' => '56', | |
| 1056 | + 'CN' => '86', | |
| 1057 | + 'CO' => '57', | |
| 1058 | + 'CR' => '506', | |
| 1059 | + 'CI' => '225', | |
| 1060 | + 'HR' => '385', | |
| 1061 | + 'CU' => '53', | |
| 1062 | + 'CY' => '357', | |
| 1063 | + 'CZ' => '420', | |
| 1064 | + 'DK' => '45', | |
| 1065 | + 'DJ' => '253', | |
| 1066 | + 'DO' => '1-809', | |
| 1067 | + 'SV' => '503', | |
| 1068 | + 'EE' => '372', | |
| 1069 | + 'ET' => '251', | |
| 1070 | + 'FI' => '358', | |
| 1071 | + 'EC' => '593', | |
| 1072 | + 'EG' => '20', | |
| 1073 | + 'FJ' => '679', | |
| 1074 | + 'FR' => '33', | |
| 1075 | + 'GA' => '241', | |
| 1076 | + 'DE' => '49', | |
| 1077 | + 'GH' => '233', | |
| 1078 | + 'GR' => '30', | |
| 1079 | + 'GT' => '502', | |
| 1080 | + 'HN' => '504', | |
| 1081 | + 'HK' => '852', | |
| 1082 | + 'HU' => '36', | |
| 1083 | + 'IS' => '354', | |
| 1084 | + 'IN' => '91', | |
| 1085 | + 'ID' => '62', | |
| 1086 | + 'IE' => '353', | |
| 1087 | + 'IQ' => '964', | |
| 1088 | + 'IR' => '98', | |
| 1089 | + 'IL' => '972', | |
| 1090 | + 'IT' => '39', | |
| 1091 | + 'JP' => '81', | |
| 1092 | + 'JM' => '1', | |
| 1093 | + 'JO' => '962', | |
| 1094 | + 'KE' => '254', | |
| 1095 | + 'KW' => '965', | |
| 1096 | + 'KZ' => '7', | |
| 1097 | + 'LV' => '371', | |
| 1098 | + 'LI' => '423', | |
| 1099 | + 'LA' => '856', | |
| 1100 | + 'LT' => '370', | |
| 1101 | + 'LU' => '352', | |
| 1102 | + 'MO' => '853', | |
| 1103 | + 'MK' => '261', | |
| 1104 | + 'MG' => '389', | |
| 1105 | + 'MY' => '60', | |
| 1106 | + 'MT' => '356', | |
| 1107 | + 'MU' => '230', | |
| 1108 | + 'MX' => '52', | |
| 1109 | + 'MV' => '960', | |
| 1110 | + 'MC' => '377', | |
| 1111 | + 'MN' => '976', | |
| 1112 | + 'MA' => '212', | |
| 1113 | + 'MM' => '95', | |
| 1114 | + 'NL' => '31', | |
| 1115 | + 'NP' => '977', | |
| 1116 | + 'NZ' => '64', | |
| 1117 | + 'NG' => '234', | |
| 1118 | + 'NO' => '47', | |
| 1119 | + 'NC' => '687', | |
| 1120 | + 'OM' => '968', | |
| 1121 | + 'PA' => '507', | |
| 1122 | + 'PK' => '92', | |
| 1123 | + 'PG' => '675', | |
| 1124 | + 'PY' => '595', | |
| 1125 | + 'PE' => '51', | |
| 1126 | + 'PH' => '63', | |
| 1127 | + 'PL' => '48', | |
| 1128 | + 'PT' => '351', | |
| 1129 | + 'PR' => '1-787', | |
| 1130 | + 'QA' => '974', | |
| 1131 | + 'RO' => '40', | |
| 1132 | + 'RU' => '7', | |
| 1133 | + 'RW' => '250', | |
| 1134 | + 'SA' => '966', | |
| 1135 | + 'SN' => '221', | |
| 1136 | + 'RS' => '381', | |
| 1137 | + 'SG' => '65', | |
| 1138 | + 'SK' => '421', | |
| 1139 | + 'SI' => '386', | |
| 1140 | + 'SB' => '677', | |
| 1141 | + 'ZA' => '27', | |
| 1142 | + 'KR' => '82', | |
| 1143 | + 'SS' => '221', | |
| 1144 | + 'ES' => '34', | |
| 1145 | + 'LK' => '94', | |
| 1146 | + 'SD' => '249', | |
| 1147 | + 'SY' => '963', | |
| 1148 | + 'SE' => '46', | |
| 1149 | + 'CH' => '41', | |
| 1150 | + 'TW' => '886', | |
| 1151 | + 'TZ' => '255', | |
| 1152 | + 'TH' => '66', | |
| 1153 | + 'TG' => '228', | |
| 1154 | + 'TT' => '1', | |
| 1155 | + 'TN' => '216', | |
| 1156 | + 'TR' => '90', | |
| 1157 | + 'UG' => '256', | |
| 1158 | + 'UA' => '380', | |
| 1159 | + 'AE' => '941', | |
| 1160 | + 'GB' => '44', | |
| 1161 | + 'US' => '1', | |
| 1162 | + 'UY' => '598', | |
| 1163 | + 'VE' => '58', | |
| 1164 | + 'VN' => '84', | |
| 1165 | + 'ZW' => '263', | |
| 1166 | + 'NA' => '264', | |
| 1167 | + 'OO' => '1', | |
| 1168 | +); | |
| 1169 | + | |
| 1170 | +/** | |
| 1171 | + * Global usces_settings - country_code | |
| 1172 | + * key(Country codes alpha-2) => numeric | |
| 1173 | + * ISO 3166-1 国名コード | |
| 1174 | + * | |
| 1175 | + * @var array | |
| 1176 | + */ | |
| 1177 | +$usces_settings['country_code'] = array( | |
| 1178 | + 'DZ' => '012', | |
| 1179 | + 'AR' => '032', | |
| 1180 | + 'AU' => '036', | |
| 1181 | + 'AT' => '040', | |
| 1182 | + 'AZ' => '031', | |
| 1183 | + 'BH' => '048', | |
| 1184 | + 'BB' => '052', | |
| 1185 | + 'BD' => '050', | |
| 1186 | + 'BY' => '112', | |
| 1187 | + 'BE' => '056', | |
| 1188 | + 'BT' => '064', | |
| 1189 | + 'BN' => '096', | |
| 1190 | + 'BR' => '076', | |
| 1191 | + 'BG' => '100', | |
| 1192 | + 'BW' => '072', | |
| 1193 | + 'KH' => '116', | |
| 1194 | + 'CA' => '124', | |
| 1195 | + 'CL' => '152', | |
| 1196 | + 'CN' => '156', | |
| 1197 | + 'CO' => '170', | |
| 1198 | + 'CR' => '188', | |
| 1199 | + 'CI' => '384', | |
| 1200 | + 'HR' => '191', | |
| 1201 | + 'CU' => '192', | |
| 1202 | + 'CY' => '196', | |
| 1203 | + 'CZ' => '203', | |
| 1204 | + 'DK' => '208', | |
| 1205 | + 'DJ' => '262', | |
| 1206 | + 'DO' => '214', | |
| 1207 | + 'SV' => '222', | |
| 1208 | + 'EE' => '233', | |
| 1209 | + 'ET' => '231', | |
| 1210 | + 'FI' => '246', | |
| 1211 | + 'EC' => '218', | |
| 1212 | + 'EG' => '818', | |
| 1213 | + 'FJ' => '242', | |
| 1214 | + 'FR' => '250', | |
| 1215 | + 'GA' => '266', | |
| 1216 | + 'DE' => '276', | |
| 1217 | + 'GH' => '288', | |
| 1218 | + 'GR' => '300', | |
| 1219 | + 'GT' => '320', | |
| 1220 | + 'HN' => '340', | |
| 1221 | + 'HK' => '344', | |
| 1222 | + 'HU' => '348', | |
| 1223 | + 'IS' => '352', | |
| 1224 | + 'IN' => '356', | |
| 1225 | + 'ID' => '360', | |
| 1226 | + 'IE' => '372', | |
| 1227 | + 'IQ' => '368', | |
| 1228 | + 'IR' => '364', | |
| 1229 | + 'IL' => '376', | |
| 1230 | + 'IT' => '380', | |
| 1231 | + 'JP' => '392', | |
| 1232 | + 'JM' => '388', | |
| 1233 | + 'JO' => '400', | |
| 1234 | + 'KE' => '404', | |
| 1235 | + 'KW' => '414', | |
| 1236 | + 'KZ' => '398', | |
| 1237 | + 'LV' => '428', | |
| 1238 | + 'LI' => '438', | |
| 1239 | + 'LA' => '418', | |
| 1240 | + 'LT' => '440', | |
| 1241 | + 'LU' => '442', | |
| 1242 | + 'MO' => '446', | |
| 1243 | + 'MK' => '807', | |
| 1244 | + 'MG' => '450', | |
| 1245 | + 'MY' => '458', | |
| 1246 | + 'MT' => '470', | |
| 1247 | + 'MU' => '480', | |
| 1248 | + 'MX' => '484', | |
| 1249 | + 'MV' => '462', | |
| 1250 | + 'MC' => '492', | |
| 1251 | + 'MN' => '496', | |
| 1252 | + 'MA' => '504', | |
| 1253 | + 'MM' => '104', | |
| 1254 | + 'NL' => '528', | |
| 1255 | + 'NP' => '524', | |
| 1256 | + 'NZ' => '554', | |
| 1257 | + 'NG' => '566', | |
| 1258 | + 'NO' => '578', | |
| 1259 | + 'NC' => '540', | |
| 1260 | + 'OM' => '512', | |
| 1261 | + 'PA' => '591', | |
| 1262 | + 'PK' => '586', | |
| 1263 | + 'PG' => '598', | |
| 1264 | + 'PY' => '600', | |
| 1265 | + 'PE' => '604', | |
| 1266 | + 'PH' => '608', | |
| 1267 | + 'PL' => '616', | |
| 1268 | + 'PT' => '620', | |
| 1269 | + 'PR' => '630', | |
| 1270 | + 'QA' => '634', | |
| 1271 | + 'RO' => '642', | |
| 1272 | + 'RU' => '643', | |
| 1273 | + 'RW' => '646', | |
| 1274 | + 'SA' => '682', | |
| 1275 | + 'SN' => '686', | |
| 1276 | + 'RS' => '688', | |
| 1277 | + 'SG' => '702', | |
| 1278 | + 'SK' => '703', | |
| 1279 | + 'SI' => '705', | |
| 1280 | + 'SB' => '090', | |
| 1281 | + 'ZA' => '710', | |
| 1282 | + 'KR' => '410', | |
| 1283 | + 'SS' => '728', | |
| 1284 | + 'ES' => '724', | |
| 1285 | + 'LK' => '144', | |
| 1286 | + 'SD' => '736', | |
| 1287 | + 'SY' => '760', | |
| 1288 | + 'SE' => '752', | |
| 1289 | + 'CH' => '756', | |
| 1290 | + 'TW' => '158', | |
| 1291 | + 'TZ' => '834', | |
| 1292 | + 'TH' => '764', | |
| 1293 | + 'TG' => '768', | |
| 1294 | + 'TT' => '780', | |
| 1295 | + 'TN' => '788', | |
| 1296 | + 'TR' => '792', | |
| 1297 | + 'UG' => '800', | |
| 1298 | + 'UA' => '804', | |
| 1299 | + 'AE' => '784', | |
| 1300 | + 'GB' => '826', | |
| 1301 | + 'US' => '840', | |
| 1302 | + 'UY' => '858', | |
| 1303 | + 'VE' => '862', | |
| 1304 | + 'VN' => '704', | |
| 1305 | + 'ZW' => '716', | |
| 1306 | + 'NA' => '516', | |
| 1307 | + 'OO' => '000', | |
| 1308 | +); | |
| 1309 | + | |
| 1310 | +/** | |
| 1311 | + * Global usces_settings - lungage2country | |
| 1312 | + * key(Locale) => Country codes alpha-2 | |
| 1313 | + * | |
| 1314 | + * @var array | |
| 1315 | + */ | |
| 1316 | +$usces_settings['lungage2country'] = array( | |
| 1317 | + 'ar_DZ' => 'DZ', | |
| 1318 | + 'es_AR' => 'AR', | |
| 1319 | + 'en_AU' => 'AU', | |
| 1320 | + 'de_AT' => 'AT', | |
| 1321 | + 'az' => 'AZ', | |
| 1322 | + 'ar_BH' => 'BH', | |
| 1323 | + 'en_BB' => 'BB', | |
| 1324 | + 'bn' => 'BD', | |
| 1325 | + 'be' => 'BY', | |
| 1326 | + 'nl_BE' => 'BE', | |
| 1327 | + 'fr_BE' => 'BE', | |
| 1328 | + 'dz' => 'BT', | |
| 1329 | + 'en_BW' => 'BW', | |
| 1330 | + 'tn_BW' => 'BW', | |
| 1331 | + 'ms_BN' => 'BN', | |
| 1332 | + 'pt_BR' => 'BR', | |
| 1333 | + 'bg' => 'BG', | |
| 1334 | + 'km' => 'KH', | |
| 1335 | + 'en_CA' => 'CA', | |
| 1336 | + 'fr_CA' => 'CA', | |
| 1337 | + 'es_CL' => 'CL', | |
| 1338 | + 'zh_CN' => 'CN', | |
| 1339 | + 'zh' => 'CN', | |
| 1340 | + 'es_CO' => 'CO', | |
| 1341 | + 'es_CR' => 'CR', | |
| 1342 | + 'fr_CI' => 'CI', | |
| 1343 | + 'hr' => 'HR', | |
| 1344 | + 'es_CU' => 'CU', | |
| 1345 | + 'el_CY' => 'CY', | |
| 1346 | + 'tr_CY' => 'CY', | |
| 1347 | + 'cs_CZ' => 'CZ', | |
| 1348 | + 'cs' => 'CZ', | |
| 1349 | + 'da' => 'DK', | |
| 1350 | + 'da_DK' => 'DK', | |
| 1351 | + 'fr_DJ' => 'DJ', | |
| 1352 | + 'ar_DJ' => 'DJ', | |
| 1353 | + 'es_DO' => 'DO', | |
| 1354 | + 'fi_FI' => 'FI', | |
| 1355 | + 'fi' => 'FI', | |
| 1356 | + 'es_EC' => 'EC', | |
| 1357 | + 'ar_EG' => 'EG', | |
| 1358 | + 'es_SV' => 'SV', | |
| 1359 | + 'et' => 'EE', | |
| 1360 | + 'am_ET' => 'ET', | |
| 1361 | + 'sv_FI' => 'FI', | |
| 1362 | + 'en_FJ' => 'FJ', | |
| 1363 | + 'fr' => 'FR', | |
| 1364 | + 'fr_FR' => 'FR', | |
| 1365 | + 'fr_GA' => 'GA', | |
| 1366 | + 'de' => 'DE', | |
| 1367 | + 'de_DE' => 'DE', | |
| 1368 | + 'en_GH' => 'GH', | |
| 1369 | + 'el' => 'GR', | |
| 1370 | + 'el_GR' => 'GR', | |
| 1371 | + 'es_GT' => 'GT', | |
| 1372 | + 'es_HN' => 'HN', | |
| 1373 | + 'zh_HK' => 'HK', | |
| 1374 | + 'en_HK' => 'HK', | |
| 1375 | + 'hu_HU' => 'HU', | |
| 1376 | + 'hu' => 'HU', | |
| 1377 | + 'is' => 'IS', | |
| 1378 | + 'hi' => 'IN', | |
| 1379 | + 'hi_IN' => 'IN', | |
| 1380 | + 'id' => 'ID', | |
| 1381 | + 'id_ID' => 'ID', | |
| 1382 | + 'ga' => 'IE', | |
| 1383 | + 'ga_IE' => 'IE', | |
| 1384 | + 'en_IE' => 'IE', | |
| 1385 | + 'ar_IQ' => 'IQ', | |
| 1386 | + 'fa_IR' => 'IR', | |
| 1387 | + 'he_IL' => 'IL', | |
| 1388 | + 'ar_IL' => 'IL', | |
| 1389 | + 'it' => 'IT', | |
| 1390 | + 'it_IT' => 'IT', | |
| 1391 | + 'ja' => 'JP', | |
| 1392 | + 'ja_JP' => 'JP', | |
| 1393 | + 'en_JM' => 'JM', | |
| 1394 | + 'ar_JO' => 'JO', | |
| 1395 | + 'en_KE' => 'KE', | |
| 1396 | + 'sw_KE' => 'KE', | |
| 1397 | + 'ar_KW' => 'KW', | |
| 1398 | + 'kk' => 'KZ', | |
| 1399 | + 'lv' => 'LV', | |
| 1400 | + 'de_LI' => 'LI', | |
| 1401 | + 'lo' => 'LA', | |
| 1402 | + 'lt' => 'LT', | |
| 1403 | + 'fr_LU' => 'LU', | |
| 1404 | + 'de_LU' => 'LU', | |
| 1405 | + 'lb' => 'LU', | |
| 1406 | + 'zh_MO' => 'MO', | |
| 1407 | + 'pt_MO' => 'MO', | |
| 1408 | + 'mk' => 'MK', | |
| 1409 | + 'mg' => 'MG', | |
| 1410 | + 'fr_MG' => 'MG', | |
| 1411 | + 'ms' => 'MY', | |
| 1412 | + 'ms_MY' => 'MY', | |
| 1413 | + 'mt' => 'MT', | |
| 1414 | + 'en_MT' => 'MT', | |
| 1415 | + 'fr_MU' => 'MU', | |
| 1416 | + 'en_MU' => 'MU', | |
| 1417 | + 'es_MX' => 'MX', | |
| 1418 | + 'dv' => 'MV', | |
| 1419 | + 'fr_MC' => 'MC', | |
| 1420 | + 'mn' => 'MN', | |
| 1421 | + 'ar_MA' => 'MA', | |
| 1422 | + 'my_MM' => 'MM', | |
| 1423 | + 'nl' => 'NL', | |
| 1424 | + 'nl_NL' => 'NL', | |
| 1425 | + 'ne_NP' => 'NP', | |
| 1426 | + 'en_NZ' => 'NZ', | |
| 1427 | + 'mi_NZ' => 'NZ', | |
| 1428 | + 'mi' => 'NZ', | |
| 1429 | + 'en_NG' => 'NG', | |
| 1430 | + 'no' => 'NO', | |
| 1431 | + 'no_NO' => 'NO', | |
| 1432 | + 'fr_NC' => 'NC', | |
| 1433 | + 'ar_OM' => 'OM', | |
| 1434 | + 'es_PA' => 'PA', | |
| 1435 | + 'ur' => 'PK', | |
| 1436 | + 'en_PG' => 'PG', | |
| 1437 | + 'es_PY' => 'PY', | |
| 1438 | + 'gn' => 'PY', | |
| 1439 | + 'es_PE' => 'PE', | |
| 1440 | + 'tl' => 'PH', | |
| 1441 | + 'tl_PH' => 'PH', | |
| 1442 | + 'en_PH' => 'PH', | |
| 1443 | + 'pl' => 'PL', | |
| 1444 | + 'pl_PL' => 'PL', | |
| 1445 | + 'pt' => 'PT', | |
| 1446 | + 'pt_PT' => 'PT', | |
| 1447 | + 'es_PR' => 'PR', | |
| 1448 | + 'en_PR' => 'PR', | |
| 1449 | + 'ar_QA' => 'QA', | |
| 1450 | + 'ro' => 'RO', | |
| 1451 | + 'ro_RO' => 'RO', | |
| 1452 | + 'ru' => 'RU', | |
| 1453 | + 'ar_SA' => 'SA', | |
| 1454 | + 'fr_SN' => 'SN', | |
| 1455 | + 'sr_RS' => 'RS', | |
| 1456 | + 'ru_RU' => 'RU', | |
| 1457 | + 'rw' => 'RW', | |
| 1458 | + 'fr_RW' => 'RW', | |
| 1459 | + 'en_RW' => 'RW', | |
| 1460 | + 'en_SG' => 'SG', | |
| 1461 | + 'ms_SG' => 'SG', | |
| 1462 | + 'zh_SG' => 'SG', | |
| 1463 | + 'sk' => 'SK', | |
| 1464 | + 'sl' => 'SI', | |
| 1465 | + 'en_SB' => 'SB', | |
| 1466 | + 'af_ZA' => 'ZA', | |
| 1467 | + 'en_ZA' => 'ZA', | |
| 1468 | + 'ko' => 'KR', | |
| 1469 | + 'ko_KR' => 'KR', | |
| 1470 | + 'en_SS' => 'SS', | |
| 1471 | + 'es' => 'ES', | |
| 1472 | + 'es_ES' => 'ES', | |
| 1473 | + 'si' => 'LK', | |
| 1474 | + 'ar_SD' => 'SD', | |
| 1475 | + 'en_SD' => 'SD', | |
| 1476 | + 'ar_SY' => 'SY', | |
| 1477 | + 'sv' => 'SE', | |
| 1478 | + 'sv_SE' => 'SE', | |
| 1479 | + 'de_CH' => 'CH', | |
| 1480 | + 'fr_CH' => 'CH', | |
| 1481 | + 'it_CH' => 'CH', | |
| 1482 | + 'rm_CH' => 'CH', | |
| 1483 | + 'rm' => 'CH', | |
| 1484 | + 'zh_TW' => 'TW', | |
| 1485 | + 'en_TZ' => 'TZ', | |
| 1486 | + 'sw_TZ' => 'TZ', | |
| 1487 | + 'th' => 'TH', | |
| 1488 | + 'th_TH' => 'TH', | |
| 1489 | + 'fr_TG' => 'TG', | |
| 1490 | + 'en_TT' => 'TT', | |
| 1491 | + 'ar_TN' => 'TN', | |
| 1492 | + 'tr' => 'TR', | |
| 1493 | + 'tr_TR' => 'TR', | |
| 1494 | + 'en_UG' => 'UG', | |
| 1495 | + 'sw_UG' => 'UG', | |
| 1496 | + 'uk' => 'UA', | |
| 1497 | + 'ar' => 'AE', | |
| 1498 | + 'ar_AE' => 'AE', | |
| 1499 | + 'en' => 'GB', | |
| 1500 | + 'en_GB' => 'GB', | |
| 1501 | + '' => 'US', | |
| 1502 | + 'en_US' => 'US', | |
| 1503 | + 'es_UY' => 'UY', | |
| 1504 | + 'es_VE' => 'VE', | |
| 1505 | + 'vi' => 'VN', | |
| 1506 | + 'vi_VN' => 'VN', | |
| 1507 | + 'en_ZW' => 'ZW', | |
| 1508 | + 'na' => 'NA', | |
| 1509 | +); | |
| 1510 | + | |
| 1511 | +/** | |
| 1512 | + * Global usces_states - JP | |
| 1513 | + * 販売対象国 - JP | |
| 1514 | + * 都道府県 | |
| 1515 | + * | |
| 1516 | + * @var array | |
| 1517 | + */ | |
| 1518 | +$usces_states['JP'] = array( | |
| 1519 | + '--選択--', | |
| 1520 | + '北海道', | |
| 1521 | + '青森県', | |
| 1522 | + '岩手県', | |
| 1523 | + '宮城県', | |
| 1524 | + '秋田県', | |
| 1525 | + '山形県', | |
| 1526 | + '福島県', | |
| 1527 | + '茨城県', | |
| 1528 | + '栃木県', | |
| 1529 | + '群馬県', | |
| 1530 | + '埼玉県', | |
| 1531 | + '千葉県', | |
| 1532 | + '東京都', | |
| 1533 | + '神奈川県', | |
| 1534 | + '新潟県', | |
| 1535 | + '富山県', | |
| 1536 | + '石川県', | |
| 1537 | + '福井県', | |
| 1538 | + '山梨県', | |
| 1539 | + '長野県', | |
| 1540 | + '岐阜県', | |
| 1541 | + '静岡県', | |
| 1542 | + '愛知県', | |
| 1543 | + '三重県', | |
| 1544 | + '滋賀県', | |
| 1545 | + '京都府', | |
| 1546 | + '大阪府', | |
| 1547 | + '兵庫県', | |
| 1548 | + '奈良県', | |
| 1549 | + '和歌山県', | |
| 1550 | + '鳥取県', | |
| 1551 | + '島根県', | |
| 1552 | + '岡山県', | |
| 1553 | + '広島県', | |
| 1554 | + '山口県', | |
| 1555 | + '徳島県', | |
| 1556 | + '香川県', | |
| 1557 | + '愛媛県', | |
| 1558 | + '高知県', | |
| 1559 | + '福岡県', | |
| 1560 | + '佐賀県', | |
| 1561 | + '長崎県', | |
| 1562 | + '熊本県', | |
| 1563 | + '大分県', | |
| 1564 | + '宮崎県', | |
| 1565 | + '鹿児島県', | |
| 1566 | + '沖縄県', | |
| 1567 | +); | |
| 1568 | + | |
| 1569 | +/** | |
| 1570 | + * Global usces_states - US | |
| 1571 | + * 販売対象国 - US | |
| 1572 | + * 州 | |
| 1573 | + * | |
| 1574 | + * @var array | |
| 1575 | + */ | |
| 1576 | +$usces_states['US'] = array( | |
| 1577 | + '-- Select --', | |
| 1578 | + 'Alabama', | |
| 1579 | + 'Alaska', | |
| 1580 | + 'Arizona', | |
| 1581 | + 'Arkansas', | |
| 1582 | + 'California', | |
| 1583 | + 'Colorado', | |
| 1584 | + 'Connecticut', | |
| 1585 | + 'Delaware', | |
| 1586 | + 'District of Columbia', | |
| 1587 | + 'Florida', | |
| 1588 | + 'Georgia', | |
| 1589 | + 'Hawaii', | |
| 1590 | + 'Idaho', | |
| 1591 | + 'Illinois', | |
| 1592 | + 'Indiana', | |
| 1593 | + 'Iowa', | |
| 1594 | + 'Kansas', | |
| 1595 | + 'Kentucky', | |
| 1596 | + 'Louisiana', | |
| 1597 | + 'Maine', | |
| 1598 | + 'Maryland', | |
| 1599 | + 'Massachusetts', | |
| 1600 | + 'Michigan', | |
| 1601 | + 'Minnesota', | |
| 1602 | + 'Mississippi', | |
| 1603 | + 'Missouri', | |
| 1604 | + 'Montana', | |
| 1605 | + 'Nebraska', | |
| 1606 | + 'Nevada', | |
| 1607 | + 'New Hampshire', | |
| 1608 | + 'New Jersey', | |
| 1609 | + 'New Mexico', | |
| 1610 | + 'New York', | |
| 1611 | + 'North Carolina', | |
| 1612 | + 'North Dakota', | |
| 1613 | + 'Ohio', | |
| 1614 | + 'Oklahoma', | |
| 1615 | + 'Oregon', | |
| 1616 | + 'Pennsylvania', | |
| 1617 | + 'Rhode Island', | |
| 1618 | + 'South Carolina', | |
| 1619 | + 'South Dakota', | |
| 1620 | + 'Tennessee', | |
| 1621 | + 'Texas', | |
| 1622 | + 'Utah', | |
| 1623 | + 'Vermont', | |
| 1624 | + 'Virginia', | |
| 1625 | + 'Washington', | |
| 1626 | + 'West Virginia', | |
| 1627 | + 'Wisconsin', | |
| 1628 | + 'Wyoming', | |
| 1629 | +); | |
| 1630 | + | |
| 1631 | +if ( ! get_option( 'usces_states' ) ) { | |
| 1632 | + update_option( 'usces_states', $usces_states ); | |
| 1633 | +} | |
| 1634 | + | |
| 1635 | +/** | |
| 1636 | + * Option - usces_noreceipt_status | |
| 1637 | + * 入金ステータスを利用し、入金通知により「未入金」「入金」を切り替える | |
| 1638 | + * key(slug) | |
| 1639 | + * | |
| 1640 | + * @var array | |
| 1641 | + */ | |
| 1642 | +$usces_noreceipt_status = get_option( 'usces_noreceipt_status', array() ); | |
| 1643 | +if ( empty( $usces_noreceipt_status ) ) { | |
| 1644 | + $usces_noreceipt_status = array( | |
| 1645 | + 'transferAdvance', | |
| 1646 | + 'transferDeferred', | |
| 1647 | + 'acting_remise_conv', | |
| 1648 | + 'acting_zeus_bank', | |
| 1649 | + 'acting_zeus_conv', | |
| 1650 | + 'acting_jpayment_conv', | |
| 1651 | + 'acting_jpayment_bank', | |
| 1652 | + 'acting_digitalcheck_conv', | |
| 1653 | + 'acting_mizuho_conv1', | |
| 1654 | + 'acting_mizuho_conv2', | |
| 1655 | + 'acting_veritrans_conv', | |
| 1656 | + 'acting_paygent_conv', | |
| 1657 | + ); | |
| 1658 | + update_option( 'usces_noreceipt_status', $usces_noreceipt_status ); | |
| 1659 | +} | |
| 1660 | + | |
| 1661 | +if ( ! get_option( 'usces_wcid' ) ) { | |
| 1662 | + update_option( 'usces_wcid', md5( uniqid( wp_rand(), 1 ) ) ); | |
| 1663 | +} | |