content-visibility icon indicating copy to clipboard operation
content-visibility copied to clipboard

Feature request - WooCommerce - Set expiry time after product purchase

Open procontentxyz opened this issue 4 years ago • 2 comments

First of all thank you for such an amazing plugin.

You already promised for this feature: "Show a block when someone has purchased something from your WooCommerce store..."

In addition, I want to request some thing:

Show a block when someone has purchased something from our WooCommerce store + Let this also expire by number of hours/days since the date of purchase.

This way your plugin can be used as a Pay Per View (Block) plugin with Hours/Days based expire after purchasing any specific woocommerce product.

If you implemented this feature, your plugin will be rocking.

God bless you.

One tip for you:

Instead of using CRON (if you are using it)

Use new modern method suggested by WordPress:

That is action scheduler API:

Ref: https://actionscheduler.org/ (provided by wordpress)

Ref: https://woocommerce.github.io/code-reference/namespaces/default.html#function_wc_customer_bought_product (inbuilt function to check if bought)

I don't know why but I think:

This plugin can prove as a life saver for many of us!

Using your plugin will help too much for all.

Please consider this feature that I have shared above.

Content Future is: pay per view with expiry (hours/days)

procontentxyz avatar Feb 27 '21 04:02 procontentxyz

Thanks for your lovely comments and for the idea. The idea of "expiry" is something that I've been thinking about not just for WooCommerce but for other add-ons too. Expiry can either be by the website visitor manually choosing to no longer see something (think of a banner that has a 'close' button which means someone won't see that again if they press the close button) or it could be time-based on an event set by the content's author - such as the way you described.

It's definitely something on my radar, I need to collect some thoughts in terms of other use-cases for expiring content so that I can build something that is useful across multiple add-ons.

I'll leave this issue open for now; when I create the repo for the WooCommerce add-on I'll move it to there (and link to it here).

Again, thanks so much for the comments and for the idea.

richardtape avatar Feb 28 '21 22:02 richardtape

Thank you sir for wishful comment. :)

I will be waiting for you!

👍 :)

procontentxyz avatar Mar 01 '21 01:03 procontentxyz