タグ別アーカイブ: 法人名

EC CUBE 法人名(店舗名)を登録欄に追加するカスタマイズ

変更するファイル
/data/Smarty/templates/default/shopping/nonmember_input.tpl

非会員の登録画面

元データ

        <tr>
          <th>お名前(フリガナ)<span class="redball">●</span></th>
          <td>
            <!--{assign var=key1 value="order_kana01"}-->
            <!--{assign var=key2 value="order_kana02"}-->
            <span class="attention"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
            セイ&nbsp;<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="15" class="box120" />&nbsp;
            メイ&nbsp;<input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="15" class="box120" />
          </td>
        </tr>
        <tr>
        <tr>
          <th>お名前(フリガナ)<span class="redball">●</span></th>
          <td>
            <!--{assign var=key1 value="deliv_kana01"}-->
            <!--{assign var=key2 value="deliv_kana02"}-->
            <span class="attention"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></span>
            セイ&nbsp;<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="15" class="box120" />&nbsp;
            メイ&nbsp;<input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="15" class="box120" />
          </td>
        </tr>

修正後データ

        <tr>
          <th>貴社名(フリガナ)</th>
          <td>
            <!--{assign var=key1 value="order_kana01"}-->
            <!--{assign var=key2 value="order_kana02"}-->
            会社名(店舗名)例:株式会社○○<br /><input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="33" class="box320" /><br />
            フリガナ 例:カブシキガイシャマルマル ●半角・スペース不可<br /><input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="33" class="box320" />
          </td>
        </tr>
        <tr>
          <th>貴社名(フリガナ)</th>
          <td>
            <!--{assign var=key1 value="deliv_kana01"}-->
            <!--{assign var=key2 value="deliv_kana02"}-->
           会社名(店舗名)例:株式会社○○<br /><input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="33" class="box320" /><br />
           フリガナ 例:カブシキガイシャマルマル ●半角・スペース不可<br /><input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="33" class="box320" />
          </td>
        </tr>

非会員の登録データチェック

変更するファイル
/data/class/pages/shopping/LC_Page_Shopping.php

