Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 !

    #409968

    Hi Blaise!

    When you edit the contact form there will be a setting called “E-mail subject”. Is that option not working for you?

    Regards,
    Elliott

    #411548

    Hi 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…

    #412255

    Hey!

    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,
    Elliott

    #412446

    Hi 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
    Blaise

    #412817

    Hi!

    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!
    Ismael

    #414007

    I hoped it would work within Enfold itself.
    Thks, Ismael !

    #414231

    Hi!

    Glad we could help, please get back to us if you have any more questions.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.