Buy Now
Sign in

A word on auto templates in e-mail confirmation?

CrystalFrontier , October 05 2018, 11:48
C
CrystalFrontier 105
October 05 2018, 11:48 #380654
Dear forum
How exactly is the auto-template in e-mail confirmations produced? I can't find a suitable manual, nor a forum entry that explains to me the first step of this basic procedure. The only one I know from previous versions is that the HTML is produced by the press of a button. But when opening the Auto Template tab... there is no such button, and the boxes remain empty.

Thanks for your answers!
Christopher
healyhatman 8
October 05 2018, 12:55 #380658
It pretty much just puts *all* of your form data in a table with [ name | value ] . The boxes in the email -> auto template tab are for overriding it. Or you can just manually put in the fields how you want them.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
C
CrystalFrontier 105
October 07 2018, 18:48 #380673
Thank you for your answer!
After I edited header and footer a bit (not the main body), the main body table structure vanished, and all data was put into lines, making it very difficult to read.
I also don't understand why I need curly brackets for the labels?

Many thanks
Christopher
C
CrystalFrontier 105
October 07 2018, 18:53 #380674
Programming:
e-mail_1.png
Result in e-mail:
e-mail_2.png
I hope it can be avoided to not program the whole layout, just because I added 2-3 lines in header and footer
Christopher
C
CrystalFrontier 105
October 07 2018, 19:06 #380675
Also, the ordering of fields has changed in a later attempt:
e-mail_3.png
This may be a clue to why it's not working the way I'm used to when layouting e-mails in V6 (from the migration guide):

'8. PHP is no longer supported in the email body, use a Php action or a Custom code action if you need this feature and then call the returned value in your email.'
...but I have absolutely no idea what you want me to do
Attachments
e-mail_3.png
e-mail_3.png
(32.07 KiB)
187 Downloads/Views
healyhatman 8
October 09 2018, 12:19 #380679
Just put your field values in manually and make it an HTML email.
So
<strong>Label: </strong>{data:field} <br>
<strong>Label 2: </strong>{data:field2} <br> etc etc etc.
That way you only include the data you actually want. Alternatively, in the body just put {section/template:one}
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
C
CrystalFrontier 105
October 10 2018, 12:23 #380692
Ah, right {DATA:sth_sth}!

I actually already used this somewhere else. Everything needs some getting used to, I guess.
These are all really good hints, I suggest you compile a very little FAQ manual on e-mail. Especially {section/template:one} - I had no idea where I would find this hint.
Best regards and thanks
Christopher
C
CrystalFrontier 105
October 10 2018, 12:34 #380693
One last question: I have entered {section/template:one} in the main body, and I get the data as wished, but exactly twelve times in a row. It is flanked by the top and footer, looking like this:
<p><h2>Thank you for registering for EurOpen!</h2></p>
<p>We have received the following information:</p>
and
<p><h2>Please note!</h2></p>
<p>The amount shown is due on 30th OCT. Please transfer the fees to the following bank account:</p>
<p>Debating Society Germany e.V.</p>
<p>IBAN XXXXXXXXXXXXXXXX</p>
<p>BIC: DEUTDEDBSTG</p>
<p>Subject: YOUR SCHOOL TEAM EurOpen 2018</p>
<p>Thanks and see you soon!</p>
See e-mail here:
e-mail_Chrono_5.png
Any ideas why this is so? I can't find anything in the editing tabs.

Thanks!
Christopher
Attachments
e-mail_Chrono_5.png
e-mail_Chrono_5.png
(50.06 KiB)
166 Downloads/Views
healyhatman 8
October 10 2018, 12:35 #380694
I won't be doing that I don't work here, check my sig
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
healyhatman 8
October 10 2018, 12:37 #380695
You haven't put it in a loop or something have you?
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
C
CrystalFrontier 105
October 10 2018, 13:49 #380696
Ah, ok sorry ... Let me say: ONE should write an FAQ. Or you write one and sell it to them
No, to my knowledge there is no loop anywhere in the form yet - I did, however, add a thank you message.

It's like this: I leave all three boxes empty -> I get an okay all-fields result.
But I need to add banking details that are not part of the form fields, so I need to use either header or footer for the additional info. Once I use either of the two, anything in the main body is multiplied by twelve.
I basically want to add this:
<html>
<body>
<h2>Thank you for registering for EurOpen!</h2>
<p>We have received the following information:</p>
<style>
table, th, td {
border: 1px solid black;
}
</style>
<table>
<tr><td><strong>Contact name: </strong></td><td>{data:contact_name}</td></tr>
<tr><td><strong>E-mail: </strong></td><td>{data:contact_email}</td></tr>
<tr><td><strong>Phone: </strong></td><td>{data:contact_phone}</td></tr>
<tr><td><strong>School name: </strong></td><td>{data:school_name}</td></tr>
<tr><td><strong>School address: </strong></td><td>{data:school_address}</td></tr>
<tr><td><strong># of debaters: </strong></td><td>{data:debaters}</td></tr>
<tr><td><strong># of tickets: </strong></td><td>{data:vvs}</td></tr>
<tr><td><strong>Debater names: </strong></td><td>{data:debater_names}</td></tr>
<tr><td><strong>ESL speakers: </strong></td><td>{data:ESL}</td></tr>
<tr><td><strong>Native speakers: </strong></td><td>{data:native}</td></tr>
<tr><td><strong>Dietary requirements: </strong></td><td>{data:dietary_requirements}</td></tr>
<tr><td><strong>Total fees: </strong></td><td><strong>{data:total}</strong></td><tr>
</table>
<p><h2>Please note!</h2></p>
<p>The amount shown is due on <strong>30th OCT 2018</strong>. Please transfer the fees to the following bank account:</p>
<p>Debating Society Germany e.V.<br>
IBAN XXX XXX XXX<br>
BIC: DEUTDEDBSTG<br>
Subject: YOUR SCHOOL TEAM EurOpen 2018<br>
<p>Thanks and see you soon!</p>
</body>
</html>
If I put it in the main body, I get the whole thing twelve times.
So I thought I'd put it *just* in the header - works, but if the main body is empty, I get the automated list again, and twelve times. So I put the main text in the header and just the last line in the main body with this ridiculous result:
Chrono_email_6.png
So, I emptied all the fields and just disabled Auto Add Fields entirely and just put the above programming in the body section. That seems to be working now. Luckily, I can do some HTML and it's not a long form.
Thanks for any ideas, still, and your help!

Christopher
Attachments
Chrono_email_6.png
Chrono_email_6.png
(33.97 KiB)
142 Downloads/Views
Chrono_email_6.png
Chrono_email_6.png
(33.97 KiB)
137 Downloads/Views
Chrono_email_6.png
Chrono_email_6.png
(33.97 KiB)
137 Downloads/Views
Chrono_email_6.png
Chrono_email_6.png
(33.97 KiB)
164 Downloads/Views