admin管理员组文章数量:1332711
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.
本文标签: phpIntegrate Razorpay quick payments plugin with contact form7 plugin
版权声明:本文标题:php - Integrate Razorpay quick payments plugin with contact form7 plugin 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742244291a2439030.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论