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

Slack Signup
Newsletter Optin
Help Desk

Boostrap Modal with Woocommerce

Labels

This Discussion is public

Notifications

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?

 

 

Within a hook, you have to use do_shortcode(). Here are examples: https://developer.wordpress.org/reference/functions/do_shortcode/

Thank you Victor

I forgot about that, It totally slipped my mind. Now is working

Discussion closed.