|
|
|
|
|
|
|
|
{% set user = app.user %} |
|
|
{% set user = app.user %} |
|
|
{% set merchant_current = merchant_current() %} |
|
|
{% set merchant_current = merchant_current() %} |
|
|
|
|
|
|
|
|
{{ dump( merchant_current)}} |
|
|
|
|
|
{{ dump( user.favoriteMerchant )}} |
|
|
|
|
|
{% if(user.favoriteMerchant != merchant_current) %} |
|
|
{% if(user.favoriteMerchant != merchant_current) %} |
|
|
{# modal affichée uniquement si la sessionStorage.visit_merchant n'est pas défini (js) #} |
|
|
{# modal affichée uniquement si la sessionStorage.visit_merchant n'est pas défini (js) #} |
|
|
{% include '@LcCaracole/admin/merchant/modal/switch_merchant.html.twig' %} |
|
|
{% include '@LcCaracole/admin/merchant/modal/switch_merchant.html.twig' %} |