{% extends "commerce/_layouts/promotions" %} {% set selectedSidebarNavItem = 'sales' %} {% block actionButton %}
{% endblock %} {% block content %}{{ "No sales exist yet."|t('commerce') }}
{{ "Name"|t('commerce') }} | {{ "Duration"|t('commerce') }} | {{ "Effect"|t('commerce') }} | {{ "Overrides previous?"|t('commerce') }} | {{ "Stops subsequent?"|t('commerce') }} | ||
---|---|---|---|---|---|---|
{% if sale.enabled %} {% else %} {% endif %} {{ sale.name }} | {{ sale.dateFrom ? sale.dateFrom|datetime('short') : '∞' }} - {{ sale.dateTo ? sale.dateTo|date('short') : '∞' }} | {% if sale.apply == 'byPercent' or sale.apply == 'toPercent' %} {{ sale.applyAmountAsPercent }} {% if sale.apply == 'byPercent' %}{{ "off original price"|t('commerce') }}{% else %}{{ "of original price"|t('commerce') }}{% endif %} {% else %} {{ sale.applyAmountAsFlat|commerceCurrency(craft.commerce.paymentCurrencies.primaryPaymentCurrency.iso,convert=true) }} {% if sale.apply == 'byFlat' %}{{ "off original price"|t('commerce') }}{% else %}{{ "(new price)"|t('commerce') }}{% endif %} {% endif %} | {% if sale.ignorePrevious %} {% endif %} | {% if sale.stopProcessing %} {% endif %} |