Skip to content

Commit

Permalink
[Cart] Discount title bug fix (#2795)
Browse files Browse the repository at this point in the history
* Cart items discount title fix

* add fix to drawer

* make sure it's line level discounts only
  • Loading branch information
ludoboludo committed Jul 11, 2023
1 parent 6fd1fc8 commit de1020b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sections/main-cart-items.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@
{%- endif -%}

<ul class="discounts list-unstyled" role="list" aria-label="{{ 'customer.order.discount' | t }}">
{%- for discount in item.discount_allocations -%}
{%- for discount in item.line_level_discount_allocations -%}
<li class="discounts__discount">
{%- render 'icon-discount' -%}
{{ discount.title }}
{{ discount.discount_application.title }}
</li>
{%- endfor -%}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions snippets/cart-drawer.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@
role="list"
aria-label="{{ 'customer.order.discount' | t }}"
>
{%- for discount in item.discount_allocations -%}
{%- for discount in item.line_level_discount_allocations -%}
<li class="discounts__discount">
{%- render 'icon-discount' -%}
{{ discount.title }}
{{ discount.discount_application.title }}
</li>
{%- endfor -%}
</ul>
Expand Down

0 comments on commit de1020b

Please sign in to comment.