-
AuthorPosts
-
March 10, 2015 at 9:47 pm #409118
Dear Support,
I use the Contact Form for two purposes. One is “Contact” and the other one is “Commande” (order). I’d like the auto responder subject email to be “Merci pour votre message” (thank you for your message) for the first one and “Merci pour votre commande” (thank you for your order) for the second one.
Is it possible ? How can I do that ?
Best regards !March 11, 2015 at 5:16 pm #409968Hi Blaise!
When you edit the contact form there will be a setting called “E-mail subject”. Is that option not working for you?
Regards,
ElliottMarch 14, 2015 at 8:06 pm #411548Hi Elliot !
I’ve been out for a while…
Well, no ! The “e-mail subject” that I can edit through the contact form settings is the subject that is set for the e-mail that I receive, as administrator.
The subject of the confirmation e-mails that my clients receive from “me” is set by the auto responder.
I changed it in the php file. But my problem is how can I have different auto responder subjects, depending on the form the client is submitting, “Contact form”, “Order Form”, etc…March 16, 2015 at 4:17 pm #412255Hey!
I’m not sure. You might be able to check the formID or you might be able to check which page with is_page(). Paste the customization you did here along with what files and line numbers you changed and we’ll take a look.
Best regards,
ElliottMarch 16, 2015 at 7:21 pm #412446Hi Elliot,
I changed the line 334 of the file contact.php in “wp-content -> themes -> enfold -> config-templatebuilder -> avia-shortcodes”.
$form_args = array(
“heading” => $title ? “<h3>”.$title.”</h3>” : “”,
“success” => “<h3 class=’avia-form-success’>”.$sent.”</h3>”,
“submit” => $button,
“myemail” => $email,
“action” => get_permalink($post_id),
“myblogname” => get_option(‘blogname’),
“autoresponder” => $autorespond,
“autoresponder_subject” => __(‘Merci pour votre message !’,’avia_framework’ ),
“autoresponder_email” => $email,
“subject” => $subject,
“form_class” => $meta[‘el_class’].” “.$color,
“multiform” => true, //allows creation of multiple forms without id collision
“label_first” => true,
“redirect” => $redirect,
“placeholder” => $hide_labels
);The fact is that my site is a one page site (you can see it here : lewokdeblaise.be). So ideally I shouldd identify the form ID to be able to differentiate the two that I have on this page. But I really don’t know how I can find it, neither how I could use that information for the coding :-(
Your help is very welcome !
Best regards
BlaiseMarch 17, 2015 at 9:49 am #412817Hi!
I think it’s better if you use the Contact Form 7 plugin. Set up the Mail 2 feature to create a different autoresponder content. http://contactform7.com/setting-up-mail/
Cheers!
IsmaelMarch 18, 2015 at 10:03 pm #414007I hoped it would work within Enfold itself.
Thks, Ismael !March 19, 2015 at 9:49 am #414231 -
AuthorPosts
- You must be logged in to reply to this topic.