Support » Plugin: Product Enquiry for WooCommerce » Theme Activate but not working

  • Resolved ehmarofficial

    (@ehmarofficial)


    i have instaled this plugin and activate it and all settings ok in plugin settings but they can’t show inquiry button after add to cart

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WisdmLabs

    (@wisdmlabs)

    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 🙂

    Thread Starter ehmarofficial

    (@ehmarofficial)

    I am currently using porto theme demo shop 38. elementor.
    http://microvisionint.com/shop/

    Plugin Author WisdmLabs

    (@wisdmlabs)

    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.
    Plugin Author WisdmLabs

    (@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 🙂

    Plugin Author WisdmLabs

    (@wisdmlabs)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Theme Activate but not working’ is closed to new replies.