show store section for all users in the store

This commit is contained in:
Diatrex 2019-12-31 10:48:28 +03:00
parent adb9c53c2d
commit bbd8a718e3

View File

@ -1,5 +1,9 @@
{% if app.request.get('user') != null or app.request.get('user') != "" %}
{% set store = entries('store','store').where('user_id', user.id).first() %}
{% if store is null %}
{% set user = entries('store','user').where('user_id', user.id).first() %}
{% set store = user.store %}
{% endif %}
{% if store is not null %}
{% if store.store_banner is null %}
{% set background_image = img('visiosoft.module.advs::images/user_section_back.png').url %}