Use the argument "hasBtn" to display or hide "Add to cart" button

This commit is contained in:
badsuricate
2013-10-21 12:48:19 +02:00
parent 018aaf51bc
commit 1a85589da4

View File

@@ -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>