refactor: conditionally display product price

pagebuilder
abhisheks 2023-11-21 16:53:22 +05:30
parent 9abd1621eb
commit 1144cd4758
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}
{if $product.show_price}
<div class="font-bold text-lg">
<span>{$product.price}</span>
</div>
{/if}
</div>
{/block}
{block name='product_name'}