Set the Group Integer Value to One (1)

  • zoomlanski
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 1 month ago #6243 by zoomlanski
Set the Group Integer Value to One (1) was created by zoomlanski
I have been enjoying the flexibility of your component and probably have found new ways to use it.

I`m using the Group Registration for an Extra Banquet Ticket purchase.

Maximum 8 tickets per purchase order

However, i`m looking to reduce the Group Registration to greater to or = to 1.

When I enter the Number Registrants = 1 , I get the message - Number registrants must be an integer value and greater than 1

Which will force people to buy a minimum of 2 when they may only want one.

Can you point me to the the code for that

Thanks
Tim

test.paramediccompetition.ca/index.php?o...vent_id=5&Itemid=191

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
14 years 1 month ago #6246 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Set the Group Integer Value to One (1)
Hi Tim

You can find the code by opening the file components/com_eventbooking/views/register/tmpl/group.php, look at line 64 :
Code:
if (parseInt(form.number_registrants.value)< 2) {

And change that code (replace 2 by 1) .

Thanks,

Tuan

Please Log in or Create an account to join the conversation.

  • zoomlanski
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 1 month ago #6247 by zoomlanski
Beautiful

Thanks!

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc