You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
477B

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