function HideShippingTest(shippingAmount) { if (shippingAmount == 0) { $("tr.row-shipping:last").html(""); } }
<tr class="row-shipping"> <td class="col-description"> Shipping: </td> <td class="col-amount"> [DH_ShippingAmount:f=1] </td> </tr> <script>HideShippingTest('[DH_ShippingAmount]');</script>
Michelle Moore
I would like to hide the shipping line on the totals if it is 0
I feel like I am on the right track with this script but I must have something wrong as it's not working. Is anyone able to help? Thanks