{#
* Plugin Name : SalesRestrictions4
*
* 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.
#}
{% set request_uri = app.request.server.get('REQUEST_URI') %}
{% if 'products/list' in request_uri %}
<div class="sales-restrictions">
{% if is_granted('ROLE_USER') == false %}
<a href="{{ url('mypage_login') }}">ログインして価格表示</a>
{% else %}
※ご契約プランでのご注文不可
{% endif %}
</div>
{% else %}
<div class="sales-restrictions_detail">
{% if is_granted('ROLE_USER') == false %}
<span>この商品は販売制限されております。</span><br />
会員の方はログイン後再度ご確認ください。<br />
非会員の方は会員登録頂き再度ご確認ください。<br />
{% else %}
※ご契約プランでのご注文不可
{% endif %}
</div>
{% endif %}