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.
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.
Share Improve this question edited Sep 6, 2018 at 23:56 Ashutosh asked Aug 25, 2018 at 6:35 AshutoshAshutosh 1011 silver badge4 bronze badges1 Answer
Reset to default 0You 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.