<p class="h3 sign-up-title"> {{ 'sylius.ui.new_customers'|trans }} </p>

{% set referer = app.request.server.get('HTTP_REFERER') == url('sylius_shop_cart_summary') ? url('sylius_shop_checkout_address') : null %}
<a href="{{ path('sylius_shop_register', { referer: referer }) }}" class="btn btn-primary btn-block"> {{ 'sylius.ui.create_an_account'|trans }}</a>
