Title: Prevent Purchase for WooCommerce
Author: Andrew Munro / AffiliateWP
Published: <strong>March 19, 2015</strong>
Last modified: November 2, 2025

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/woocommerce-prevent-purchase.svg)

# Prevent Purchase for WooCommerce

 By [Andrew Munro / AffiliateWP](https://profiles.wordpress.org/sumobi/)

[Download](https://downloads.wordpress.org/plugin/woocommerce-prevent-purchase.1.1.0.zip)

 * [Details](https://tzm.wordpress.org/plugins/woocommerce-prevent-purchase/#description)
 * [Reviews](https://tzm.wordpress.org/plugins/woocommerce-prevent-purchase/#reviews)
 *  [Installation](https://tzm.wordpress.org/plugins/woocommerce-prevent-purchase/#installation)
 * [Development](https://tzm.wordpress.org/plugins/woocommerce-prevent-purchase/#developers)

 [Support](https://wordpress.org/support/plugin/woocommerce-prevent-purchase/)

## Description

This plugin requires [WooCommerce](https://wordpress.org/plugins/woocommerce/). 
It allows the site owner to prevent a product from being purchased by enabling a
checkbox. It also allows you to override the message on a per-product basis. This
will be useful for when you want to let customers know a product is only available
in-store but still have the product listed on your website.

How does it work?

This is a very simple plugin that hooks into WooCommerce’s woocommerce_is_purchasable
filter. When a product is deemed unpurchasable the “add to cart” button on the main
product listing is replaced with a “read more” button. When the customer views the
single product page they are shown a message that the product is not available for
purchase and the add to cart buttons are removed.

## Installation

 1. Unpack the entire contents of this plugin zip file into your `wp-content/plugins/`
    folder locally
 2. Upload to your site
 3. Navigate to `wp-admin/plugins.php` on your site (your WP Admin plugin page)
 4. Activate this plugin

OR you can just install it with WordPress by going to Plugins >> Add New >> and 
type this plugin’s name

Go to a product’s edit/publish screen and enable the “Prevent Purchase” checkbox.
Optionally you can enter in a custom message which is shown on the single product
page.

#### 1.1.0

 * Plugin renamed to comply with WooCommerce trademark requirements
 * Added nonce verification and security improvements
 * Improved input sanitization and output escaping

#### 1.0

 * Initial release

## Reviews

![](https://secure.gravatar.com/avatar/72b345b9f539c5aed4bd0d130c74b687185a92070f4376908ee4d7a39175f74e?
s=60&d=retro&r=g)

### 󠀁[Works – Has for years](https://wordpress.org/support/topic/works-has-for-years/)󠁿

 [aehageman](https://profiles.wordpress.org/aehageman/) December 13, 2020

I am about to install on a second site. We have used the plugin for a long time,
years.

 [ Read all 1 review ](https://wordpress.org/support/plugin/woocommerce-prevent-purchase/reviews/)

## Contributors & Developers

“Prevent Purchase for WooCommerce” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Andrew Munro / AffiliateWP ](https://profiles.wordpress.org/sumobi/)

[Translate “Prevent Purchase for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/woocommerce-prevent-purchase)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/woocommerce-prevent-purchase/),
check out the [SVN repository](https://plugins.svn.wordpress.org/woocommerce-prevent-purchase/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/woocommerce-prevent-purchase/)
by [RSS](https://plugins.trac.wordpress.org/log/woocommerce-prevent-purchase/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.1.0**
 *  Last updated **1 ⴰⵙⴳⴳⵯⴰⵙ ago**
 *  Active installations **70+**
 *  WordPress version ** 3.3 or higher **
 *  Tested up to **6.8.12**
 *  Language
 * [English (US)](https://wordpress.org/plugins/woocommerce-prevent-purchase/)
 * Tags
 * [disable](https://tzm.wordpress.org/plugins/tags/disable/)[prevent](https://tzm.wordpress.org/plugins/tags/prevent/)
   [purchase](https://tzm.wordpress.org/plugins/tags/purchase/)[woocommerce](https://tzm.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://tzm.wordpress.org/plugins/woocommerce-prevent-purchase/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/woocommerce-prevent-purchase/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/woocommerce-prevent-purchase/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/woocommerce-prevent-purchase/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/woocommerce-prevent-purchase/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/woocommerce-prevent-purchase/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/woocommerce-prevent-purchase/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/woocommerce-prevent-purchase/reviews/)

## Contributors

 *   [ Andrew Munro / AffiliateWP ](https://profiles.wordpress.org/sumobi/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/woocommerce-prevent-purchase/)