Merge pull request 'refactor: conditionally display product price' (#3) from abhisheks/theme-elegance:main into main

Reviewed-on: brooksbingham/theme-elegance#3
pagebuilder
dineshsalunke 2023-11-22 10:46:23 +00:00
commit b0436f56b9
1 changed files with 5 additions and 3 deletions

View File

@ -46,9 +46,11 @@
{if $product.has_discount}
<span class="regular-price line-through leading-none font-medium">{$product.regular_price}</span>
{/if}
<div class="font-bold text-lg">
<span>{$product.price}</span>
</div>
{if $product.show_price}
<div class="font-bold text-lg">
<span>{$product.price}</span>
</div>
{/if}
</div>
{/block}
{block name='product_name'}