-
AuthorPosts
-
April 5, 2022 at 2:45 pm #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
ManfredApril 6, 2022 at 11:35 am #1347399Hey 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,
IsmaelApril 7, 2022 at 9:26 am #1347497Hey 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,
ManfredApril 8, 2022 at 5:31 am #1347664Hi,
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,
IsmaelApril 8, 2022 at 9:44 am #1347681Hi 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
ManfredApril 11, 2022 at 4:29 am #1347893Hi,
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,
IsmaelApril 11, 2022 at 8:31 am #1347907Hi Ismael,
thank you for support,
i attached the infos,Best regards
ManfredApril 18, 2022 at 4:26 am #1348659Hi,
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,
IsmaelApril 19, 2022 at 4:41 pm #1348822Hi 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,
ManfredApril 23, 2022 at 12:44 pm #1349211Hi,
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 hereBest regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.