Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: The price is displayed twice as if there was a discount #538

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading