ロゴステッカー

期限切れオークション

レンジャーロゴステッカー

アイテムの状態: 新品

オークションの期限が切れました(入札なし)

商品コード: 1 カテゴリー:

レンジャーロゴステッカー

‘first’, ‘label’ => ‘姓’, ‘ex’ => ”, ‘name’ => ‘billing_last_name’, ‘req’ => true, ‘type’ => ‘text’, ‘err’ => ” ),
array( ‘layout’ => ‘last’, ‘label’ => ‘名’, ‘ex’ => ”, ‘name’ => ‘billing_first_name’, ‘req’ => true, ‘type’ => ‘text’, ‘err’ => ” ),
array( ‘layout’ => ‘first’, ‘label’ => ‘姓(ヨミガナ)’, ‘ex’ => ”, ‘name’ => ‘billing_yomigana_last_name’, ‘req’ => true, ‘type’ => ‘text’, ‘err’ => ” ),
array( ‘layout’ => ‘last’, ‘label’ => ‘名(ヨミガナ)’, ‘ex’ => ”, ‘name’ => ‘billing_yomigana_first_name’, ‘req’ => true, ‘type’ => ‘text’, ‘err’ => ” ),
array( ‘layout’ => ‘first’, ‘label’ => ‘郵便番号’, ‘ex’ => ‘(例:123-4567)’, ‘name’ => ‘billing_postcode’, ‘req’ => true, ‘type’ => ‘text’, ‘err’ => ” ),
array( ‘layout’ => ‘last’, ‘label’ => ‘都道府県’, ‘ex’ => ”, ‘name’ => ‘billing_state’, ‘req’ => true, ‘type’ => ‘select’, ‘err’ => ‘未選択’ ),
array( ‘layout’ => ‘wide’, ‘label’ => ‘市区町村’, ‘ex’ => ”, ‘name’ => ‘billing_city’, ‘req’ => true, ‘type’ => ‘text’, ‘err’ => ” ),
array( ‘layout’ => ‘wide’, ‘label’ => ‘住所詳細’, ‘ex’ => ”, ‘name’ => ‘billing_address_1’, ‘req’ => true, ‘type’ => ‘text’, ‘err’ => ” ),
array( ‘layout’ => ‘wide’, ‘label’ => ”, ‘ex’ => ”, ‘name’ => ‘billing_address_2’, ‘req’ => false, ‘type’ => ‘text’, ‘err’ => ” ),
array( ‘layout’ => ‘first’, ‘label’ => ‘電話番号’, ‘ex’ => ”, ‘name’ => ‘billing_phone’, ‘req’ => true, ‘type’ => ‘text’, ‘err’ => ” )
);

/*=====================================

会員登録ページに入力フォーム追加

======================================*/
add_action( ‘woocommerce_register_form_start’, ‘cs_wc_extra_register_fields’ );

function cs_wc_extra_register_fields() {

global $register_form_arr;
$country_code = ‘JP’;
$states = WC()->countries->get_states( $country_code );
?>

“> *‘ ?>

” id=”reg_” class=”state_select ” data-placeholder=””> $state_name ) {
echo ‘‘;
}
?>

add( $item[‘name’].’_error’, $item[‘label’].’が’.$err_mess );
} else {
if( in_array( $item[‘name’], array( ‘billing_yomigana_last_name’, ‘billing_yomigana_first_name’ ) ) ) {
if( ! preg_match( “/^[ァ-ヾ]+$/u”, $post_item_name ) ) {
$validation_errors->add( $item[‘name’].’_error’, $item[‘label’].’はすべて全角カタカナで入力してください’ );
}
}
}
}
}

}

/*=====================================

入力項目をユーザー情報に登録

======================================*/
add_action( ‘woocommerce_created_customer’, ‘cs_wc_save_extra_register_fields’ );

function cs_wc_save_extra_register_fields( $customer_id ) {
global $register_form_arr;

if ( isset( $_POST[‘billing_country’] ) ) {
update_user_meta( $customer_id, ‘billing_country’, sanitize_text_field( $_POST[‘billing_country’] ) );
}

if ( isset( $_POST[‘billing_first_name’] ) ) {
update_user_meta( $customer_id, ‘first_name’, sanitize_text_field( $_POST[‘billing_first_name’] ) );
}

if ( isset( $_POST[‘billing_last_name’] ) ) {
update_user_meta( $customer_id, ‘last_name’, sanitize_text_field( $_POST[‘billing_last_name’] ) );
}

if( isset( $_POST[‘billing_first_name’] ) || isset( $_POST[‘billing_last_name’] ) ) {
update_user_meta( $customer_id, ‘display_name’, sanitize_text_field( $_POST[‘billing_last_name’] ).’ ‘.sanitize_text_field( $_POST[‘billing_first_name’] ) );
update_user_meta( $customer_id, ‘nickname’, sanitize_text_field( $_POST[‘billing_last_name’] ).’ ‘.sanitize_text_field( $_POST[‘billing_first_name’] ) );
}

foreach( $register_form_arr as $item ) {

$post_item_name = $_POST[ $item[‘name’] ];

if( in_array( $item[‘name’], array( ‘billing_yomigana_last_name’, ‘billing_yomigana_first_name’ ) ) ) {
$post_item_name = mb_convert_kana( $post_item_name, ‘C’ );
$post_item_name = mb_convert_kana( $post_item_name, ‘K’ );
} elseif( $item[‘name’] == ‘billing_postcode’ ) {
$post_item_name = add_hyphen_to_the_postal_code( $post_item_name );
}
update_user_meta( $customer_id, $item[‘name’], sanitize_text_field( $post_item_name ) );
}

$post_shipping_postcode = $_POST[‘shipping_postcode’];
update_user_meta( $customer_id, ‘shipping_postcode’, sanitize_text_field( $post_shipping_postcode ) );

}

?>

合計入札価格:

オークションは期限切れです

オークションの期限が切れました(入札なし)
オークションが開始されています 2021年10月28日 11:34 AM