Skip to content

Commit

Permalink
Merge pull request #538 from tblivet/issue-535
Browse files Browse the repository at this point in the history
fix: The price is displayed twice as if there was a discount
  • Loading branch information
Hlavtox authored Aug 10, 2023
2 parents 34fe1bc + 7dad1c6 commit 158dbe5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/checkout/_partials/cart-detailed-product-line.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@
{/if}
</div>

<div class="product-line__basic">
<span class="product-line__regular">{$product.regular_price}</span>
{if $product.has_discount}
<div class="product-line__basic">
<span class="product-line__regular">{$product.regular_price}</span>

{if $product.has_discount}
{if $product.discount_type === 'percentage'}
<span class="discount badge discount">
-{$product.discount_percentage_absolute}
Expand All @@ -113,8 +113,8 @@
-{$product.discount_to_display}
</span>
{/if}
{/if}
</div>
</div>
{/if}
</div>
</div>

Expand Down

0 comments on commit 158dbe5

Please sign in to comment.