佐野屋よろず帳

横浜市の米屋が適当な事書いてます

*

アカウント作成時の必須項目の変更

   

ZEN-CARTのアカウント作成時or変更時の入力必須項目で性別や氏名のカナ入力を無くす変更場所。

/public_html/includes/templates/template_default/templates/tpl_account_edit_default.php
/public_html/includes/templates/template_default/templates/tpl_modules_address_book_details.php
/public_html/includes/templates/template_default/templates/tpl_modules_create_account.php
とりあえずこの3箇所で、それぞれ

性別のチェックボックス

<?php
if (ACCOUNT_GENDER == ‘true’) {
?>
<?php echo zen_draw_radio_field(’gender’, ‘m’, ”, ‘id=”gender-male”‘)
. ‘<label class=”radioButtonLabel” for=”gender-male”>’ . MALE .
‘</label>’ . zen_draw_radio_field(’gender’, ‘f’, ”,
‘id=”gender-female”‘) . ‘<label class=”radioButtonLabel”
for=”gender-female”>’ . FEMALE . ‘</label>’ .
(zen_not_null(ENTRY_GENDER_TEXT) ? ‘<span class=”alert”>’ .
ENTRY_GENDER_TEXT . ‘</span>’: ”); ?>
<br class=”clearBoth” />
<?php
}
?>

ファーストネームのカナ

<?php if (FURIKANA_NESESSARY) { ?>
<label class=”inputLabel” for=”firstname_kana” ><?php echo
ENTRY_FIRST_NAME_KANA; ?></label>
<?php echo zen_draw_input_field(’firstname_kana’, ”,
zen_set_field_length(TABLE_CUSTOMERS, ‘customers_firstname_kana’, ‘40′) .
‘ id=”firstname_kana”‘) . (zen_not_null(ENTRY_FIRST_NAME_KANA_TEXT) ?
‘<span class=”alert”>’ . ENTRY_FIRST_NAME_KANA_TEXT .
‘</span>’: ”); ?>
<br class=”clearBoth” />
<?php } ?>

ラストネームのカナ

<?php if (FURIKANA_NESESSARY) { ?>
<label class=”inputLabel” for=”lastname_kana” ><?php echo
ENTRY_LAST_NAME_KANA; ?></label>
<?php echo zen_draw_input_field(’lastname_kana’, ”,
zen_set_field_length(TABLE_CUSTOMERS, ‘customers_lastname_kana’, ‘40′) .
‘ id=”lastname_kana”‘) . (zen_not_null(ENTRY_LAST_NAME_KANA_TEXT) ?
‘<span class=”alert”>’ . ENTRY_LAST_NAME_KANA_TEXT .
‘</span>’: ”); ?>
<br class=”clearBoth” />
<?php } ?>

国の選択

<label class=”inputLabel” for=”country”><?php
echo ENTRY_COUNTRY; ?></label>
<?php
$selected_country = ($_POST[’country’]) ? $country :
SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
?>
<?php echo zen_get_country_list(’country’, $selected_country,
‘id=”country”‘) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? ‘<span
class=”alert”>’ . ENTRY_COUNTRY_TEXT . ‘</span>’: ”); ?>
<br class=”clearBoth” />

上記部分を削除又はコメントアウトする

 - web制作 ,

ad

ad

Message

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

  関連記事