Hey @ehmarofficial
Could you please let me know which theme is currently active on your site and which page builder are you using and share the link to the product page?
Also please could you try testing if the issue occurs with other themes as well and share the screenshot of the setting page of Product Enquiry For WooCommerce 🙂
I am currently using porto theme demo shop 38. elementor.
http://microvisionint.com/shop/
Hey @ehmarofficial
Add the shortcode on the Elementor single product page template:
[ENQUIRY_BUTTON_ON_SINGLE_PRODUCT]
Add the following code in your theme or child theme’s functions.php file:
/**
* Render enquiry button on the single product page.
*/
function pe_add_enq_btn_69248()
{
if (!function_exists('is_plugin_active')) {
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
}
if (!is_plugin_active('product-enquiry-for-woocommerce/product-enquiry-for-woocommerce.php')) {
return;
}
if (!class_exists('PE_Public_Enquiry_Button')) {
include_once(WDM_PE_PLUGIN_PATH . 'public/class-pe-public-enquiry-button.php');
}
$enq_btn = PE_Public_Enquiry_Button::instance();
$enq_btn->render_enquiry_button();
}
add_shortcode('ENQUIRY_BUTTON_ON_SINGLE_PRODUCT', 'pe_add_enq_btn_69248');
Please test it on the staging site first and le us know if this works well for you 🙂
-
This reply was modified 2 years, 5 months ago by
WisdmLabs.
Hey @ehmarofficial
I just wanted to follow up on my previous comment. Could you please confirm if the provided solution resolved the issue for you 🙂
Hey @ehmarofficial
I hope the issue is resolved at your end. I will be closing this ticket for now 🙂
If you need any further assistance, please let us know, we are more than happy to help.