Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1347288

    Hi Enfold Team,
    we use a contact form for booking with two fields “Credit Card number” and “Expiration date”.
    Is there a possibility to exclude the two fields in the Autoresponder mail?

    best regards
    Manfred

    #1347399

    Hey Manfred,

    Thank you for the inquiry.

    We do not recommend including those fields in the contact form as it is not fully secure. It might better if you use a payment plugin instead of using the default contact form.

    Best regards,
    Ismael

    #1347497

    Hey Ismael,

    Thank you for feedback. We do not use those fields for payment and do not ask for the Card Validation Code, it is just to improve the reservation. But it would be better to exclude the two fields in the Autoresponder mail. Is that possible?

    Best regards,
    Manfred

    #1347664

    Hi,

    Thank you for the update.

    Did you specify a custom autoresponder text in the Content > Backend > Autorespond Text field? The fields will not be included in the autoresponder email if a custom text is specified.

    Best regards,
    Ismael

    #1347681

    Hi Ismael,
    thank you, i put custom text in both Autorespond Text fields. The Text appeard in die Autoresponder mail, one above and the other below the form labels. If I leave the Autoresponder Subject Fields in backend empty, there is no autoresponder mail. This is not the best solution, but if it is not possible to edit or exclude the form Labels from the autoresponder mail, it is the easiest solution.

    best regards
    Manfred

    #1347893

    Hi,

    Thank you for the info.

    Can we have access to the site? We have to inspect the contact form in order to provide a proper solution. Please post the WordPress and S/FTP account details in the private field.

    Best regards,
    Ismael

    #1347907

    Hi Ismael,
    thank you for support,
    i attached the infos,

    Best regards
    Manfred

    #1348659

    Hi,

    Sorry for the delay. We edited the functions.php file and added the following code to remove the credit card number and expiration date from the autoresponder message.

    add_filter("avf_contact_form_autoresponder_mail", function($mail_array, $new_post, $form_params, $class) { 
    	$mail_array["Message"] = preg_replace('/Credit card number: (.*)/', '', $mail_array["Message"]);
    	$mail_array["Message"] = preg_replace('/Credit Card Expiration date: (.*)/', '', $mail_array["Message"]);
    
    	return $mail_array;
    }, 10, 4);
    

    Best regards,
    Ismael

    #1348822

    Hi Ismael,

    perfect, that’s great.
    Do i have to check the functions.php after Theme update, whether the filter is still there?

    Thank you very much,
    Manfred

    #1349211

    Hi,
    Glad Ismael could help, since you are not using a child theme the above function will be lost with future theme updates Read about installing a child theme & Get it here

    Best regards,
    Mike

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