How to Temporarily Disable WooCommerce Shop Page

Running an online store means being available to customers around the clock, but sometimes you need to pause operations temporarily. Maybe you’re going on vacation, dealing with staff shortages, or handling inventory issues that require shutting down sales for a while.

Simply deactivating the WooCommerce plugin isn’t a good solution – it breaks all your product links and creates a poor experience for visitors who find your site through search engines. Here are better approaches for temporarily disabling your shop while maintaining a professional appearance.

When you might need to pause your shop

There are several legitimate reasons for temporarily disabling a WooCommerce store:

Holiday closures – If you’re selling physical products and won’t be available to process orders or handle shipping during holidays or vacations.

Staff shortages – When you don’t have enough people to handle order processing, customer service, or fulfillment.

Inventory transitions – During major inventory changes, system migrations, or when switching suppliers.

Seasonal businesses – Some businesses naturally have off-seasons where it makes sense to pause operations rather than leave the store running with limited inventory.

What not to do

Before looking at good solutions, here are approaches to avoid:

Don’t deactivate the WooCommerce plugin – This immediately breaks all product links and creates 404 errors for pages that are still indexed in search engines.

Avoid full maintenance mode – Putting your entire WordPress site in maintenance mode is overkill if you just want to pause sales. Visitors should still be able to read your blog, contact you, or learn about when you’ll reopen.

Don’t close for individual product issues – If you’re just out of stock on specific items or having delivery delays, disabling the entire shop sends the wrong message. Customers might think you’ve gone out of business and look for alternatives.

Method 1: Code-based shop pause

If you’re comfortable editing theme files, you can add code to disable WooCommerce functionality while keeping product pages visible.

This approach removes “Add to Cart” buttons and checkout functionality while displaying a message about the temporary closure.

Here’s the basic code structure to add to your theme’s functions.php file:

// Disable WooCommerce cart and checkout functionality
add_action('init', 'temporarily_disable_shop');

function temporarily_disable_shop() {
    // Remove add to cart buttons
    remove_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);
    remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30);
    
    // Remove checkout functionality
    remove_action('woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20);
    remove_action('woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 20);
    
    // Add notice to shop pages
    add_action('woocommerce_before_main_content', 'shop_closure_notice', 5);
    add_action('woocommerce_before_cart', 'shop_closure_notice', 5);
}

function shop_closure_notice() {
    wc_print_notice('Our online shop is closed today.', 'notice');
}

Important: Always use a child theme when editing functions.php files. If you edit the main theme’s files, your changes will be lost when the theme updates. This is how your product page looks like after you add the code and save the PHP file.

There is a notice of “Our Online Shop is Closed Today 🙂” displayed at the top of any product page and the Add to Cart button is removed too. You’re able to customize this message in the last line of the code above.

example-woocommerce-vacation-store

This method effectively disables purchasing while keeping your product pages visible for browsing. You can customize the closure message and even include reopening dates.

2. Hide Individual WooCommerce Products via Password Protection

Besides securing customer-specific or private product pages, password protection also permits you to make your WooCommerce products unavailable to shoppers.

The Password Protect WordPress (PPWP) Pro plugin helps lock your WooCommerce products with one or multiple passwords. Users will see a form requiring them to enter the correct password when attempting to view and purchase private items.

The default message is “This content is password protected. To view it please enter your password below:” Instead, you can change it into “Our store is temporarily disabled at the moment. Enter the correct password to view the product” to make it more suitable for your usage.

The instruction below shows you how to password protect individual product pages using the PPWP Pro plugin:

Download, install and activate the PPWP Pro plugin. Head to the plugin Settings page → Chose Products in the Post Type Protection section

ppwp-password-protect-custom-post-type

Visit Products on your WordPress navigation menu → click Password Protect under the desired product pages.

ppwp-password-protect-product

Now you can create your own password or auto-generate a new one;. It takes time to lock all products in your store one by one, especially when you own online fashion, woodworking, or house furniture stores that sell various types of goods. As an alternative, you can consider password protecting certain areas like categories or locking the entire shop page.

3. Temporarily Disable WooCommerce Categories

Securing WooCommerce categories enables you to put areas of your store on pause. Once protected, all products under a category become private. This method requires you to add a powerful extension along with the PPWP plugin, namely Access Levels.

To assign passwords to WooCommerce categories, you need to:

Download and activate the Access Levels extension. Go to the Access Levels settings page under the Password Protect WordPress icon.

ppwp-access-levels

Add a new base.

add-new-base

Edit the base by adding product categories in the Base section and set their levels.

edit-wordpress-access-levels

Move the Manage Password tab and set passwords for these category levels.

Passwords with higher levels can be used to unlock the same or lower-level content. For example, users having the password “/C$b8~u^m-2+dMmK” of level 2 are able to access all product pages in the Story, Block, and Edge Case levels.

4. Use the WooCommerce Integration to Disable Shop Page

Apart from securing individual WooCommerce products as well as categories, PPWP Pro also puts the entire shop page on hold mode with a few mouse clicks. Have the WooCommerce Integration extension installed and activated along with the PPWP Pro plugin.

Visit the Pages section from your admin dashboard and look for the Shop page, and click Password protect.

ppwp-password-protect-shop-page

Set your password or click “Auto-generate a new password” The entire shop and all your product pages are locked with the same passwords now. Customers just need to enter the correct password to see this shop page, contained products and categories automatically become accessible too.

Temporarily Disable WooCommerce Store within Seconds

It’s necessary to temporarily disable your WooCommerce shop for a variety of reasons, and pausing your shop notifies visitors that your store is not available. There are 4 ways to deactivate your WooCommerce store, from adding code snippets to the functions.php files to password protecting single products, categories, and the whole shop page.

Bear in mind that you should create a child theme and edit your files there if you plan to apply the first method. For the other solutions, simply install the PPWP Pro plugin and its Access Levels plus WooCommerce Integration extensions to disable the WooCommerce Shop page.