- Posts: 189
- Thank you received: 0
Questions about Payment Form extension
Amount Isn't Calculating or Am I Dong it Wrong?
- MyWorld
- Topic Author
- Offline
- Elite Member
Less
More
14 years 4 months ago #3736
by MyWorld
Amount Isn't Calculating or Am I Dong it Wrong? was created by MyWorld
I'm creating a form that sells tickets for $50. I created an "amount" field so the user can enter the amount they would like to purchase. When I enter 3 in the amount field and click "Next" to go to the next page, it shows the amount of $50 and the number of tickets, which is 3. The data shown is correct but;
1. Maybe I'm doing something wrong as I was hoping that when I entered 3 in the "amount" field it would automatically show me the TOTAL of $150 (so the user knows what they are expected to pay). This also means that each time I have to click on "Process Payment" in order to know if the calculations are working correctly. This is my fee formula: [FORM_AMOUNT]*[FIELD_VALUE].
2. Also, I entered a description in the "amount" (pf_amount) field in the back-end but it doesn't show in the front-end, what am I missing?
1. Maybe I'm doing something wrong as I was hoping that when I entered 3 in the "amount" field it would automatically show me the TOTAL of $150 (so the user knows what they are expected to pay). This also means that each time I have to click on "Process Payment" in order to know if the calculations are working correctly. This is my fee formula: [FORM_AMOUNT]*[FIELD_VALUE].
2. Also, I entered a description in the "amount" (pf_amount) field in the back-end but it doesn't show in the front-end, what am I missing?
Please Log in or Create an account to join the conversation.
- MyWorld
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 189
- Thank you received: 0
14 years 4 months ago #3754
by MyWorld
Replied by MyWorld on topic Re: Amount Isn't Calculating or Am I Dong it Wrong?
Any suggestions...
Please Log in or Create an account to join the conversation.
- diegom
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
14 years 4 months ago #3785
by diegom
Replied by diegom on topic Re: Amount Isn't Calculating or Am I Dong it Wrong?
Did you tick the box for the fee field? I forgot to do that and was wondering where my wrong amounts came from.
If you don't sell too many tickets at once, maybe it is more usable if you choose a pull-down list with numbers from 0-9 and aput fees from 0-450 into the fee field. Like this you won't depend on the calculation formula.
If you don't sell too many tickets at once, maybe it is more usable if you choose a pull-down list with numbers from 0-9 and aput fees from 0-450 into the fee field. Like this you won't depend on the calculation formula.
Please Log in or Create an account to join the conversation.
- MyWorld
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 189
- Thank you received: 0
14 years 4 months ago #3799
by MyWorld
Replied by MyWorld on topic Re: Amount Isn't Calculating or Am I Dong it Wrong?
Thanks diegom. I see what you mean I missed that.
The total is incorrect. I have this in my fee field [FORM_AMOUNT]*[FIELD_VALUE]. The "Form Amount" is $50 and the "Field Value" I entered is 3. So the total should be $150, but instead the total is showing as $200. I did a test with a couple of other field values and the total is always $50 more than it should be.
I have attached the form and fee fields.
The total is incorrect. I have this in my fee field [FORM_AMOUNT]*[FIELD_VALUE]. The "Form Amount" is $50 and the "Field Value" I entered is 3. So the total should be $150, but instead the total is showing as $200. I did a test with a couple of other field values and the total is always $50 more than it should be.
I have attached the form and fee fields.
Attachment form.jpg not found
Please Log in or Create an account to join the conversation.
- cscottwoods
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
14 years 4 months ago #3818
by cscottwoods
Replied by cscottwoods on topic Re: Amount Isn't Calculating or Am I Dong it Wrong?
This is from a post in another part of the forum from "mrjansen"
The key is to enable FEE FIELD to YES. I also modified the fee formula to be:
[FORM_AMOUNT]*[FIELD_VALUE]-[FORM_AMOUNT]
I was having the same problem and tried the above remedy and now it is working fine. Hope this helps.
The key is to enable FEE FIELD to YES. I also modified the fee formula to be:
[FORM_AMOUNT]*[FIELD_VALUE]-[FORM_AMOUNT]
I was having the same problem and tried the above remedy and now it is working fine. Hope this helps.
Please Log in or Create an account to join the conversation.
- MyWorld
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 189
- Thank you received: 0
14 years 4 months ago #3819
by MyWorld
Replied by MyWorld on topic Re: Amount Isn't Calculating or Am I Dong it Wrong?
Thanks cscottwoods - really appreciate it!!
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 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.