Disable Downloadable Repeat Purchase – WooCommerce + WPML

Description

This WooCommerce plugin prevents a user from being able to purchase a downloadable product that they already own. In place of the “Add to Basket” button on the product page, a message will display informing the user they already own the item, and links to download the linked files are provided there. Those links are the special links to the file that are provided on the “My Downloads” page, or part of the “My Account” page.

If the user has had a refund for the item the normal “Add to Basket” button will show again, allowing purchase.

On any page that displays the products other than the single product page, the button shows as “Read More”, as though the product is not available.

The plugin is very fast, works together with WPML and can show the output in any language!

Screenshots

  • Nonpurchasable-message in theme Twenty Seventeen
  • Nonpurchasable-message in theme Storefront
  • Nonpurchasable-message in theme Shopkeeper
  • Nonpurchasable-message in theme Shop Isle
  • Nonpurchasable-message at variable product
  • Setting simple product
  • Setting variable product

Installation

Just install the plugin as normal and activate it. Nothing else required.

FAQ

Installation Instructions

Just install the plugin as normal and activate it. Nothing else required.

How does it work?

The plugin file adds 2 main functions that hook into WooCommerce using add_filter on ‘woocommerce_is_purchasable’, and ‘woocommerce_single_product_summary’.

It uses div tags, including “woocommerce-info wc-nonpurchasable-message”, which means it should be styled in conjunction with any WooCommerce theme. Tested on Shopkeeper.

Reviews

Read all 2 reviews

Contributors & Developers

“Disable Downloadable Repeat Purchase – WooCommerce + WPML” is open source software. The following people have contributed to this plugin.

Contributors

“Disable Downloadable Repeat Purchase – WooCommerce + WPML” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Disable Downloadable Repeat Purchase – WooCommerce + WPML” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.2.2

  • Fix showing expire date

1.2.1

  • Minor changes

1.2.0

  • Enable/Disable option on each simple/variable product

1.1.1

  • WooCommerce: Upwards compatible with the upcoming WooCommerce 3.2

1.1.0

  • New functions
  • New WC 3.0 functions to prevend php error messages
  • Check requirements during plugin activation