The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Boostrap Modal with Woocommerce
Hello,
Has anyone tested or achive to make display the Bootstrap Modal in Woocommerce?
For Woocommerce We need to create PHP Hooks to modify or place actions in any particular section...
For instance the Single Product Section....By Looking at FP Boostrap Modal, It shows that works with Short Codes...whereareas the Woocommerce Hooks won´t allow shortcodes with PHP Hooks...SO How Can I make the FP Boostrap Modal work?
Here´s an example of a Woocommerce Hook..."echo" will call and make the action and that´s where FP Modal requires to be placed
add_action( 'woocommerce_single_product_summary', 'woocommerce_single_product_summary_button', 40 );
function woocommerce_single_product_summary_button() {
global $product;
echo '<a class="button" href="Formidable SHORTCode or ID">Request For Quote</a>';
}
Anyone?
September 8, 2017 at 6:08 am
Within a hook, you have to use do_shortcode(). Here are examples: https://developer.wordpress.org/reference/functions/do_shortcode/
September 8, 2017 at 7:34 am
Thank you Victor
I forgot about that, It totally slipped my mind. Now is working
Discussion closed.