WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-prevent-repeat-purchases

WooCommerce Prevent Repeat Purchases WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Simple plugin to prevent customers from making repeat purchases of a product.

★ 6stars
1.3kcomposer installs
1.1.0latest · 6 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/craftpeak/woocommerce-prevent-repeat-purchases/archive/refs/heads/master.zip

On Packagist as craftpeak/woocommerce-prevent-repeat-purchases:

composer require craftpeak/woocommerce-prevent-repeat-purchases
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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!";
} );

Releases

2 releases.

Tag
Published
1.1.0 latest
Oct 19, 2020 6 years ago
Aug 15, 2018 8 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

WooCommerce Prevent Repeat Purchases 1.1.0 · audited by WP Registry

No security issues found.

Audited release
1.1.0
Findings
none
Worst severity
—
Content hash
9b516d3ddaff5acd0dd3e06f…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.