Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Show the number of limits by options value

Show the number of limits by options value 14 years 4 months ago #8323

  • don
  • don's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hi,

We use the custom fields with selection limits.

I'd like to show the limits and the already booked places also by the custom fields dropdown, checkbox and radio as you have it by events in the front-end. So everyone can see, which option is often used.

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

Sincerely
Don

Show the number of limits by options value 14 years 3 months ago #8624

  • don
  • don's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Do you have any plans for that feature?

I can't be the only one who is requesting that!

For example:
- We have one event with several workshops. The workshops are in a custom field. All are limited to a specific number of participants.

Now our guests wanna know, which workshop will be sold out and which one are still free. Of course they also want to know how much places are left.

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

Sincerely
Don

Show the number of limits by options value 14 years 3 months ago #8628

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Sorry, but we have no paid licenses assigned to your username.

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

Show the number of limits by options value 14 years 3 months ago #8629

  • andybon
  • andybon's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 239
  • Thank you received: 0
I'd like something done in this area too... In my case I use the custom field limit options for age ranges (Option 1 = 4 to 7, Option 2 = 7 and up) - Only so many of a certain age are allowed for the event.....

Problem is, when one category gets full, it 'disappears' from the form entirely - So I have people ringing and saying 'Hey - The form is broken - You can't select my age group' - I'd prefer it to show but maybe greyed out with 'FULL' or something like this.....

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

Show the number of limits by options value 14 years 3 months ago #8654

  • don
  • don's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0

dthadmin wrote: Sorry, but we have no paid licenses assigned to your username.


Yes, that's true. Our webmaster, which has bought the license, is called different. We are a community and are not paying twice for one license. Since I can create an account, I thought, you would also answer to me.

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

Sincerely
Don

Show the number of limits by options value 14 years 3 months ago #8732

  • don
  • don's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hi,

We have now made the solution in the code class.dtregister.php

line 1941 (approximately):
instead of
$options[]=JHTML::_('select.option',trim($dropDownDatas[$i]),trim($dropDownDatas[$i]));

we made two lines
$rest = ($this->optionlimit[$i])-($this->optionused[$i]);
$options[]=JHTML::_('select.option',trim($dropDownDatas[$i]),trim($dropDownDatas[$i]."  (available: ".$rest.")"));

Since we use just one language, we hardcoded available. Of course you can do it different.

Maybe DTHDevelopment will contribute it to the next version.

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

Sincerely
Don
  • Page:
  • 1
  • 2
Time to create page: 0.175 seconds