WooCommerce – Prevent Purchase

Prevents a product from being purchased

Author:Andrew Munro (profile at wordpress.org)
WordPress version required:3.3
WordPress version tested:4.1.1
Plugin version:1.0
Added to WordPress repository:19-03-2015
Last updated:19-03-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://sumobi.com
Total downloads:715
Active installs:100+
plugin download
Click to start download

This plugin requires 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.

Stay up to date

Become a fan on Facebook http://www.facebook.com/sumobicom

Follow me on Twitter http://twitter.com/sumobi_