Skip to content

Commit

Permalink
only apply discounted from text to variation options for products
Browse files Browse the repository at this point in the history
  • Loading branch information
Moggach committed Jul 17, 2024
1 parent 8337db7 commit 4c68afb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/templates/app/includes/cart_options.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
{% if variant.title != "Default Title" %}{{ variant.title }} -{% endif %}
{% money_localize variant.price "GBP" %}
{% if variant.compare_at_price is not None %}
{% money_localize variant.compare_at_price "GBP" as localized_compare_price %}
(discounted from {{ localized_compare_price }})
<s>{% money_localize variant.compare_at_price "GBP" %}</s>
{% endif %}
</p>
{% endwith %}
Expand Down

0 comments on commit 4c68afb

Please sign in to comment.