Do not show custom amount field in cart when not enabled (#873)

fixes #872
This commit is contained in:
Andrew Camilleri 2019-05-31 05:29:16 +00:00 committed by Nicolas Dorier
parent 1b6eb9cab0
commit 7056aae301

View file

@ -94,7 +94,8 @@
</tr>
</script>
<script id="template-cart-extra" type="text/template">
<script id="template-cart-extra" type="text/template">
@if(Model.ShowCustomAmount){
<tr>
<td colspan="5" class="border-0 pb-0">
<div class="input-group">
@ -108,7 +109,8 @@
</div>
</td>
</tr>
@if (Model.ShowDiscount)
}
@if (@Model.ShowDiscount)
{
<tr>
<td colspan="5" class="border-top-0">