質問 > フロント機能 > ブロック新規作成、表示 |
フロント機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
luceo |
投稿日時: 2019/6/27 21:27
対応状況: −−−
|
一人前 登録日: 2019/5/20 居住地: 投稿: 133 |
ブロック新規作成、表示 スマホ用にブロック新規作成しましたが
表示されません。 規定のブロックに入れ替えると表示されます。 <ブロック新規作成>時にはエラーはでませんでしたが ファイル名は変更できる状態になっています。 これは作成が完成していないという状態でしょうか? お教えいただけますととても嬉しいです。 どうぞよろしくお願い申し上げます。 |
tao_s |
投稿日時: 2019/6/28 12:20
対応状況: −−−
|
仙人 登録日: 2008/8/20 居住地: 東京 投稿: 799 |
Re: ブロック新規作成、表示 中身にはどんなコードを書きましたか?
|
luceo |
投稿日時: 2019/6/28 13:33
対応状況: −−−
|
一人前 登録日: 2019/5/20 居住地: 投稿: 133 |
Re: ブロック新規作成、表示 ご連絡ありがとうございます。
購入しましたプラグインのソースを記載しました。 長文となりますが具体的には以下です。 どうぞよろしくお願い申し上げます。 {# * Plugin Name : CustomerRank * * Copyright (C) BraTech Co., Ltd. All Rights Reserved. * http://www.bratech.co.jp/ * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. #} {% block stylesheet %} <style> #customer_rank { margin-bottom: 50px; } #customer_rank .heading02 { background: #333333; padding: 16px; color: #ffffff; } #customer_rank .current-rank { font-size: 2rem; margin-bottom: 30px; } #customer_rank span { color: #ff4500; font-weight: bold; } #customer_rank .rank { color: #2981ba; font-weight: bold; } #customer_rank .next_info { background: #f7f7f9; padding: 10px 25px; border: 1px solid #e1e1e8; } </style> {% endblock stylesheet %} <!--会員ランク表示--> {% if CurrentCustomerRank or CheckCustomerRank or NextCustomerRank%} <div id="customer_rank"> <h2 class="heading02">会員ランク情報</h2> <div class="container-fluid"> <div class="col-md-10 col-md-offset-1"> {% if CurrentCustomerRank %} <p class="current-rank">現在のランクは「<span class="rank">{{ CurrentCustomerRank.name }}</span>」です。</p> {% endif %} {% if CheckCustomerRank %} <p class="next_info">次回更新時のランクは「<span class="rank">{{ CheckCustomerRank.name }}</span>」です。</p> {% endif %} {% if NextCustomerRank %} <div class="next_info"> {% set nextAmount = NextCustomerRank.condAmount - CurrentCondition.total_amount %} {% if nextAmount > 0 %} <p>あと <span>{{ nextAmount|number_format() }}円</span></p> {% endif %} {% set nextBuytimes = NextCustomerRank.condBuytimes - CurrentCondition.total_buytimes %} {% if nextBuytimes > 0 %} <p>あと <span>{{ nextBuytimes|number_format() }}回</span></p> {% endif %} {% if nextAmount > 0 or nextBuytimes > 0 %} <p>ご購入頂くと「<span class="rank">{{ NextCustomerRank.name }}</span>」にランクアップします。</p> {% endif %} </div> {% endif %} </div> </div> </div> {% endif %} |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |