Working on a simple form to allow for the registration of an event and the purchase of event shirts.
Event fee is $25 and I'd like to offer multiple quantities if possible. Not a requirement by any means.
Shirts are $10-$15 depending on the size.
Shirt quantities are from 1-10.
I'm having a bit ofdifficulty figuring out how to get the form to calculate properly, namely in determining what the field names are and what particular field is calculated where.
I've tweaked the stock form to include the standard info with the starred items required:
*First Name
*Last Name
Organization
*Address1
Address2
*City
*State
*Zip
*Country
*Phone
Fax
*Email
Comment
and added 3 custom fields:
*AMA Number
Event Shirt Size
Shirt Qty
In the Form Management, I set the Amount to $25.00. In the fee calculation script, I've tried leaving it blank and also adding [PF_AMOUNT], [PF_FORM_AMOUNT], [AMOUNT], [FORM_AMOUNT] and any other number of connotations. When I open the form in my browser, I can see at the top "The amount you owe is $25.00".
In Fields Management, I set the Event Shirt Size to a dropdown type with values of Small, Medium, Large, XL, XXL and XXXL. No default values and Fee field set to No. Fee Values are 10, 10, 10, 12, 12, 15 (Yes, they're all on separate lines) and there is no fee formula (makes sense since it's not a fee field, right?)
I set Shirt Qty up with Values of 1 to 10, Fee Field to yes, no fee values
Here's where I'm lost...
How do I get this:
Amount + (Shirt size* Shirt qty)??
I've tried [FIELD_AMOUNT]+([PF_EVENT_SHIRT_SIZE]*[PF_SHIRT_QTY] but the total comes to $0.00 regardless of what items I select.
I've read the tutorials and a couple posts in here (
joomdonation.com/55-payment-form/22114-q...-t-show-properl.html
is one that's pretty close to what I'm looking for) but am still not "seeing" the connections between the various fields...
Where does the "master" calculation occur???