| 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 |
* |
| 597 |
* @var array |
| 598 |
*/ |
| 599 |
$shipping_indication = array( 0, 0, 2, 3, 5, 6, 7, 14, 21, 0 ); |
| 600 |
|
| 601 |
$usces_op = get_option( 'usces' ); |
| 602 |
if ( ! is_array( $usces_op ) || empty( $usces_op ) ) { |
| 603 |
$usces_op = array(); |
| 604 |
} |
| 605 |
$usces_op['usces_shipping_indication'] = $shipping_indication; |
| 606 |
update_option( 'usces', $usces_op ); |
| 607 |
|
| 608 |
/** |
| 609 |
* Global usces_settings - language |
| 610 |
* |
| 611 |
* @var array |
| 612 |
*/ |
| 613 |
$usces_settings['language'] = array(); |
| 614 |
|
| 615 |
/** |
| 616 |
* Global usces_settings - currency |
| 617 |
* key(Country codes alpha-2) => Country codes alpha-3, Number of decimal digits, Decimal separator, Currency separator, Currency symbol |
| 618 |
* |
| 619 |
* @var array |
| 620 |
*/ |
| 621 |
$usces_settings['currency'] = array( |
| 622 |
'DZ' => array( 'DZD', 2, '.', ',', 'د.ج' ), |
| 623 |
'AR' => array( 'ARS', 2, '.', ',', '$' ), |
| 624 |
'AU' => array( 'AUD', 2, '.', ',', '$' ), |
| 625 |
'AT' => array( 'EUR', 2, '.', ',', '€' ), |
| 626 |
'AZ' => array( 'AZN', 2, '.', ',', 'man.' ), |
| 627 |
'BH' => array( 'BHD', 2, '.', ',', 'BD' ), |
| 628 |
'BB' => array( 'BBD', 2, '.', ',', '$' ), |
| 629 |
'BE' => array( 'EUR', 2, '.', ',', '€' ), |
| 630 |
'BD' => array( 'BDT', 2, '.', ',', '৳' ), |
| 631 |
'BY' => array( 'BYR', 2, '.', ',', 'p.' ), |
| 632 |
'BT' => array( 'BTN', 2, '.', ',', 'Nu' ), |
| 633 |
'BW' => array( 'BWP', 2, '.', ',', 'P' ), |
| 634 |
'BN' => array( 'BND', 2, '.', ',', 'B$' ), |
| 635 |
'BR' => array( 'BRL', 2, '.', ',', '$' ), |
| 636 |
'BG' => array( 'BGN', 2, '.', ',', 'лв' ), |
| 637 |
'KH' => array( 'KHR', 2, '.', ',', '៛' ), |
| 638 |
'CA' => array( 'CAD', 2, '.', ',', '$' ), |
| 639 |
'CL' => array( 'CLP', 2, '.', ',', '$' ), |
| 640 |
'CN' => array( 'CNY', 2, '.', ',', '¥' ), |
| 641 |
'CO' => array( 'COP', 2, '.', ',', '$' ), |
| 642 |
'CR' => array( 'CRC', 2, '.', ',', '₡' ), |
| 643 |
'CI' => array( 'XOF', 2, '.', ',', 'Fr' ), |
| 644 |
'HR' => array( 'HRK', 2, '.', ',', 'kn' ), |
| 645 |
'CU' => array( 'CUC', 2, '.', ',', '$' ), |
| 646 |
'CY' => array( 'EUR', 2, '.', ',', '€' ), |
| 647 |
'CZ' => array( 'CZK', 2, '.', ',', 'Kč' ), |
| 648 |
'DK' => array( 'DKK', 2, '.', ',', 'kr' ), |
| 649 |
'DJ' => array( 'DJF', 2, '.', ',', 'Fr' ), |
| 650 |
'DO' => array( 'DOP', 2, '.', ',', 'RD$' ), |
| 651 |
'SV' => array( 'USD', 2, '.', ',', '$' ), |
| 652 |
'EE' => array( 'EUR', 2, '.', ',', '€' ), |
| 653 |
'ET' => array( 'ETB', 2, '.', ',', 'Br' ), |
| 654 |
'FI' => array( 'EUR', 2, '.', ',', '€' ), |
| 655 |
'EC' => array( 'USD', 2, '.', ',', '$' ), |
| 656 |
'EG' => array( 'EGP', 2, '.', ',', '£' ), |
| 657 |
'FJ' => array( 'FJD', 2, '.', ',', '$' ), |
| 658 |
'FR' => array( 'EUR', 2, '.', ',', '€' ), |
| 659 |
'GA' => array( 'XAF', 2, '.', ',', 'Fr' ), |
| 660 |
'DE' => array( 'EUR', 2, '.', ',', '€' ), |
| 661 |
'GH' => array( 'GHC', 2, '.', ',', '₵' ), |
| 662 |
'GR' => array( 'EUR', 2, '.', ',', '€' ), |
| 663 |
'GT' => array( 'GTQ', 2, '.', ',', 'Q' ), |
| 664 |
'HN' => array( 'HNL', 2, '.', ',', 'L' ), |
| 665 |
'HK' => array( 'HKD', 2, '.', ',', '$' ), |
| 666 |
'HU' => array( 'HUF', 2, '.', ',', 'Ft' ), |
| 667 |
'IS' => array( 'ISK', 2, '.', ',', 'kr' ), |
| 668 |
'IN' => array( 'INR', 2, '.', ',', '₨' ), |
| 669 |
'ID' => array( 'IDR', 2, '.', ',', 'Rp' ), |
| 670 |
'IE' => array( 'EUR', 2, '.', ',', '€' ), |
| 671 |
'IQ' => array( 'IQD', 2, '.', ',', 'د.ع' ), |
| 672 |
'IR' => array( 'IRR', 2, '.', ',', 'R' ), |
| 673 |
'IL' => array( 'ILS', 2, '.', ',', '₪' ), |
| 674 |
'IT' => array( 'EUR', 2, '.', ',', '€' ), |
| 675 |
'JP' => array( 'JPY', 0, '.', ',', '¥' ), |
| 676 |
'JM' => array( 'JMD', 2, '.', ',', '$' ), |
| 677 |
'JO' => array( 'JOD', 2, '.', ',', 'د.ا' ), |
| 678 |
'KE' => array( 'KES', 2, '.', ',', 'S' ), |
| 679 |
'KW' => array( 'KWD', 2, '.', ',', 'د.ك' ), |
| 680 |
'KZ' => array( 'KAZ', 2, '.', ',', '₸' ), |
| 681 |
'LV' => array( 'EUR', 2, '.', ',', '€' ), |
| 682 |
'LI' => array( 'CHF', 2, '.', ',', 'S₣' ), |
| 683 |
'LA' => array( 'LAK', 2, '.', ',', '₭' ), |
| 684 |
'LT' => array( 'EUR', 2, '.', ',', '€' ), |
| 685 |
'LU' => array( 'EUR', 2, '.', ',', '€' ), |
| 686 |
'MO' => array( 'MOP', 2, '.', ',', '$' ), |
| 687 |
'MK' => array( 'MKD', 2, '.', ',', 'ден' ), |
| 688 |
'MG' => array( 'MGA', 2, '.', ',', '' ), |
| 689 |
'MY' => array( 'MYR', 2, '.', ',', 'RM' ), |
| 690 |
'MT' => array( 'EUR', 2, '.', ',', '€' ), |
| 691 |
'MU' => array( 'MUR', 2, '.', ',', 'Rs' ), |
| 692 |
'MX' => array( 'MXN', 2, '.', ',', '$' ), |
| 693 |
'MV' => array( 'MVR', 2, '.', ',', '£' ), |
| 694 |
'MC' => array( 'EUR', 2, '.', ',', '€' ), |
| 695 |
'MN' => array( 'MNT', 2, '.', ',', '₮' ), |
| 696 |
'MA' => array( 'MAD', 2, '.', ',', 'د.� |
| 697 |
.' ), |
| 698 |
'MM' => array( 'MMK', 2, '.', ',', 'Kyat' ), |
| 699 |
'NL' => array( 'EUR', 2, '.', ',', '€' ), |
| 700 |
'NP' => array( 'NPR', 2, '.', ',', 'Rs' ), |
| 701 |
'NZ' => array( 'NZD', 2, '.', ',', '$' ), |
| 702 |
'NG' => array( 'NGN', 2, '.', ',', '₦' ), |
| 703 |
'NO' => array( 'NOK', 2, '.', ',', 'kr' ), |
| 704 |
'NC' => array( 'CFP', 2, '.', ',', 'F' ), |
| 705 |
'OM' => array( 'OMR', 2, '.', ',', 'R' ), |
| 706 |
'PA' => array( 'PAB', 2, '.', ',', 'B/.' ), |
| 707 |
'PK' => array( 'PKR', 2, '.', ',', 'Rs' ), |
| 708 |
'PG' => array( 'PKG', 2, '.', ',', 'K' ), |
| 709 |
'PY' => array( 'PYG', 2, '.', ',', '₲' ), |
| 710 |
'PE' => array( 'PEN', 2, '.', ',', 'S/.' ), |
| 711 |
'PH' => array( 'PHP', 2, '.', ',', 'P' ), |
| 712 |
'PL' => array( 'PLN', 2, '.', ',', 'zł' ), |
| 713 |
'PT' => array( 'EUR', 2, '.', ',', '€' ), |
| 714 |
'PR' => array( 'USD', 2, '.', ',', '$' ), |
| 715 |
'QA' => array( 'QAR', 2, '.', ',', 'R' ), |
| 716 |
'RO' => array( 'ROL', 2, '.', ',', 'L' ), |
| 717 |
'RU' => array( 'RUB', 2, '.', ',', '₽' ), |
| 718 |
'RW' => array( 'RWF', 2, '.', ',', 'Fr' ), |
| 719 |
'SA' => array( 'SAR', 2, '.', ',', 'R' ), |
| 720 |
'SN' => array( 'XOF', 2, '.', ',', 'Fr' ), |
| 721 |
'RS' => array( 'SRB', 2, '.', ',', 'RSD' ), |
| 722 |
'SG' => array( 'SGD', 2, '.', ',', '$' ), |
| 723 |
'SK' => array( 'EUR', 2, '.', ',', '€' ), |
| 724 |
'SI' => array( 'EUR', 2, '.', ',', '€' ), |
| 725 |
'SB' => array( 'SBD', 2, '.', ',', '$' ), |
| 726 |
'ZA' => array( 'ZAR', 2, '.', ',', 'R' ), |
| 727 |
'KR' => array( 'KRW', 0, '.', ',', '₩' ), |
| 728 |
'SS' => array( 'SSP', 0, '.', ',', '£' ), |
| 729 |
'ES' => array( 'EUR', 2, '.', ',', '€' ), |
| 730 |
'LK' => array( 'LKR', 2, '.', ',', 'SLRs' ), |
| 731 |
'SD' => array( 'SDG', 2, '.', ',', '£' ), |
| 732 |
'SY' => array( 'SYP', 2, '.', ',', '£' ), |
| 733 |
'SE' => array( 'SEK', 2, '.', ',', 'kr' ), |
| 734 |
'CH' => array( 'CHF', 2, '.', ',', 'Fr.' ), |
| 735 |
'TW' => array( 'TWD', 0, '.', ',', 'NT$' ), |
| 736 |
'TZ' => array( 'TZS', 2, '.', ',', 'Tsh' ), |
| 737 |
'TH' => array( 'THB', 2, '.', ',', '฿' ), |
| 738 |
'TG' => array( 'XOF', 2, '.', ',', 'Fr' ), |
| 739 |
'TT' => array( 'TTD', 2, '.', ',', '$' ), |
| 740 |
'TN' => array( 'TND', 2, '.', ',', 'د.ت' ), |
| 741 |
'TR' => array( 'TRL', 2, '.', ',', '₤' ), |
| 742 |
'UG' => array( 'UGX', 2, '.', ',', 'Ush' ), |
| 743 |
'UA' => array( 'UAH', 2, '.', ',', '₴' ), |
| 744 |
'AE' => array( 'AED', 2, '.', ',', 'DH' ), |
| 745 |
'GB' => array( 'GBP', 2, '.', ',', '£' ), |
| 746 |
'US' => array( 'USD', 2, '.', ',', '$' ), |
| 747 |
'UY' => array( 'UYU', 2, '.', ',', '$' ), |
| 748 |
'VE' => array( 'VEB', 2, '.', ',', 'Bs' ), |
| 749 |
'VN' => array( 'VND', 2, '.', ',', '₫' ), |
| 750 |
'ZW' => array( 'ZWD', 2, '.', ',', '$' ), |
| 751 |
'NA' => array( 'NAM', 2, '.', ',', '$' ), |
| 752 |
'OO' => array( 'USD', 2, '.', ',', '$' ), |
| 753 |
); |
| 754 |
|
| 755 |
/** |
| 756 |
* Global usces_settings - nameform |
| 757 |
* key(Country codes alpha-2) => 1|0 |
| 758 |
* |
| 759 |
* @var array |
| 760 |
*/ |
| 761 |
$usces_settings['nameform'] = array( |
| 762 |
'DZ' => 1, |
| 763 |
'AR' => 1, |
| 764 |
'AU' => 1, |
| 765 |
'AT' => 1, |
| 766 |
'AZ' => 1, |
| 767 |
'BH' => 1, |
| 768 |
'BB' => 1, |
| 769 |
'BD' => 1, |
| 770 |
'BY' => 1, |
| 771 |
'BE' => 1, |
| 772 |
'BT' => 1, |
| 773 |
'BW' => 1, |
| 774 |
'BN' => 1, |
| 775 |
'BR' => 1, |
| 776 |
'BG' => 1, |
| 777 |
'KH' => 1, |
| 778 |
'CA' => 1, |
| 779 |
'CL' => 1, |
| 780 |
'CN' => 0, |
| 781 |
'CO' => 1, |
| 782 |
'CR' => 1, |
| 783 |
'CI' => 1, |
| 784 |
'HR' => 1, |
| 785 |
'CU' => 1, |
| 786 |
'CY' => 1, |
| 787 |
'CZ' => 1, |
| 788 |
'DK' => 1, |
| 789 |
'DJ' => 1, |
| 790 |
'DO' => 1, |
| 791 |
'SV' => 1, |
| 792 |
'EE' => 1, |
| 793 |
'ET' => 1, |
| 794 |
'FI' => 1, |
| 795 |
'EC' => 1, |
| 796 |
'EG' => 1, |
| 797 |
'FJ' => 1, |
| 798 |
'FR' => 1, |
| 799 |
'GA' => 1, |
| 800 |
'DE' => 1, |
| 801 |
'GH' => 1, |
| 802 |
'GR' => 1, |
| 803 |
'GT' => 1, |
| 804 |
'HN' => 1, |
| 805 |
'HK' => 1, |
| 806 |
'HU' => 1, |
| 807 |
'IS' => 1, |
| 808 |
'IN' => 1, |
| 809 |
'ID' => 1, |
| 810 |
'IE' => 1, |
| 811 |
'IQ' => 1, |
| 812 |
'IR' => 1, |
| 813 |
'IL' => 1, |
| 814 |
'IT' => 1, |
| 815 |
'JP' => 0, |
| 816 |
'JM' => 1, |
| 817 |
'JO' => 1, |
| 818 |
'KE' => 1, |
| 819 |
'KW' => 1, |
| 820 |
'KZ' => 1, |
| 821 |
'LV' => 1, |
| 822 |
'LI' => 1, |
| 823 |
'LA' => 1, |
| 824 |
'LT' => 1, |
| 825 |
'LU' => 1, |
| 826 |
'MO' => 1, |
| 827 |
'MK' => 1, |
| 828 |
'MG' => 1, |
| 829 |
'MY' => 1, |
| 830 |
'MT' => 1, |
| 831 |
'MU' => 1, |
| 832 |
'MX' => 1, |
| 833 |
'MV' => 1, |
| 834 |
'MC' => 1, |
| 835 |
'MN' => 1, |
| 836 |
'MA' => 1, |
| 837 |
'MM' => 1, |
| 838 |
'NL' => 1, |
| 839 |
'NP' => 1, |
| 840 |
'NZ' => 1, |
| 841 |
'NG' => 1, |
| 842 |
'NO' => 1, |
| 843 |
'NC' => 1, |
| 844 |
'OM' => 1, |
| 845 |
'PA' => 1, |
| 846 |
'PK' => 1, |
| 847 |
'PG' => 1, |
| 848 |
'PY' => 1, |
| 849 |
'PE' => 1, |
| 850 |
'PH' => 1, |
| 851 |
'PL' => 1, |
| 852 |
'PT' => 1, |
| 853 |
'PR' => 1, |
| 854 |
'QA' => 1, |
| 855 |
'RO' => 1, |
| 856 |
'RU' => 1, |
| 857 |
'RW' => 1, |
| 858 |
'SA' => 1, |
| 859 |
'SN' => 1, |
| 860 |
'RS' => 1, |
| 861 |
'SG' => 1, |
| 862 |
'SK' => 1, |
| 863 |
'SI' => 1, |
| 864 |
'SB' => 1, |
| 865 |
'ZA' => 1, |
| 866 |
'KR' => 1, |
| 867 |
'SS' => 1, |
| 868 |
'ES' => 1, |
| 869 |
'LK' => 1, |
| 870 |
'SD' => 1, |
| 871 |
'SY' => 1, |
| 872 |
'SE' => 1, |
| 873 |
'CH' => 1, |
| 874 |
'TW' => 0, |
| 875 |
'TZ' => 1, |
| 876 |
'TH' => 1, |
| 877 |
'TG' => 1, |
| 878 |
'TT' => 1, |
| 879 |
'TN' => 1, |
| 880 |
'TR' => 1, |
| 881 |
'UG' => 1, |
| 882 |
'UA' => 1, |
| 883 |
'AE' => 1, |
| 884 |
'GB' => 1, |
| 885 |
'US' => 1, |
| 886 |
'UY' => 1, |
| 887 |
'VE' => 1, |
| 888 |
'VN' => 1, |
| 889 |
'ZW' => 1, |
| 890 |
'NA' => 1, |
| 891 |
'OO' => 1, |
| 892 |
); |
| 893 |
|
| 894 |
/** |
| 895 |
* Global usces_settings - addressform |
| 896 |
* key(Country codes alpha-2) => US|JP|CN |
| 897 |
* |
| 898 |
* @var array |
| 899 |
*/ |
| 900 |
$usces_settings['addressform'] = array( |
| 901 |
'DZ' => 'US', |
| 902 |
'AR' => 'US', |
| 903 |
'AU' => 'US', |
| 904 |
'AT' => 'US', |
| 905 |
'AZ' => 'US', |
| 906 |
'BH' => 'US', |
| 907 |
'BB' => 'US', |
| 908 |
'BD' => 'US', |
| 909 |
'BY' => 'US', |
| 910 |
'BE' => 'US', |
| 911 |
'BT' => 'US', |
| 912 |
'BW' => 'US', |
| 913 |
'BN' => 'US', |
| 914 |
'BR' => 'US', |
| 915 |
'BG' => 'US', |
| 916 |
'KH' => 'US', |
| 917 |
'CA' => 'US', |
| 918 |
'CL' => 'US', |
| 919 |
'CN' => 'CN', |
| 920 |
'CO' => 'US', |
| 921 |
'CR' => 'US', |
| 922 |
'CI' => 'US', |
| 923 |
'HR' => 'US', |
| 924 |
'CU' => 'US', |
| 925 |
'CY' => 'US', |
| 926 |
'CZ' => 'US', |
| 927 |
'DK' => 'US', |
| 928 |
'DJ' => 'US', |
| 929 |
'DO' => 'US', |
| 930 |
'FI' => 'US', |
| 931 |
'EC' => 'US', |
| 932 |
'EG' => 'US', |
| 933 |
'SV' => 'US', |
| 934 |
'EE' => 'US', |
| 935 |
'ET' => 'US', |
| 936 |
'FJ' => 'US', |
| 937 |
'FR' => 'US', |
| 938 |
'GA' => 'US', |
| 939 |
'DE' => 'US', |
| 940 |
'GH' => 'US', |
| 941 |
'GR' => 'US', |
| 942 |
'GT' => 'US', |
| 943 |
'HN' => 'US', |
| 944 |
'HK' => 'US', |
| 945 |
'HU' => 'US', |
| 946 |
'IS' => 'US', |
| 947 |
'IN' => 'US', |
| 948 |
'ID' => 'US', |
| 949 |
'IE' => 'US', |
| 950 |
'IQ' => 'US', |
| 951 |
'IR' => 'US', |
| 952 |
'IL' => 'US', |
| 953 |
'IT' => 'US', |
| 954 |
'JP' => 'JP', |
| 955 |
'JM' => 'US', |
| 956 |
'JO' => 'US', |
| 957 |
'KE' => 'US', |
| 958 |
'KW' => 'US', |
| 959 |
'KZ' => 'US', |
| 960 |
'LV' => 'US', |
| 961 |
'LA' => 'US', |
| 962 |
'LI' => 'US', |
| 963 |
'LT' => 'US', |
| 964 |
'LU' => 'US', |
| 965 |
'MO' => 'US', |
| 966 |
'MK' => 'US', |
| 967 |
'MG' => 'US', |
| 968 |
'MY' => 'US', |
| 969 |
'MT' => 'US', |
| 970 |
'MU' => 'US', |
| 971 |
'MX' => 'US', |
| 972 |
'MV' => 'US', |
| 973 |
'MC' => 'US', |
| 974 |
'MN' => 'US', |
| 975 |
'MA' => 'US', |
| 976 |
'MM' => 'US', |
| 977 |
'NL' => 'US', |
| 978 |
'NP' => 'US', |
| 979 |
'NZ' => 'US', |
| 980 |
'NG' => 'US', |
| 981 |
'NO' => 'US', |
| 982 |
'NC' => 'US', |
| 983 |
'OM' => 'US', |
| 984 |
'PA' => 'US', |
| 985 |
'PK' => 'US', |
| 986 |
'PG' => 'US', |
| 987 |
'PY' => 'US', |
| 988 |
'PE' => 'US', |
| 989 |
'PH' => 'US', |
| 990 |
'PL' => 'US', |
| 991 |
'PT' => 'US', |
| 992 |
'PR' => 'US', |
| 993 |
'QA' => 'US', |
| 994 |
'RO' => 'US', |
| 995 |
'RU' => 'US', |
| 996 |
'RW' => 'US', |
| 997 |
'SA' => 'US', |
| 998 |
'SN' => 'US', |
| 999 |
'RS' => 'US', |
| 1000 |
'SG' => 'US', |
| 1001 |
'SK' => 'US', |
| 1002 |
'SI' => 'US', |
| 1003 |
'SB' => 'US', |
| 1004 |
'ZA' => 'US', |
| 1005 |
'KR' => 'US', |
| 1006 |
'SS' => 'US', |
| 1007 |
'ES' => 'US', |
| 1008 |
'LK' => 'US', |
| 1009 |
'SD' => 'US', |
| 1010 |
'SY' => 'US', |
| 1011 |
'SE' => 'US', |
| 1012 |
'CH' => 'US', |
| 1013 |
'TW' => 'JP', |
| 1014 |
'TZ' => 'US', |
| 1015 |
'TH' => 'US', |
| 1016 |
'TG' => 'US', |
| 1017 |
'TT' => 'US', |
| 1018 |
'TN' => 'US', |
| 1019 |
'TR' => 'US', |
| 1020 |
'UG' => 'US', |
| 1021 |
'UA' => 'US', |
| 1022 |
'AE' => 'US', |
| 1023 |
'GB' => 'US', |
| 1024 |
'US' => 'US', |
| 1025 |
'UY' => 'US', |
| 1026 |
'VE' => 'US', |
| 1027 |
'VN' => 'US', |
| 1028 |
'ZW' => 'US', |
| 1029 |
'NA' => 'US', |
| 1030 |
'OO' => 'US', |
| 1031 |
); |
| 1032 |
|
| 1033 |
/** |
| 1034 |
* Global usces_settings - country_num |
| 1035 |
* key(Country codes alpha-2) => numeric |
| 1036 |
* |
| 1037 |
* @var array |
| 1038 |
*/ |
| 1039 |
$usces_settings['country_num'] = array( |
| 1040 |
'DZ' => '213', |
| 1041 |
'AR' => '54', |
| 1042 |
'AU' => '61', |
| 1043 |
'AT' => '43', |
| 1044 |
'AZ' => '7', |
| 1045 |
'BH' => '973', |
| 1046 |
'BB' => '1', |
| 1047 |
'BD' => '880', |
| 1048 |
'BY' => '375', |
| 1049 |
'BE' => '32', |
| 1050 |
'BT' => '975', |
| 1051 |
'BN' => '673', |
| 1052 |
'BR' => '55', |
| 1053 |
'BG' => '359', |
| 1054 |
'BW' => '267', |
| 1055 |
'KH' => '855', |
| 1056 |
'CA' => '1', |
| 1057 |
'CL' => '56', |
| 1058 |
'CN' => '86', |
| 1059 |
'CO' => '57', |
| 1060 |
'CR' => '506', |
| 1061 |
'CI' => '225', |
| 1062 |
'HR' => '385', |
| 1063 |
'CU' => '53', |
| 1064 |
'CY' => '357', |
| 1065 |
'CZ' => '420', |
| 1066 |
'DK' => '45', |
| 1067 |
'DJ' => '253', |
| 1068 |
'DO' => '1-809', |
| 1069 |
'SV' => '503', |
| 1070 |
'EE' => '372', |
| 1071 |
'ET' => '251', |
| 1072 |
'FI' => '358', |
| 1073 |
'EC' => '593', |
| 1074 |
'EG' => '20', |
| 1075 |
'FJ' => '679', |
| 1076 |
'FR' => '33', |
| 1077 |
'GA' => '241', |
| 1078 |
'DE' => '49', |
| 1079 |
'GH' => '233', |
| 1080 |
'GR' => '30', |
| 1081 |
'GT' => '502', |
| 1082 |
'HN' => '504', |
| 1083 |
'HK' => '852', |
| 1084 |
'HU' => '36', |
| 1085 |
'IS' => '354', |
| 1086 |
'IN' => '91', |
| 1087 |
'ID' => '62', |
| 1088 |
'IE' => '353', |
| 1089 |
'IQ' => '964', |
| 1090 |
'IR' => '98', |
| 1091 |
'IL' => '972', |
| 1092 |
'IT' => '39', |
| 1093 |
'JP' => '81', |
| 1094 |
'JM' => '1', |
| 1095 |
'JO' => '962', |
| 1096 |
'KE' => '254', |
| 1097 |
'KW' => '965', |
| 1098 |
'KZ' => '7', |
| 1099 |
'LV' => '371', |
| 1100 |
'LI' => '423', |
| 1101 |
'LA' => '856', |
| 1102 |
'LT' => '370', |
| 1103 |
'LU' => '352', |
| 1104 |
'MO' => '853', |
| 1105 |
'MK' => '261', |
| 1106 |
'MG' => '389', |
| 1107 |
'MY' => '60', |
| 1108 |
'MT' => '356', |
| 1109 |
'MU' => '230', |
| 1110 |
'MX' => '52', |
| 1111 |
'MV' => '960', |
| 1112 |
'MC' => '377', |
| 1113 |
'MN' => '976', |
| 1114 |
'MA' => '212', |
| 1115 |
'MM' => '95', |
| 1116 |
'NL' => '31', |
| 1117 |
'NP' => '977', |
| 1118 |
'NZ' => '64', |
| 1119 |
'NG' => '234', |
| 1120 |
'NO' => '47', |
| 1121 |
'NC' => '687', |
| 1122 |
'OM' => '968', |
| 1123 |
'PA' => '507', |
| 1124 |
'PK' => '92', |
| 1125 |
'PG' => '675', |
| 1126 |
'PY' => '595', |
| 1127 |
'PE' => '51', |
| 1128 |
'PH' => '63', |
| 1129 |
'PL' => '48', |
| 1130 |
'PT' => '351', |
| 1131 |
'PR' => '1-787', |
| 1132 |
'QA' => '974', |
| 1133 |
'RO' => '40', |
| 1134 |
'RU' => '7', |
| 1135 |
'RW' => '250', |
| 1136 |
'SA' => '966', |
| 1137 |
'SN' => '221', |
| 1138 |
'RS' => '381', |
| 1139 |
'SG' => '65', |
| 1140 |
'SK' => '421', |
| 1141 |
'SI' => '386', |
| 1142 |
'SB' => '677', |
| 1143 |
'ZA' => '27', |
| 1144 |
'KR' => '82', |
| 1145 |
'SS' => '221', |
| 1146 |
'ES' => '34', |
| 1147 |
'LK' => '94', |
| 1148 |
'SD' => '249', |
| 1149 |
'SY' => '963', |
| 1150 |
'SE' => '46', |
| 1151 |
'CH' => '41', |
| 1152 |
'TW' => '886', |
| 1153 |
'TZ' => '255', |
| 1154 |
'TH' => '66', |
| 1155 |
'TG' => '228', |
| 1156 |
'TT' => '1', |
| 1157 |
'TN' => '216', |
| 1158 |
'TR' => '90', |
| 1159 |
'UG' => '256', |
| 1160 |
'UA' => '380', |
| 1161 |
'AE' => '941', |
| 1162 |
'GB' => '44', |
| 1163 |
'US' => '1', |
| 1164 |
'UY' => '598', |
| 1165 |
'VE' => '58', |
| 1166 |
'VN' => '84', |
| 1167 |
'ZW' => '263', |
| 1168 |
'NA' => '264', |
| 1169 |
'OO' => '1', |
| 1170 |
); |
| 1171 |
|
| 1172 |
/** |
| 1173 |
* Global usces_settings - country_code |
| 1174 |
* key(Country codes alpha-2) => numeric |
| 1175 |
* ISO 3166-1 国名コード |
| 1176 |
* |
| 1177 |
* @var array |
| 1178 |
*/ |
| 1179 |
$usces_settings['country_code'] = array( |
| 1180 |
'DZ' => '012', |
| 1181 |
'AR' => '032', |
| 1182 |
'AU' => '036', |
| 1183 |
'AT' => '040', |
| 1184 |
'AZ' => '031', |
| 1185 |
'BH' => '048', |
| 1186 |
'BB' => '052', |
| 1187 |
'BD' => '050', |
| 1188 |
'BY' => '112', |
| 1189 |
'BE' => '056', |
| 1190 |
'BT' => '064', |
| 1191 |
'BN' => '096', |
| 1192 |
'BR' => '076', |
| 1193 |
'BG' => '100', |
| 1194 |
'BW' => '072', |
| 1195 |
'KH' => '116', |
| 1196 |
'CA' => '124', |
| 1197 |
'CL' => '152', |
| 1198 |
'CN' => '156', |
| 1199 |
'CO' => '170', |
| 1200 |
'CR' => '188', |
| 1201 |
'CI' => '384', |
| 1202 |
'HR' => '191', |
| 1203 |
'CU' => '192', |
| 1204 |
'CY' => '196', |
| 1205 |
'CZ' => '203', |
| 1206 |
'DK' => '208', |
| 1207 |
'DJ' => '262', |
| 1208 |
'DO' => '214', |
| 1209 |
'SV' => '222', |
| 1210 |
'EE' => '233', |
| 1211 |
'ET' => '231', |
| 1212 |
'FI' => '246', |
| 1213 |
'EC' => '218', |
| 1214 |
'EG' => '818', |
| 1215 |
'FJ' => '242', |
| 1216 |
'FR' => '250', |
| 1217 |
'GA' => '266', |
| 1218 |
'DE' => '276', |
| 1219 |
'GH' => '288', |
| 1220 |
'GR' => '300', |
| 1221 |
'GT' => '320', |
| 1222 |
'HN' => '340', |
| 1223 |
'HK' => '344', |
| 1224 |
'HU' => '348', |
| 1225 |
'IS' => '352', |
| 1226 |
'IN' => '356', |
| 1227 |
'ID' => '360', |
| 1228 |
'IE' => '372', |
| 1229 |
'IQ' => '368', |
| 1230 |
'IR' => '364', |
| 1231 |
'IL' => '376', |
| 1232 |
'IT' => '380', |
| 1233 |
'JP' => '392', |
| 1234 |
'JM' => '388', |
| 1235 |
'JO' => '400', |
| 1236 |
'KE' => '404', |
| 1237 |
'KW' => '414', |
| 1238 |
'KZ' => '398', |
| 1239 |
'LV' => '428', |
| 1240 |
'LI' => '438', |
| 1241 |
'LA' => '418', |
| 1242 |
'LT' => '440', |
| 1243 |
'LU' => '442', |
| 1244 |
'MO' => '446', |
| 1245 |
'MK' => '807', |
| 1246 |
'MG' => '450', |
| 1247 |
'MY' => '458', |
| 1248 |
'MT' => '470', |
| 1249 |
'MU' => '480', |
| 1250 |
'MX' => '484', |
| 1251 |
'MV' => '462', |
| 1252 |
'MC' => '492', |
| 1253 |
'MN' => '496', |
| 1254 |
'MA' => '504', |
| 1255 |
'MM' => '104', |
| 1256 |
'NL' => '528', |
| 1257 |
'NP' => '524', |
| 1258 |
'NZ' => '554', |
| 1259 |
'NG' => '566', |
| 1260 |
'NO' => '578', |
| 1261 |
'NC' => '540', |
| 1262 |
'OM' => '512', |
| 1263 |
'PA' => '591', |
| 1264 |
'PK' => '586', |
| 1265 |
'PG' => '598', |
| 1266 |
'PY' => '600', |
| 1267 |
'PE' => '604', |
| 1268 |
'PH' => '608', |
| 1269 |
'PL' => '616', |
| 1270 |
'PT' => '620', |
| 1271 |
'PR' => '630', |
| 1272 |
'QA' => '634', |
| 1273 |
'RO' => '642', |
| 1274 |
'RU' => '643', |
| 1275 |
'RW' => '646', |
| 1276 |
'SA' => '682', |
| 1277 |
'SN' => '686', |
| 1278 |
'RS' => '688', |
| 1279 |
'SG' => '702', |
| 1280 |
'SK' => '703', |
| 1281 |
'SI' => '705', |
| 1282 |
'SB' => '090', |
| 1283 |
'ZA' => '710', |
| 1284 |
'KR' => '410', |
| 1285 |
'SS' => '728', |
| 1286 |
'ES' => '724', |
| 1287 |
'LK' => '144', |
| 1288 |
'SD' => '736', |
| 1289 |
'SY' => '760', |
| 1290 |
'SE' => '752', |
| 1291 |
'CH' => '756', |
| 1292 |
'TW' => '158', |
| 1293 |
'TZ' => '834', |
| 1294 |
'TH' => '764', |
| 1295 |
'TG' => '768', |
| 1296 |
'TT' => '780', |
| 1297 |
'TN' => '788', |
| 1298 |
'TR' => '792', |
| 1299 |
'UG' => '800', |
| 1300 |
'UA' => '804', |
| 1301 |
'AE' => '784', |
| 1302 |
'GB' => '826', |
| 1303 |
'US' => '840', |
| 1304 |
'UY' => '858', |
| 1305 |
'VE' => '862', |
| 1306 |
'VN' => '704', |
| 1307 |
'ZW' => '716', |
| 1308 |
'NA' => '516', |
| 1309 |
'OO' => '000', |
| 1310 |
); |
| 1311 |
|
| 1312 |
/** |
| 1313 |
* Global usces_settings - lungage2country |
| 1314 |
* key(Locale) => Country codes alpha-2 |
| 1315 |
* |
| 1316 |
* @var array |
| 1317 |
*/ |
| 1318 |
$usces_settings['lungage2country'] = array( |
| 1319 |
'ar_DZ' => 'DZ', |
| 1320 |
'es_AR' => 'AR', |
| 1321 |
'en_AU' => 'AU', |
| 1322 |
'de_AT' => 'AT', |
| 1323 |
'az' => 'AZ', |
| 1324 |
'ar_BH' => 'BH', |
| 1325 |
'en_BB' => 'BB', |
| 1326 |
'bn' => 'BD', |
| 1327 |
'be' => 'BY', |
| 1328 |
'nl_BE' => 'BE', |
| 1329 |
'fr_BE' => 'BE', |
| 1330 |
'dz' => 'BT', |
| 1331 |
'en_BW' => 'BW', |
| 1332 |
'tn_BW' => 'BW', |
| 1333 |
'ms_BN' => 'BN', |
| 1334 |
'pt_BR' => 'BR', |
| 1335 |
'bg' => 'BG', |
| 1336 |
'km' => 'KH', |
| 1337 |
'en_CA' => 'CA', |
| 1338 |
'fr_CA' => 'CA', |
| 1339 |
'es_CL' => 'CL', |
| 1340 |
'zh_CN' => 'CN', |
| 1341 |
'zh' => 'CN', |
| 1342 |
'es_CO' => 'CO', |
| 1343 |
'es_CR' => 'CR', |
| 1344 |
'fr_CI' => 'CI', |
| 1345 |
'hr' => 'HR', |
| 1346 |
'es_CU' => 'CU', |
| 1347 |
'el_CY' => 'CY', |
| 1348 |
'tr_CY' => 'CY', |
| 1349 |
'cs_CZ' => 'CZ', |
| 1350 |
'cs' => 'CZ', |
| 1351 |
'da' => 'DK', |
| 1352 |
'da_DK' => 'DK', |
| 1353 |
'fr_DJ' => 'DJ', |
| 1354 |
'ar_DJ' => 'DJ', |
| 1355 |
'es_DO' => 'DO', |
| 1356 |
'fi_FI' => 'FI', |
| 1357 |
'fi' => 'FI', |
| 1358 |
'es_EC' => 'EC', |
| 1359 |
'ar_EG' => 'EG', |
| 1360 |
'es_SV' => 'SV', |
| 1361 |
'et' => 'EE', |
| 1362 |
'am_ET' => 'ET', |
| 1363 |
'sv_FI' => 'FI', |
| 1364 |
'en_FJ' => 'FJ', |
| 1365 |
'fr' => 'FR', |
| 1366 |
'fr_FR' => 'FR', |
| 1367 |
'fr_GA' => 'GA', |
| 1368 |
'de' => 'DE', |
| 1369 |
'de_DE' => 'DE', |
| 1370 |
'en_GH' => 'GH', |
| 1371 |
'el' => 'GR', |
| 1372 |
'el_GR' => 'GR', |
| 1373 |
'es_GT' => 'GT', |
| 1374 |
'es_HN' => 'HN', |
| 1375 |
'zh_HK' => 'HK', |
| 1376 |
'en_HK' => 'HK', |
| 1377 |
'hu_HU' => 'HU', |
| 1378 |
'hu' => 'HU', |
| 1379 |
'is' => 'IS', |
| 1380 |
'hi' => 'IN', |
| 1381 |
'hi_IN' => 'IN', |
| 1382 |
'id' => 'ID', |
| 1383 |
'id_ID' => 'ID', |
| 1384 |
'ga' => 'IE', |
| 1385 |
'ga_IE' => 'IE', |
| 1386 |
'en_IE' => 'IE', |
| 1387 |
'ar_IQ' => 'IQ', |
| 1388 |
'fa_IR' => 'IR', |
| 1389 |
'he_IL' => 'IL', |
| 1390 |
'ar_IL' => 'IL', |
| 1391 |
'it' => 'IT', |
| 1392 |
'it_IT' => 'IT', |
| 1393 |
'ja' => 'JP', |
| 1394 |
'ja_JP' => 'JP', |
| 1395 |
'en_JM' => 'JM', |
| 1396 |
'ar_JO' => 'JO', |
| 1397 |
'en_KE' => 'KE', |
| 1398 |
'sw_KE' => 'KE', |
| 1399 |
'ar_KW' => 'KW', |
| 1400 |
'kk' => 'KZ', |
| 1401 |
'lv' => 'LV', |
| 1402 |
'de_LI' => 'LI', |
| 1403 |
'lo' => 'LA', |
| 1404 |
'lt' => 'LT', |
| 1405 |
'fr_LU' => 'LU', |
| 1406 |
'de_LU' => 'LU', |
| 1407 |
'lb' => 'LU', |
| 1408 |
'zh_MO' => 'MO', |
| 1409 |
'pt_MO' => 'MO', |
| 1410 |
'mk' => 'MK', |
| 1411 |
'mg' => 'MG', |
| 1412 |
'fr_MG' => 'MG', |
| 1413 |
'ms' => 'MY', |
| 1414 |
'ms_MY' => 'MY', |
| 1415 |
'mt' => 'MT', |
| 1416 |
'en_MT' => 'MT', |
| 1417 |
'fr_MU' => 'MU', |
| 1418 |
'en_MU' => 'MU', |
| 1419 |
'es_MX' => 'MX', |
| 1420 |
'dv' => 'MV', |
| 1421 |
'fr_MC' => 'MC', |
| 1422 |
'mn' => 'MN', |
| 1423 |
'ar_MA' => 'MA', |
| 1424 |
'my_MM' => 'MM', |
| 1425 |
'nl' => 'NL', |
| 1426 |
'nl_NL' => 'NL', |
| 1427 |
'ne_NP' => 'NP', |
| 1428 |
'en_NZ' => 'NZ', |
| 1429 |
'mi_NZ' => 'NZ', |
| 1430 |
'mi' => 'NZ', |
| 1431 |
'en_NG' => 'NG', |
| 1432 |
'no' => 'NO', |
| 1433 |
'no_NO' => 'NO', |
| 1434 |
'fr_NC' => 'NC', |
| 1435 |
'ar_OM' => 'OM', |
| 1436 |
'es_PA' => 'PA', |
| 1437 |
'ur' => 'PK', |
| 1438 |
'en_PG' => 'PG', |
| 1439 |
'es_PY' => 'PY', |
| 1440 |
'gn' => 'PY', |
| 1441 |
'es_PE' => 'PE', |
| 1442 |
'tl' => 'PH', |
| 1443 |
'tl_PH' => 'PH', |
| 1444 |
'en_PH' => 'PH', |
| 1445 |
'pl' => 'PL', |
| 1446 |
'pl_PL' => 'PL', |
| 1447 |
'pt' => 'PT', |
| 1448 |
'pt_PT' => 'PT', |
| 1449 |
'es_PR' => 'PR', |
| 1450 |
'en_PR' => 'PR', |
| 1451 |
'ar_QA' => 'QA', |
| 1452 |
'ro' => 'RO', |
| 1453 |
'ro_RO' => 'RO', |
| 1454 |
'ru' => 'RU', |
| 1455 |
'ar_SA' => 'SA', |
| 1456 |
'fr_SN' => 'SN', |
| 1457 |
'sr_RS' => 'RS', |
| 1458 |
'ru_RU' => 'RU', |
| 1459 |
'rw' => 'RW', |
| 1460 |
'fr_RW' => 'RW', |
| 1461 |
'en_RW' => 'RW', |
| 1462 |
'en_SG' => 'SG', |
| 1463 |
'ms_SG' => 'SG', |
| 1464 |
'zh_SG' => 'SG', |
| 1465 |
'sk' => 'SK', |
| 1466 |
'sl' => 'SI', |
| 1467 |
'en_SB' => 'SB', |
| 1468 |
'af_ZA' => 'ZA', |
| 1469 |
'en_ZA' => 'ZA', |
| 1470 |
'ko' => 'KR', |
| 1471 |
'ko_KR' => 'KR', |
| 1472 |
'en_SS' => 'SS', |
| 1473 |
'es' => 'ES', |
| 1474 |
'es_ES' => 'ES', |
| 1475 |
'si' => 'LK', |
| 1476 |
'ar_SD' => 'SD', |
| 1477 |
'en_SD' => 'SD', |
| 1478 |
'ar_SY' => 'SY', |
| 1479 |
'sv' => 'SE', |
| 1480 |
'sv_SE' => 'SE', |
| 1481 |
'de_CH' => 'CH', |
| 1482 |
'fr_CH' => 'CH', |
| 1483 |
'it_CH' => 'CH', |
| 1484 |
'rm_CH' => 'CH', |
| 1485 |
'rm' => 'CH', |
| 1486 |
'zh_TW' => 'TW', |
| 1487 |
'en_TZ' => 'TZ', |
| 1488 |
'sw_TZ' => 'TZ', |
| 1489 |
'th' => 'TH', |
| 1490 |
'th_TH' => 'TH', |
| 1491 |
'fr_TG' => 'TG', |
| 1492 |
'en_TT' => 'TT', |
| 1493 |
'ar_TN' => 'TN', |
| 1494 |
'tr' => 'TR', |
| 1495 |
'tr_TR' => 'TR', |
| 1496 |
'en_UG' => 'UG', |
| 1497 |
'sw_UG' => 'UG', |
| 1498 |
'uk' => 'UA', |
| 1499 |
'ar' => 'AE', |
| 1500 |
'ar_AE' => 'AE', |
| 1501 |
'en' => 'GB', |
| 1502 |
'en_GB' => 'GB', |
| 1503 |
'' => 'US', |
| 1504 |
'en_US' => 'US', |
| 1505 |
'es_UY' => 'UY', |
| 1506 |
'es_VE' => 'VE', |
| 1507 |
'vi' => 'VN', |
| 1508 |
'vi_VN' => 'VN', |
| 1509 |
'en_ZW' => 'ZW', |
| 1510 |
'na' => 'NA', |
| 1511 |
); |
| 1512 |
|
| 1513 |
/** |
| 1514 |
* Global usces_states - JP |
| 1515 |
* 販売対象国 - JP |
| 1516 |
* 都道府県 |
| 1517 |
* |
| 1518 |
* @var array |
| 1519 |
*/ |
| 1520 |
$usces_states['JP'] = array( |
| 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 |
'沖縄県', |
| 1571 |
); |
| 1572 |
|
| 1573 |
/** |
| 1574 |
* Global usces_states - US |
| 1575 |
* 販売対象国 - US |
| 1576 |
* 州 |
| 1577 |
* |
| 1578 |
* @var array |
| 1579 |
*/ |
| 1580 |
$usces_states['US'] = array( |
| 1581 |
'-- Select --', |
| 1582 |
'Alabama', |
| 1583 |
'Alaska', |
| 1584 |
'Arizona', |
| 1585 |
'Arkansas', |
| 1586 |
'California', |
| 1587 |
'Colorado', |
| 1588 |
'Connecticut', |
| 1589 |
'Delaware', |
| 1590 |
'District of Columbia', |
| 1591 |
'Florida', |
| 1592 |
'Georgia', |
| 1593 |
'Hawaii', |
| 1594 |
'Idaho', |
| 1595 |
'Illinois', |
| 1596 |
'Indiana', |
| 1597 |
'Iowa', |
| 1598 |
'Kansas', |
| 1599 |
'Kentucky', |
| 1600 |
'Louisiana', |
| 1601 |
'Maine', |
| 1602 |
'Maryland', |
| 1603 |
'Massachusetts', |
| 1604 |
'Michigan', |
| 1605 |
'Minnesota', |
| 1606 |
'Mississippi', |
| 1607 |
'Missouri', |
| 1608 |
'Montana', |
| 1609 |
'Nebraska', |
| 1610 |
'Nevada', |
| 1611 |
'New Hampshire', |
| 1612 |
'New Jersey', |
| 1613 |
'New Mexico', |
| 1614 |
'New York', |
| 1615 |
'North Carolina', |
| 1616 |
'North Dakota', |
| 1617 |
'Ohio', |
| 1618 |
'Oklahoma', |
| 1619 |
'Oregon', |
| 1620 |
'Pennsylvania', |
| 1621 |
'Rhode Island', |
| 1622 |
'South Carolina', |
| 1623 |
'South Dakota', |
| 1624 |
'Tennessee', |
| 1625 |
'Texas', |
| 1626 |
'Utah', |
| 1627 |
'Vermont', |
| 1628 |
'Virginia', |
| 1629 |
'Washington', |
| 1630 |
'West Virginia', |
| 1631 |
'Wisconsin', |
| 1632 |
'Wyoming', |
| 1633 |
); |
| 1634 |
|
| 1635 |
if ( ! get_option( 'usces_states' ) ) { |
| 1636 |
update_option( 'usces_states', $usces_states ); |
| 1637 |
} |
| 1638 |
|
| 1639 |
/** |
| 1640 |
* Option - usces_noreceipt_status |
| 1641 |
* � |
| 1642 |
�金ステータスを利用し、� |
| 1643 |
�金通知により「未� |
| 1644 |
�金」「� |
| 1645 |
�金」を切り替える |
| 1646 |
* key(slug) |
| 1647 |
* |
| 1648 |
* @var array |
| 1649 |
*/ |
| 1650 |
$usces_noreceipt_status = get_option( 'usces_noreceipt_status', array() ); |
| 1651 |
if ( empty( $usces_noreceipt_status ) ) { |
| 1652 |
$usces_noreceipt_status = array( |
| 1653 |
'transferAdvance', |
| 1654 |
'transferDeferred', |
| 1655 |
'acting_remise_conv', |
| 1656 |
'acting_zeus_bank', |
| 1657 |
'acting_zeus_conv', |
| 1658 |
'acting_jpayment_conv', |
| 1659 |
'acting_jpayment_bank', |
| 1660 |
'acting_digitalcheck_conv', |
| 1661 |
'acting_mizuho_conv1', |
| 1662 |
'acting_mizuho_conv2', |
| 1663 |
'acting_veritrans_conv', |
| 1664 |
'acting_paygent_conv', |
| 1665 |
); |
| 1666 |
update_option( 'usces_noreceipt_status', $usces_noreceipt_status ); |
| 1667 |
} |
| 1668 |
|
| 1669 |
if ( ! get_option( 'usces_wcid' ) ) { |
| 1670 |
update_option( 'usces_wcid', md5( uniqid( wp_rand(), 1 ) ) ); |
| 1671 |
} |
| 1672 |
|