Use the argument "hasBtn" to display or hide "Add to cart" button
This commit is contained in:
@@ -115,12 +115,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="product-btn">
|
<div class="product-btn">
|
||||||
{if $hasSubmit == true}
|
{if $hasBtn == true}
|
||||||
<button type="submit" class="btn btn-cart">{intl l="Add to cart"}</button>
|
{if $hasSubmit == true}
|
||||||
{else}
|
<button type="submit" class="btn btn-cart">{intl l="Add to cart"}</button>
|
||||||
<a href="{$URL}" class="btn btn-cart">{intl l="View product"}</a>
|
{else}
|
||||||
|
<a href="{$URL}" class="btn btn-cart">{intl l="View product"}</a>
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user