Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.5
-
Fix Version/s: 4.5.2
-
Component/s: None
-
Labels:None
-
Documentation Required?:None
Description
$0 contributions result in the billing block being hidden - but I think the payment selector should be hidden as well.
To test you need to enable more than one payment option & have a price set with a $0 option. When $0 is selected the billing block is hidden but you still get to chose between credit card & pay later which I think it probably an over-sight rather than a design choice.
This is the code we are trialling (on 4.4 patched with CRM-14882)
+++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl
@@ -491,10 +491,12 @@
var total_amount_tmp = cj(this).data('raw-total');
// Hide billing questions if this is free
if (total_amount_tmp == 0)
+ cj("#billing-payment-block").hide();
+ cj(".payment_options-group").hide();
+ }
else
}
Attachments
Issue Links
- is supplemented by
-
CRM-15433 Billing info and payment options blocks not hidden for $0 events with price sets when decimal delimiter is NOT a dot
- Done/Fixed