Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-beeclever committed Sep 29, 2024
1 parent d87c828 commit fa355ad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions blocks/subtotal.liquid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<div class="cart-discount-applications">
{% for discount_allocation in cart.cart_level_discount_allocations %}
{% render 'discount-allocation', discount_allocation: discount_allocation %}
{% for discount_application in cart.cart_level_discount_applications %}
{% render 'discount-application', discount_application: discount_application %}
{% endfor %}
</div>
<div class="flex row space-between">
Expand Down
5 changes: 0 additions & 5 deletions snippets/discount-allocation.liquid

This file was deleted.

5 changes: 5 additions & 0 deletions snippets/discount-application.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

<div class="discount-allocation flex row middle">
{{ "discount.svg" | inline_asset_content }}
<p class="small">{{ discount_application.title }} (-{{ discount_application.total_allocated_amount | money }})</p>
</div>
2 changes: 1 addition & 1 deletion snippets/line-item.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</div>
<div class="line-item-discount-applications">
{% for discount_allocation in line_item.line_level_discount_allocations %}
{% render 'discount-allocation', discount_allocation: discount_allocation %}
{% render 'discount-application', discount_allocation: discount_allocation.discount_application %}
{% endfor %}
</div>
{% assign inventory_quantity = line_item.variant.inventory_quantity | at_most: 999 %}
Expand Down

0 comments on commit fa355ad

Please sign in to comment.