From 2fa79ba1b21fb7f7e38987cc0f7ed01c2342ae0e Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Mon, 13 Oct 2014 17:33:14 -0700 Subject: [PATCH] CRM-15432 - hide payment options block along with billing info when price set value total is zero. ---------------------------------------- * CRM-15432: https://issues.civicrm.org/jira/browse/CRM-15432 --- templates/CRM/Contribute/Form/Contribution/Main.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 4fe19ea10e..e767cd12c0 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -463,10 +463,12 @@ var total_amount_tmp = $(this).data('raw-total'); // Hide billing questions if this is free if (total_amount_tmp == 0){ - cj("#billing-payment-block").hide(); + cj("#billing-payment-block").hide(); + cj(".payment_options-group").hide(); } else { - cj("#billing-payment-block").show(); + cj("#billing-payment-block").show(); + cj(".payment_options-group").show(); } } -- 2.25.1