EC-CUBE 4 購入の流れを変更 03

  • 2020年3月16日
  • 2020年5月7日
  • 未分類
  • 354view

前回の続き

今回も作業しながらメモ。
見ていても役には立たないですよ


04:20 ゲスト購入に強制へ生かせる。
/src/Eccube/Controller/ShoppingController.php

        // ログイン状態のチェック.
        if ($this->orderHelper->isLoginRequired()) {
            log_info('[注文手続] 未ログインもしくはRememberMeログインのため, ログイン画面に遷移します.');

            //return $this->redirectToRoute('shopping_login');
       return $this->redirectToRoute('shopping_nonmember');
        }

これでカートに入った後にログインが無くなる。


04:25 nonmember.twigの不要な部分を消す。会社名

/src/Eccube/Resource/template/default/Shopping/nonmember.twig
コメントアウト化

<!--                <dl>
                    <dt>
                        {{ form_label(form.company_name, 'common.company_name', { 'label_attr': { 'class': 'ec-label' }}) }}
                    </dt>
                    <dd>
                        <div class="ec-halfInput{{ has_errors(form.company_name) ? ' error' }}">
                            {{ form_widget(form.company_name) }}
                            {{ form_errors(form.company_name) }}
                        </div>
                    </dd>
                </dl>-->

04:30 ご注文手続き画面で、配送情報とお支払い方法が出る。/shopping
04:31 確認画面がでる。/shopping
04:32 注文する画面 /shopping/confirm
04:32 ご注文完了画面 /shopping/complete

直接ご注文手続きの画面に行かせたい。
index.twigに入力フォームがあるので、使う。
/src/Eccube/Resource/template/default/Shopping/index.twig
174行目 div class=”ec-borderedDefs non-customer-edit” style=”display:none;”> styleを消す
inputフォームがでない 変更の開いてる状態にしたい。
おK
$(‘#customer-ok’).click(function() { はどこだ? 同じ行の先頭にあった。

inputタグにフォーカスされたら ajax されたい
Ok
07:59 リダイレクト時にPOSTデータを渡す

最新情報をチェックしよう!

    Warning: Trying to access array offset on value of type bool in /home/xsvx1010357/kato.space/public_html/wp/wp-content/themes/the-thor/template-parts/single-prevnext.php on line 37

    Warning: Trying to access array offset on value of type bool in /home/xsvx1010357/kato.space/public_html/wp/wp-content/themes/the-thor/template-parts/single-prevnext.php on line 38

    Warning: Trying to access array offset on value of type bool in /home/xsvx1010357/kato.space/public_html/wp/wp-content/themes/the-thor/template-parts/single-prevnext.php on line 39
>最強のWordPressテーマ「THE THOR」

最強のWordPressテーマ「THE THOR」

システムの構築・保守運用「   」 社内システム担当が欲しいが、専属で雇うほどの仕事量はない。 必要な時に必要なだけ頼りたいというお悩みを持つ企業様へ専門知識を持って対応を行っております。 サーバから各種システムまで自社・他社で構築されたシステムに対してサポートを行っております。

CTR IMG