1. マニュアル

【外部のEFOサービス等ご契約中の方向け】メールマガジンの「お得な情報を受け取る」を仕様前の状態に戻す方法

外部のEFOサービス等ご契約中の方へ

(1)メールマガジンの「お得な情報を受け取る」をpr_default上では非チェック状態をデフォルトに。


(2)フロント側(/entry/index.php)の仕様をラジオボタンではなく、チェックボックスに変更。


上記の仕様変更が行われたため、2025年5月27日以降のpr_defaultをコピーしてユーザーテンプレートをご使用になる場合は、外部のEFOサービス等をご使用になりますと、正常に稼働しなくなりページの遷移ができなくなります。

仕様前のpr_defaultに戻す必要がありますので、以下に対応方法をご案内します。

(1)◾️変更後



(2)

◾️変更前


◾️変更後


注意 ※今回のご案内は、最新pr_defaultの状態から旧pr_defaultの状態に戻す方法を記載しております。ご注意ください。




テンプレートファイル編集

以下のテンプレートファイルの編集を行ってください。

※編集前には必ずテンプレートファイルをバックアップ取ってから行ってください。

編集するテンプレートファイル

pc/templates/ユーザーテンプレート/entry/index.tpl

pc/templates/ユーザーテンプレート/entry/rnregist.tpl

pc/templates/ユーザーテンプレート/shopping/lp.tpl

smp/templates/ユーザーテンプレート/entry/index.tpl

smp/templates/ユーザーテンプレート/entry/rnregist.tpl

smp/templates/ユーザーテンプレート/shopping/lp.tpl



PCの編集

pc/templates/ユーザーテンプレート/entry/index.tpl
429行目付近~】『元の状態』を削除して『変更後の状態』を追記

元の状態
<div class="c-checkbox <!--{if $arrErr.mailmaga_flg}-->c-checkbox--error<!--{/if}-->">
                    <input type="checkbox" name="mailmaga_flg" id="mailmaga_flg" value="1" <!--{if $mailmaga_flg eq 1}-->checked="checked"<!--{/if}--> />
                    <label for="mailmaga_flg">
                      お得な情報を受け取る
                    </label>
変更後の状態
<div class="c-radio <!--{if $arrErr.mailmaga_flg}-->c-radio--error<!--{/if}-->">
                    <input
                      type="radio"
                      name="mailmaga_flg"
                      id="html"
                      value="1"
                      <!--{if $mailmaga_flg eq 1 || $mailmaga_flg eq ""}-->
                        checked="checked"
                      <!--{/if}-->
                    />
                    <label class="c-form-label" for="html">受け取る</label>
                  </div>
                  <div class="c-radio <!--{if $arrErr.mailmaga_flg}-->c-radio--error<!--{/if}-->">
                    <input
                      type="radio"
                      name="mailmaga_flg"
                      id="no"
                      value="3"
                      <!--{if $mailmaga_flg eq 3}-->
                        checked="checked"
                      <!--{/if}-->
                    />
                    <label class="c-form-label" for="no">受け取らない</label>
pc/templates/ユーザーテンプレート/entry/rnregist.tpl
409行目付近〜】『元の状態』を削除して『変更後の状態』を追記

元の状態
 <div class="c-form-group c-form-group--row">
                  <div class="c-checkbox <!--{if $arrErr.mailmaga_flg}-->c-checkbox--error<!--{/if}-->">
                    <input type="checkbox" name="mailmaga_flg" id="mailmaga_flg" value="1" <!--{if $mailmaga_flg eq 1}-->checked="checked"<!--{/if}--> />
                    <label for="mailmaga_flg">
                      お得な情報を受け取る
                    </label>
変更後の状態
                 <div class="c-form-groups c-form-groups--column">
                  <div class="c-form-group c-form-group--row">
                    <div class="c-radio <!--{if $arrErr.mailmaga_flg}-->c-radio--error<!--{/if}-->">
                      <input
                        type="radio"
                        name="mailmaga_flg"
                        id="text"
                        value="1"
                        <!--{if $mailmaga_flg eq 1 || $mailmaga_flg eq ""}-->
                          checked="checked"
                        <!--{/if}-->
                      />
                      <label class="c-form-label" for="text">受け取る</label>
                    </div>
                  </div>
                  <div class="c-form-group c-form-group--row">
                    <div class="c-radio <!--{if $arrErr.mailmaga_flg}-->c-radio--error<!--{/if}-->">
                      <input
                        type="radio"
                        name="mailmaga_flg"
                        id="no"
                        value="3"
                        <!--{if $mailmaga_flg eq 3}-->
                          checked="checked"
                        <!--{/if}-->
                      />
                      <label class="c-form-label" for="no">受け取らない</label>
                    </div>
pc/templates/ユーザーテンプレート/shopping/lp.tpl
元の状態』を削除して『変更後の状態』を追記

