| 开发者 |
softminal
diptosoftminal |
|---|---|
| 更新时间 | 2026年7月5日 03:19 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0+ |
| 版权网址: | 版权信息 |
Yes. Enable Prevent Repurchase under WooCommerce → Settings → Purchased Badge → Prevent Repurchase. Owned products become non-purchasable for that customer and the Add to Cart button is replaced with a customizable notice. You can apply it to all products or only virtual/downloadable ones.
Turn on Prevent Repurchase. For any product the customer already owns, the Add to Cart button is removed and replaced with a notice you can customize. Combine it with the badge so customers see why the button is gone.
Yes. A "My purchases" tab is added to the WooCommerce My Account page (on by default). You can also place the list anywhere with the [pcbw_purchased_products] shortcode or the "My Purchased Products" Gutenberg block.
Yes. Badges render inside Product Collection grids and on block-based single product templates, as well as classic themes.
Yes. Under the General settings you can exclude individual products by ID or entire categories from both the badge and repurchase blocking.
Yes! If a customer purchases any variation of a variable product, both the variation and the parent product will be marked as purchased.
Typically, you'll want to select "Completed" and "Processing" statuses. However, you can customize this based on your business needs. For example, if you want to show badges only for fully completed orders, select only "Completed".
No, the badge only displays for logged-in users. This is because the plugin needs to check the user's order history, which requires authentication.
The plugin is optimized for performance using caching. Purchase data is cached per user and automatically cleared when new orders are placed. The plugin uses efficient WooCommerce APIs to minimize database queries.
The plugin automatically clears the cache when order statuses change, ensuring badges are always up-to-date.
[pcbw_purchased_products] shortcode and a Gutenberg blockpcbw_badge_html, pcbw_badge_text, pcbw_is_purchased, pcbw_repurchase_blocked, pcbw_product_excluded