craftpeak / woocommerce-prevent-repeat-purchases
A WooCommerce plugin to prevent customers from purchasing products more than once. Only works with Simple products.
Package info
github.com/Craftpeak/woocommerce-prevent-repeat-purchases
Type:wordpress-plugin
pkg:composer/craftpeak/woocommerce-prevent-repeat-purchases
This package is not auto-updated.
Last update: 2026-03-17 19:02:27 UTC
README
A WooCommerce plugin to prevent customers from purchasing products more than once.
This only works with Simple products!!
Requirements
- WooCommerce
- PHP 7+ (not actually, but don't be that person)
Installation
composer require craftpeak/woocommerce-prevent-repeat-purchases
(or do it the old fashioned way)
Setup
For Simple products, there is a "Prevent Repeat Purchases?" checkbox in the "General" product metabox. If checked,
customers will only be able to purchase the product once (per account). This works via the wc_customer_bought_product
function, and is set on a product-by-product basis.
Customization
If you would like to change the message showed to users when they can't make a repeat purchase, use the
wc_repeat_nonpurchaseable_message filter, for example:
add_filter( 'wc_repeat_nonpurchaseable_message', function() {
return "Ya can't have it AGAIN!";
} );