{% set order_store = order_shop_container.store.setSection(section_current()).setMerchant(merchant_current()) %} {% set totalSpent = order_store.getTotalSpentByUser(entity.instance) %} {# {% set totalSpent = orderUtils.getTotalSpentByUser(entity.instance) %} #} {% if totalSpent > 0 %} <span class="badge badge-primary"> {{ totalSpent|format_price(false) }}</span> {% else %} <span class="badge badge-secondary"> {{ totalSpent|format_price(false) }}</span> {% endif %}