Skip to content

Commit

Permalink
Merge pull request #1668 from ramundomario/bugfix/cart-price-rule-label
Browse files Browse the repository at this point in the history
[FrontendBundle] Print cart price rule label instead name if available
  • Loading branch information
dpfaffenbauer authored Jul 7, 2021
2 parents d4f21f0 + 7ecc1d7 commit d5ffd13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
{% for priceRule in cart.getPriceRuleItems %}
<tr>
<td colspan="2" class="text-left">
{{ priceRule.cartPriceRule.getName }}
{{ priceRule.cartPriceRule.label ?: priceRule.cartPriceRule.name }}
</td>
<td class="text-center"></td>
<td class="text-right" colspan="2">
{{ currency.convertAndFormat(priceRule.getDiscount(true)) }}
</td>
</tr>
{% endfor %}
{% endif %}
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
{% for priceRule in order.getPriceRuleItems %}
<tr>
<td colspan="2" class="text-center">
{{ priceRule.cartPriceRule.getName }}
{{ priceRule.cartPriceRule.label ?: priceRule.cartPriceRule.name }}
</td>
<td class="text-center">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
{% for priceRule in quote.getPriceRuleItems %}
<tr>
<td colspan="2" class="text-center">
{{ priceRule.cartPriceRule.getName }}
{{ priceRule.cartPriceRule.label ?: priceRule.cartPriceRule.name }}
</td>
<td class="text-center">

Expand Down Expand Up @@ -199,4 +199,4 @@
{% else %}
<p>{{ 'coreshop.ui.quote_empty'|trans }}</p>
{% endif %}
{% endblock %}
{% endblock %}

0 comments on commit d5ffd13

Please sign in to comment.