From e75336c45d7f2c9b46e4cb42129cb05911288768 Mon Sep 17 00:00:00 2001 From: yashodha Date: Wed, 21 Aug 2013 13:00:24 +0530 Subject: [PATCH] CRM-13233 --- templates/CRM/Event/Form/Registration/Register.tpl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Event/Form/Registration/Register.tpl b/templates/CRM/Event/Form/Registration/Register.tpl index 8f15b2dfb2..cbe7aa5646 100644 --- a/templates/CRM/Event/Form/Registration/Register.tpl +++ b/templates/CRM/Event/Form/Registration/Register.tpl @@ -213,8 +213,15 @@ function skipPaymentMethod() { var symbol = '{/literal}{$currencySymbol}{literal}'; + var isMultiple = '{/literal}{$event.is_multiple_registrations}{literal}'; + + var flag = 1; + if (isMultiple && cj("#additional_participants").val()) { + flag = 0; + } + cj('#priceset input').change(function () { - if ((cj(this).attr('data-amount') == '0') || (cj('#pricevalue').text() == symbol + " 0.00" )) { + if (((cj(this).attr('data-amount') == '0') || (cj('#pricevalue').text() == symbol + " 0.00" )) && flag ) { cj(".payment_options-group").hide(); cj("div.payment_processor-section").hide(); cj("div#payment_information").hide(); -- 2.25.1