- Posts: 40
- Thank you received: 0
Group Billing Question
- Laura Rey
- Topic Author
- Offline
- Senior Member
-
Less
More
9 years 10 months ago #81929
by Laura Rey
Group Billing Question was created by Laura Rey
Hi,
I have a group registration form where a fee field is added to the billing form (not the individuals of the group). The fee needs to be multiplied by the number of individuals in the group. Is there a way to do this quickly via the interface? If not, can you point me to the code where the fee is being calculated please and I'll modify it.
Thanks,
Laura
I have a group registration form where a fee field is added to the billing form (not the individuals of the group). The fee needs to be multiplied by the number of individuals in the group. Is there a way to do this quickly via the interface? If not, can you point me to the code where the fee is being calculated please and I'll modify it.
Thanks,
Laura
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 10 months ago #81950
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Group Billing Question
Hi Laura
If you can use Fee Formula, then wait us for one or two more days. We are releasing new version which support [NUMBER_REGISTRANTS] tag in the fee formula and it should solve your issue
If you want to modify code now, look at components/com_eventbooking/helper/helper.php, find the method calculateGroupRegistrationFee and customize it to meet your need
Tuan
If you can use Fee Formula, then wait us for one or two more days. We are releasing new version which support [NUMBER_REGISTRANTS] tag in the fee formula and it should solve your issue
If you want to modify code now, look at components/com_eventbooking/helper/helper.php, find the method calculateGroupRegistrationFee and customize it to meet your need
Tuan
Please Log in or Create an account to join the conversation.
- Laura Rey
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 0
9 years 10 months ago #81970
by Laura Rey
Replied by Laura Rey on topic Group Billing Question
Thank you....I look forward to the next release.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 10 months ago #82007
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Group Billing Question
Hi Laura
The code is now available in version 2.6.0. You can access to My Downloads menu item, download latest version, upgrade it t your site
Then you can use [NUMBER_REGISTRANTS] tag in the fee formula
Regards,
Tuan
The code is now available in version 2.6.0. You can access to My Downloads menu item, download latest version, upgrade it t your site
Then you can use [NUMBER_REGISTRANTS] tag in the fee formula
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Laura Rey
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 0
9 years 10 months ago #82014
by Laura Rey
Replied by Laura Rey on topic Group Billing Question
Thanks. Unfortunately, I'm not using a textbox, so it won't meet our needs. I have a radio button group (2). If the user in billing click button 1, all recipients get $100 off their base registration cost. Suggestions on how I might implement this?
Please Log in or Create an account to join the conversation.
- Simon Shaw
- Offline
- Junior Member
-
Less
More
- Posts: 29
- Thank you received: 1
9 years 8 months ago #84576
by Simon Shaw
Replied by Simon Shaw on topic Group Billing Question
Same problem - I want to use the fee formula code [FIELD_VALUE]* [NUMBER_REGISTRANTS] for a value from a Radio box.
Seems to be some discrepency with the help information quoted below which states that Radio values are used as well as custom fields.....
"Understand Fee Formula
Fee Formula is a bit difficult to understand. However, once you get it, you will see that is is very powerful for fee calculation.
You can use *math operators : +, -, , /** in the fee formula.
When you use [FIELD_VALUE] tag in the fee formula, it will be replaced with the actual fee associated with that field for fee calculation:
If the field is a Text custom field, [FIELD_VALUE] will be replaced with the value subscribers enter on the textbox.
If the field is a single select field (Radio, Single Select box), [FIELD_VALUE] will be replaced with the fee amount corresponding with the value subscribers select for the field.
If the field is a multiple select field (Checkboxes, Multiple Select), [FIELD_VALUE] will be replaced with the total fee values of all the options which users select for that field.
You can also use a custom fee in fee formular with the syntax: [NAME_OF_CUSTOM_FIELD_IN_UPPERCASE]. For example, if you have a textbox custom field called eb_quantity to allow users to enter quantity of the items they want to purchase, you can use the tag [EB_QUANTITY] in the fee formula of any custom fields. Please note that when you use a custom field in fee formula, it will be replaced with a value using the same rules with [FIELD_VALUE] tag mentioned above."
Seems to be some discrepency with the help information quoted below which states that Radio values are used as well as custom fields.....
"Understand Fee Formula
Fee Formula is a bit difficult to understand. However, once you get it, you will see that is is very powerful for fee calculation.
You can use *math operators : +, -, , /** in the fee formula.
When you use [FIELD_VALUE] tag in the fee formula, it will be replaced with the actual fee associated with that field for fee calculation:
If the field is a Text custom field, [FIELD_VALUE] will be replaced with the value subscribers enter on the textbox.
If the field is a single select field (Radio, Single Select box), [FIELD_VALUE] will be replaced with the fee amount corresponding with the value subscribers select for the field.
If the field is a multiple select field (Checkboxes, Multiple Select), [FIELD_VALUE] will be replaced with the total fee values of all the options which users select for that field.
You can also use a custom fee in fee formular with the syntax: [NAME_OF_CUSTOM_FIELD_IN_UPPERCASE]. For example, if you have a textbox custom field called eb_quantity to allow users to enter quantity of the items they want to purchase, you can use the tag [EB_QUANTITY] in the fee formula of any custom fields. Please note that when you use a custom field in fee formula, it will be replaced with a value using the same rules with [FIELD_VALUE] tag mentioned above."
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 8 months ago #84578
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Group Billing Question
Try [NAME_OF_FIELD]*[NUMBER_REGISTRANTS]. It should works
For example, if you have a field called eb_option, then use this fee fomular [EB_OPTION]*[NUMBER_REGISTRANTS] should work
Regards,
Tuan
For example, if you have a field called eb_option, then use this fee fomular [EB_OPTION]*[NUMBER_REGISTRANTS] should work
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Simon Shaw
- Offline
- Junior Member
-
Less
More
- Posts: 29
- Thank you received: 1
9 years 8 months ago #84579
by Simon Shaw
Replied by Simon Shaw on topic Group Billing Question
Many thanks Taun.
I'm guilty of following the instructions to the letter rather than thinking about it.
I was thrown by the use of the [FIELD_VALUE] "tag" - using the field name itself makes much more sense!
I'm guilty of following the instructions to the letter rather than thinking about it.
I was thrown by the use of the [FIELD_VALUE] "tag" - using the field name itself makes much more sense!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 8 months ago #84599
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Group Billing Question
The most important thing is it works now 
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.