- Posts: 13
- Thank you received: 0
Fee formula
- mbt
- Topic Author
- Offline
- New Member
-
Less
More
12 years 9 months ago #29267
by mbt
Fee formula was created by mbt
I create a fee field in group registrations and had it show only on the final billing page. I wanted the fee to be charged as a separate item onto the groups bill however it ended up multiplying the fee ie:Fee=$10 - 2 group members $20 but I really need it to be $10 between the group.
I guess I would need to make a fee formula (but not sure if this can be done?) so the fee amount is divided between the group member ie: fee $20.00 2 member $10.00 each. If this is possible how what would the formula be.
Alternatively is there a way it can just add the fee for this service to the main bill without dividing it or multiplying it?
Thanks Tuan
I guess I would need to make a fee formula (but not sure if this can be done?) so the fee amount is divided between the group member ie: fee $20.00 2 member $10.00 each. If this is possible how what would the formula be.
Alternatively is there a way it can just add the fee for this service to the main bill without dividing it or multiplying it?
Thanks Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 9 months ago #29316
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Fee formula
Hi
By default, the fee of custom field on Group Billing Page will be multipled with number of registrants. If you don't want it to be multipled, you will need to edit the code :
1. Open the file components/com_eventbooking/views/confirmation/view.html.php
2. Find the code below :
3. Change it to :
After that, it should work as expected.
Tuan
PS : In the future, please don't post your questions on Pre-sales questions forum.
By default, the fee of custom field on Group Billing Page will be multipled with number of registrants. If you don't want it to be multipled, you will need to edit the code :
1. Open the file components/com_eventbooking/views/confirmation/view.html.php
2. Find the code below :
Code:
$extraFee = $feeFields->canculateGroupFee($groupId) + $numberRegistrants*JCFields::calculateFee($eventId, 1) ;
3. Change it to :
Code:
$extraFee = $feeFields->canculateGroupFee($groupId) + JCFields::calculateFee($eventId, 1) ;
After that, it should work as expected.
Tuan
PS : In the future, please don't post your questions on Pre-sales questions forum.
The following user(s) said Thank You: Chris Roberts
Please Log in or Create an account to join the conversation.
- mbt
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
12 years 9 months ago #29317
by mbt
Replied by mbt on topic Re: Fee formula
Thanks Tuan and sorry about posing in wrong forum I didn;t mean to just a mistake, thanks again
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 9 months ago #29319
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Fee formula
No problem
!
Please Log in or Create an account to join the conversation.
- Chris Roberts
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
12 years 9 months ago #29927
by Chris Roberts
Replied by Chris Roberts on topic Re: Fee formula
Solved my issue exactly, but if there was an extra parm for each fee field so this is configurable at the field level (flexibility), it would be FANTASTIC. I thought that if it was included on the individual form it would accumulate; if it was on the group form it wouldn't accumulate...maybe that config setting is the one to use? Anyway, thanks.
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.