フォーム
/data/Smarty/templates/default/frontparts/form_personal_input.tpl
確認画面
/data/Smarty/templates/default/entry/confirm.tpl
登録処理、Myページでの変更画面、入力チェック
/data/class/helper/SC_Helper_Customer.php
function sfCustomerEntryParam の後半で UPDATA で追加フィールドを登録する。
function sfCustomerEntryParam (&$objFormParam, $isAdmin = false) { SC_Helper_Customer_Ex::sfCustomerCommonParam($objFormParam); SC_Helper_Customer_Ex::sfCustomerRegisterParam($objFormParam, $isAdmin); if($isAdmin) { $objFormParam->addParam("顧客ID", "customer_id", INT_LEN, 'n', array("NUM_CHECK")); $objFormParam->addParam('携帯メールアドレス', "email_mobile", MTEXT_LEN, 'a', array("NO_SPTAB", "EMAIL_CHECK", "SPTAB_CHECK" ,"EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK", "MOBILE_EMAIL_CHECK")); $objFormParam->addParam("会員状態", 'status', INT_LEN, 'n', array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK")); $objFormParam->addParam("SHOP用メモ", 'note', LTEXT_LEN, 'KVa', array("MAX_LENGTH_CHECK")); $objFormParam->addParam("所持ポイント", 'point', INT_LEN, 'n', array("NUM_CHECK")); // 項目追加 // office_or office_name_kana office_name office_url office_gyousyu office_post0 office_post1 office_post2 // mobile01 mobile02 mobile03 questionnaire0 questionnaire1 $objFormParam->addParam("会社名", 'office_or', INT_LEN, 'n', array()); $objFormParam->addParam("会社名", 'office_name', LTEXT_LEN, 'n', array()); $objFormParam->addParam("会社名カナ", 'office_name_kana', LTEXT_LEN, 'n', array()); $objFormParam->addParam("会社URL", 'office_url', LTEXT_LEN, 'n', array()); $objFormParam->addParam("業種", 'office_gyousyu', LTEXT_LEN, 'n', array()); $objFormParam->addParam("役職", 'office_post0', LTEXT_LEN, 'n', array()); $objFormParam->addParam("部署1", 'office_post1', LTEXT_LEN, 'n', array()); $objFormParam->addParam("部署2", 'office_post2', LTEXT_LEN, 'n', array()); $objFormParam->addParam("携帯メール1", 'mobile01', LTEXT_LEN, 'n', array()); $objFormParam->addParam("携帯メール2", 'mobile02', LTEXT_LEN, 'n', array()); $objFormParam->addParam("携帯メール3", 'mobile03', LTEXT_LEN, 'n', array()); $objFormParam->addParam("質問1", 'questionnaire0', LTEXT_LEN, 'n', array()); $objFormParam->addParam("質問2", 'questionnaire1', LTEXT_LEN, 'n', array()); } }
表示に反映されない時は「SC_CustomerList.php」への追記を忘れているかも?