CRM-13233
authoryashodha <yashodha.chaku@webaccess.co.in>
Wed, 21 Aug 2013 07:30:24 +0000 (13:00 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Wed, 21 Aug 2013 07:30:24 +0000 (13:00 +0530)
templates/CRM/Event/Form/Registration/Register.tpl

index 8f15b2dfb2763d4d1a542334b8e588be8dc9a67a..cbe7aa564647c8bf3513b28847374de9cc173fe6 100644 (file)
 
     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();