• Resolved jumbo

    (@jumbo)


    First, thanks for your great plugin. I’m looking to disable WooCommerce by default on everything, then only activate it for certain page types that need it, such as:

    • Checkout
    • Cart
    • My Account
    • Products
    • Any backend processing (stripe and paypal webhooks, checkout and account endpoinds, wp-json, etc)

    The reason is that it’s bloated and loading numerous scripts and CSS on every page. Trying to do a cleanup is too complicated. I’d rather use your plugin.

    Is there a way to use your plugin to make WooCommerce only load for those pages? Without causing webhooks, endpoints, and wp-json to fail? Sort of an inverse approach?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jose

    (@giuse)

    Hi @jumbo

    you can do it with the settings Custom URLs => Plugin By URL. I suggest you read here: https://freesoul-deactivate-plugins.com/how-deactivate-plugiins-on-specific-pages/plugin-by-url/

    You will need to write parts of the URLs where you want WooCommerce active.
    To match the processes like the checkout process, the “add to cart”…, I suggest you use *wc-ajax*

    In any case, I strongly suggest you to test all the WooCommerce processes after you use the Plugin By URL settings. Don’t forget also to add the endpoint URLs used by Stripe, PayPal…

    Another method would be to disable WooCommerce in all the Post Types, but the products, and in all the archives, and then enable it on the WooCommerce pages. This this last method you would have less risks one of the processes don’t work.

    I hope it helps.

    Have a great day!

    Jose

    Thread Starter jumbo

    (@jumbo)

    Great advice. You’re right, just excluding the common front-end URLs isn’t enough. I noticed several silent WooCommerce AJAX calls that access other URIs/URLs.

    I’d have to do a lot of testing to make sure I’m not excluding something necessary. But now I have a blueprint of what to do and what to avoid.

    Thanks @giuse

    Plugin Author Jose

    (@giuse)

    You are welcome @jumbo !

    Have a great day!

    Jose

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.