app/template/default/Product/sales_restrictions_cart.twig line 1

Open in your IDE?
  1. {#
  2. * Plugin Name : SalesRestrictions4
  3. *
  4. * Copyright (C) BraTech Co., Ltd. All Rights Reserved.
  5. * http://www.bratech.co.jp/
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. #}
  10. {% set request_uri = app.request.server.get('REQUEST_URI') %}
  11. {% if 'products/list' in request_uri  %}
  12. <div class="sales-restrictions">
  13.     {% if is_granted('ROLE_USER') == false %}
  14.     <a href="{{ url('mypage_login') }}">ログインして価格表示</a>
  15.     {% else %}
  16.     ※ご契約プランでのご注文不可
  17.     {% endif %}
  18. </div>
  19. {% else %}
  20. <div class="sales-restrictions_detail">
  21.     {% if is_granted('ROLE_USER') == false %}
  22.     <span>この商品は販売制限されております。</span><br />
  23.     会員の方はログイン後再度ご確認ください。<br />
  24.     非会員の方は会員登録頂き再度ご確認ください。<br />
  25.     {% else %}
  26.     ※ご契約プランでのご注文不可
  27.     {% endif %}
  28. </div>
  29. {% endif %}