元の状態
891行目付近〜
<input type="checkbox" name="mailmaga_flg" id="mailmaga_flg" value="1" <!--{if $arrForm.mailmaga_flg == 1}-->checked="checked"<!--{/if}--> />
変更後の状態
891行目付近〜
<input type="checkbox" name="mailmaga_flg" id="mailmaga_flg" value="1" <!--{if $arrForm.no_mailmaga_flg != 1}-->checked="checked" <!--{/if}-->/>
894行目付近〜
<input type="hidden" name="no_mailmaga_flg" value="0" id="no_mailmaga_flg" />



スマートフォン編集

smp/templates/ユーザーテンプレート/entry/index.tpl
429行目付近〜】『元の状態』を削除して『変更後の状態』を追記

元の状態
<div class="c-checkbox <!--{if $arrErr.mailmaga_flg}-->c-checkbox--error<!--{/if}-->">
                    <input type="checkbox" name="mailmaga_flg" id="mailmaga_flg" value="1" <!--{if $mailmaga_flg eq 1}-->checked="checked"<!--{/if}--> />
                    <label for="mailmaga_flg">
                      お得な情報を受け取る
                    </label>
変更後の状態
<div class="c-radio <!--{if $arrErr.mailmaga_flg}-->c-radio--error<!--{/if}-->">
                    <input
                      type="radio"
                      name="mailmaga_flg"
                      id="html"
                      value="1"
                      <!--{if $mailmaga_flg eq 1 || $mailmaga_flg eq ""}-->
                        checked="checked"
                      <!--{/if}-->
                    />
                    <label class="c-form-label" for="html">受け取る</label>
                  </div>
                  <div class="c-radio <!--{if $arrErr.mailmaga_flg}-->c-radio--error<!--{/if}-->">
                    <input
                      type="radio"
                      name="mailmaga_flg"
                      id="no"
                      value="3"
                      <!--{if $mailmaga_flg eq 3}-->
                        checked="checked"
                      <!--{/if}-->
                    />
                    <label class="c-form-label" for="no">受け取らない</label>
smp/templates/ユーザーテンプレート/entry/rnregist.tpl
443行目付近〜】『元の状態』を削除して『変更後の状態』を追記

元の状態
<div class="c-form-group c-form-group--row">
                                            <div class="c-checkbox <!--{if $arrErr.mailmaga_flg}-->c-checkbox--error<!--{/if}-->">
                                                <input type="checkbox" name="mailmaga_flg" id="mailmaga_flg" value="1" <!--{if $mailmaga_flg eq 1}-->checked="checked"<!--{/if}--> />
                                                <label for="mailmaga_flg">
                                                    お得な情報を受け取る
                                                </label>
変更後の状態
<div class="c-form-group c-form-group--column">
                                            <div class="c-radio <!--{if $arrErr.mailmaga_flg}-->c-radio--error<!--{/if}-->">
                                                <input
                                                    type="radio"
                                                    name="mailmaga_flg"
                                                    id="text"
                                                    value="1"
                                                    <!--{if $mailmaga_flg eq 1 || $mailmaga_flg eq ""}-->
                                                        checked="checked"
                                                    <!--{/if}-->
                                                />
                                                <label for="text">受け取る</label>
                                            </div>
                                            <div class="c-radio <!--{if $arrErr.mailmaga_flg}-->c-radio--error<!--{/if}-->">
                                                <input
                                                    type="radio"
                                                    name="mailmaga_flg"
                                                    id="no"
                                                    value="3"
                                                    <!--{if $mailmaga_flg eq 3}-->
                                                        checked="checked"
                                                    <!--{/if}-->
                                                />
                                                <label for="no">受け取らない</label>
smp/templates/ユーザーテンプレート/shopping/lp.tpl
元の状態』を削除して『変更後の状態』を追記

元の状態
967行目付近〜
<input type="checkbox" name="mailmaga_flg" id="mailmaga_flg" value="1" <!--{if $arrForm.mailmaga_flg == 1}-->checked="checked"<!--{/if}--> />
変更後の状態
967行目付近〜
<input type="checkbox" name="mailmaga_flg" id="mailmaga_flg" value="1" <!--{if $arrForm.no_mailmaga_flg != 1}-->checked="checked" <!--{/if}--> />
970行目付近〜
<input type="hidden" name="no_mailmaga_flg" value="0" id="no_mailmaga_flg" />

この記事の目次

  1. 外部のEFOサービス等ご契約中の方へ
  2. テンプレートファイル編集

ありがとうございました。
よろしければ、ご意見をお聞かせください。

件名、コメントをご入力いただき、『送信』ボタンをクリックしてください。

ご意見を送られない場合は、『閉じる』ボタンをクリックしてください。

件名:

お問い合わせ内容:

閉じる