元データ

        $this->objFormParam->addParam("フリガナ(セイ)", "order_kana01", STEXT_LEN, "KVCa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
        $this->objFormParam->addParam("フリガナ(メイ)", "order_kana02", STEXT_LEN, "KVCa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));
        $this->objFormParam->addParam("フリガナ(セイ)", "deliv_kana01", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
        $this->objFormParam->addParam("フリガナ(メイ)", "deliv_kana02", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
            $objErr->doFunc(array("フリガナ(セイ)", "deliv_kana01"), array("EXIST_CHECK"));
            $objErr->doFunc(array("フリガナ(メイ)", "deliv_kana02"), array("EXIST_CHECK"));

修正データ

        $this->objFormParam->addParam("貴社名(店舗名)", "order_kana01", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK"));
        $this->objFormParam->addParam("貴社名(フリガナ)", "order_kana02", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
        $this->objFormParam->addParam("貴社名(店舗名)", "deliv_kana01", STEXT_LEN, "KVa", array("MAX_LENGTH_CHECK"));
        $this->objFormParam->addParam("貴社名(フリガナ)", "deliv_kana02", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK"));
//            $objErr->doFunc(array("貴社名(店舗名)", "deliv_kana01"), array("EXIST_CHECK"));
//            $objErr->doFunc(array("貴社名(フリガナ)", "deliv_kana02"), array("EXIST_CHECK"));

注文確認画面

変更するファイル
/www/packageplaza.jp/data/Smarty/templates/default/shopping/confirm.tpl
元データ

        <tr>
          <th>お名前(フリガナ)</th>
          <td><!--{$arrData.deliv_kana01|escape}--> <!--{$arrData.deliv_kana02|escape}--></td>
        </tr>
        <tr>
          <th>お名前(フリガナ)</th>
          <td><!--{$arrData.deliv_kana01|escape}--> <!--{$arrData.deliv_kana02|escape}--></td>
        </tr>

修正データ

        <tr>
          <th>貴社名(フリガナ)</th>
          <td><!--{$arrData.deliv_kana01|escape|default:"未登録"}--><br />(<!--{$arrData.deliv_kana02|escape|default:"ミトウロク"}-->)</td>
        </tr>
        <tr>
          <th>貴社名(フリガナ)</th>
          <td><!--{$arrData.order_kana01|escape|default:"未登録"}--><br />(<!--{$arrData.order_kana02|escape|default:"ミトウロク"}-->)</td>
        </tr>

会員登録部分

変更するファイル
/data/Smarty/templates/default/frontparts/form_personal_input.tpl

元データ

<tr>
  <th>お名前(フリガナ)<span class="redball">●</span></th>
  <td>
    <!--{assign var=key1 value="`$prefix`kana01"}-->
    <!--{assign var=key2 value="`$prefix`kana02"}-->
    <!--{if $arrErr[$key1] || $arrErr[$key2]}-->
    <div class="attention"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></div>
    <!--{/if}-->
    セイ&nbsp;<input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1]|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->; ime-mode: active;" size="15" class="box120" />&nbsp;
    メイ&nbsp;<input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2]|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->; ime-mode: active;" size="15" class="box120" />
  </td>
</tr>

修正データ

<tr>
  <th>貴社名(フリガナ)</th>
  <td>
    <!--{assign var=key1 value="`$prefix`kana01"}-->
    <!--{assign var=key2 value="`$prefix`kana02"}-->
    <!--{if $arrErr[$key1] || $arrErr[$key2]}-->
    <div class="attention"><!--{$arrErr[$key1]}--><!--{$arrErr[$key2]}--></div>
    <!--{/if}-->
    会社名(店舗名)例:株式会社○○<br /><input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1]|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->; ime-mode: active;" size="38" class="box320" /><br />
    フリガナ 例:カブシキガイシャマルマル ●半角・スペース不可<br /><input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2]|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->; ime-mode: active;" size="38" class="box320" />
  </td>
</tr>

会員登録部分データチェック

変更するファイル
/data/class/pages/entry/LC_Page_Entry.php

元データ

                                     array(  "column" => "name01", "convert" => "aKV" ),
                                     array(  "column" => "name02", "convert" => "aKV" ),
                                     array(  "column" => "kana01", "convert" => "CKV" ),
                                     array(  "column" => "kana02", "convert" => "CKV" ),
                                 array(  "column" => "name01", "convert" => "aKV" ),
                                 array(  "column" => "name02", "convert" => "aKV" ),
                                 array(  "column" => "kana01", "convert" => "CKV" ),
                                 array(  "column" => "kana02", "convert" => "CKV" ),
        $objErr->doFunc(array("フリガナ(セイ)", 'kana01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
        $objErr->doFunc(array("フリガナ(メイ)", 'kana02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
        $objErr->doFunc(array("お名前(カナ/姓)", 'kana01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
        $objErr->doFunc(array("お名前(カナ/名)", 'kana02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));

修正データ

                                     array(  "column" => "name01", "convert" => "aKV" ),
                                     array(  "column" => "name02", "convert" => "aKV" ),
                                     array(  "column" => "kana01", "convert" => "aKV" ),
                                     array(  "column" => "kana02", "convert" => "CKV" ),
                                 array(  "column" => "name01", "convert" => "aKV" ),
                                 array(  "column" => "name02", "convert" => "aKV" ),
                                 array(  "column" => "kana01", "convert" => "aKV" ),
                                 array(  "column" => "kana02", "convert" => "CKV" ),
        $objErr->doFunc(array("貴社名(店舗名)", 'kana01', STEXT_LEN), array("SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
        $objErr->doFunc(array("貴社名(フリガナ)", 'kana02', STEXT_LEN), array("SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
        $objErr->doFunc(array("貴社名(店舗名)", 'kana01', STEXT_LEN), array("SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
        $objErr->doFunc(array("貴社名(フリガナ)", 'kana02', STEXT_LEN), array("SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));

会員情報確認画面

変更するファイル
/data/Smarty/templates/default/entry/confirm.tpl

元データ

        <tr>
          <th>お名前(フリガナ)<span class="redball">●</span></th>
          <td>
            <!--{$list_data.kana01|escape}-->&nbsp;
            <!--{$list_data.kana02|escape}-->
          </td>
        </tr>

修正データ

        <tr>
          <th>貴社名(フリガナ)</th>
          <td>
            <!--{$list_data.kana01|escape|default:"未登録"}--><br />
            (<!--{$list_data.kana02|escape|default:"ミトウロク"}-->)
          </td>
        </tr>

記事の評価

同じカテゴリーの記事