• Resolved cotm

    (@cotm)


    Hi there,

    I’m setting up a woocommerce webstore and installed your plugin to be able to search product tags.
    My problem is that though I inserted the shortcode to only one specific page, your plugin seems to have inserted itself somehow to all product-archive pages (not the original wp-archive pages), including the store home page. I checked the original theme’s archive template and the wc archive template but I don’t see anything that would explain that behavior.
    My guess (based on the position on the pages) is it is somehow automatically hooked to the woocommerce_before_shop_loop hook, and I tried to remove it through functions php,

    remove_action( ‘woocommerce_before_shop_loop’, ‘woo_advance_search’ );

    but it didn’t work.

    Could you help me please to solve this?

    thanks

    EDIT

    Meanwhile I’v found this in your class-woo-advance-search.php:

    $this->loader->add_action( ‘woocommerce_before_shop_loop’, $plugin_public, ‘woo_advance_search_shortcode’, 30 );

    and tried this

    remove_action( ‘woocommerce_before_shop_loop’, ‘woo_advance_search_shortcode’, 30 );

    didn’t work either.

    • This topic was modified 7 years, 11 months ago by cotm.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dotstore

    (@dots)

    Hello @cotm,

    Hope you doing well….!

    Thanks for contacting use.Please do not change or update code in plugin file you can modify anything in your function.php.also, our plugin working fine on our side can please provide your wp-admin details via our support https://store.multidots.com/dotstore-support-panel/.

    In this ticket you can mention free plugin or wp-admin details so we can check exactly what issue appear then give you a proper solution.

    Thank You,
    Multidots

    Thread Starter cotm

    (@cotm)

    Hello,

    thank you for getting back to me so quickly.
    Meanwhile I’ve found another solution, so my question became irrelevant.

    Thank you again for your kind response.

    Have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘plugin inserts itself to archive pages’ is closed to new replies.