• Resolved doalpa

    (@doalpa)


    Hi
    I’d deactivated ?wc-ajax=get_refreshed_fragments on my website because it slows down the site load time alot. But after I installed and activated TI Wishlist plugin, there was no way do deactivated ?wc-ajax=get_refreshed_fragments; I tried many ways including using php code and third party plugins to solve this problem, but none of them was able to do so as long as Wishlist plugin is active.
    I’d appreciate any help on how to use this Wishlist plugin and having refreshed_fragments deactivated without problem.

    sincerely – thanks

    • This topic was modified 6 years, 1 month ago by doalpa.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author templateinvaders

    (@templateinvaders)

    Hi @doalpa

    We’ve added a new filter in the latest update (version 1.9.11) to disable wc-cart-fragments from 3rd party code.

    You need add to functions.php of active theme the next code:
    add_filter( 'tinvwl-wc-cart-fragments', '__return_false' );

    Note that it will disable only call from our plugin while other plugins/themes can call it also!

    Kind regards.

    Thread Starter doalpa

    (@doalpa)

    Thank you so much for your response. But doing so, will disable the plugin’s functionality for adding to wishlist buttons, so it will no more add products to wishlist by clicking add buttons!

    Is there any way to have both adding to wishlist functionality and also refreshed_fragments deactivated?

    If not, is there a way to only disable refreshed_fragments on Home page or a specific page?

    sincerely – thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wishlist plugin forces ?wc-ajax=get_refreshed_fragments activation’ is closed to new replies.