WordPress Development Asked on November 9, 2021
I’m using a Contact form7 and Razorpay quick checkout plugin in WordPress.
The shortcode for it is [RZP]
. Help me use this in contact form7.
What I have tried is in the functions.php
of contact-form-7 plugin, I have inserted this function:
add_filter( 'wpcf7_form_elements', 'mycustom_wpcf7_form_elements' );
function mycustom_wpcf7_form_elements( $form ) {
$form = do_shortcode( $form );
return $form;
}
This gives me ability to add outside shortcodes, but doesn’t work for the Razorpay quick payments plugin. Also, it gives the button but doesn’t give the pop up for the quick checkout.
You need to integrate a a custom field tag into your form so that the cf7 validation process correctly identifies your required field. To do this you need to create a custom field tag using contact form 7 hook functionality, the details of which you can find on the contact form 7 official website. Googling how to add custom form tags in cf7 also points to similar answers in this forum.
Answered by Aurovrata on November 9, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP