Hi,
I wonder....
does anyone have a sample of a form like this..
You have a type="text" input and in there you write ..1,or 2,or 10 dvd's.
a dvd costs 5 euro.
so if people write 10 then it should show....total = 50 euro , automatically...
Does such a form excist?
that looks good..thanks🙂
Hi timwatson,
Remove everything before and after the <form> and </form> tags and remove those tags as well (ChronoForms & Joomla provide all this top and bottom code and repeating it will cause problems).
Put quotes round your attribute values - particularly name="TOTAL" in the total field. This will let ChronoForms recognise the field correctly.
Bob
Thank you for the help. I did those two things, and it did add the total to the email, but I am still missing the quantity of each product...still just getting the field name or the alias for it. Anything else I may be missing? Here's what my email looks like now after those revisions.
PROD_SP_4.99
PROD_SPMG_4.99
PROD_SPCR_4.99
PROD_SW_3.99
PROD_SWMG_3.99
PROD_RY_4.99
PROD_KT_4.99
PROD_KCR_4.50
PROD_KA_4.99
Tent Part TP10-99 - Plastic Leg Insert
PROD_AG_2.99
TOTAL 84.84
Submitted by 64.221.222.178
Hi Tim,
One step forward, I know what the problem is - just haven't found the answer yet.
The '.' in the field names are being converted into '_' somewhere. If you turn debug on* and look at the $_POST array that the form is sending back you'll see that the field names look like [PROD_SP_4_99] wheras they 'should' be like [PROD_SP_4.99]
The '.' is valid in a field name and I'm not sure where the change is taking place. I'll dig a bit more later.
Bob
* I think that you have an invalid redirect on your form, you'll need to remove this before you can see the debug output.
I see what you are talking about. Unfortunately, the form uses that part of the field name to calculate totals so I can't change it. I did change it for a moment to confirm it was the problem and it did start to show me the quantity. Now if we can just figure out why the periods are being converted to underscores...
thanks for your help!!
tim
Anyone have any idea what could be causing the period "." in the field names to be converted to underscores "_"? Please help if you have any idea how to fix this...
thanks!
Tim
Hi Tim,
I have no idea but when you turn debug on, do you see the posted names with _ instead of . too ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.