Support » Plugin: Product Enquiry for WooCommerce » Does not work in conjunction with Woo shortcode

  • Resolved Onno454

    (@onno454)


    Did not work in conjunction with:
    [product_page id=”99″]
    [product_page sku=”FOO”]

    On the product age itself it does work.

    Youn have a fix for this? thanks!

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

    (@wisdmlabs)

    Hi Onno454,

    You need to go to the main plugin file that is product-enquiry.php file and replace the following line no: 54
    add_action(‘wp_head’, ‘wdm_display_btn_func’, 11);
    with this code line:
    add_action(‘woocommerce_before_single_product’, ‘wdm_display_btn_func’, 11);

    Thanks for the fast response.
    The button shows up now, but nothing happens when clicked?

    Hope you have an idea, so I could use this plug-in?

    Thx again

    Plugin Author WisdmLabs

    (@wisdmlabs)

    Hi Onno454,

    Add following line after “$form_data = get_option(‘wdm_form_data’);” on line 92
    global $isProduct;
    $isProduct = true;

    Change global $wpdb,$post; to global $wpdb,$post, $isProduct; in function ask_about_product(line 107).

    Change if(is_singular(‘product’)) to if($isProduct) in function ask_about_product(line 117).

    Add unset($isProduct); at end of if block(line 189).

    *NOTE : * Line numbers may vary in your case so compare the code while editing.

    Thanks a lot, that worked like a charm.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does not work in conjunction with Woo shortcode’ is closed to new replies.