Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - WooCommerce - Set expiry time after product purchase #6

Open
procontentxyz opened this issue Feb 27, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@procontentxyz
Copy link

procontentxyz commented Feb 27, 2021

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)

@richardtape richardtape changed the title Feature request! Feature request - WooCommerce - Set expiry time after product purchase Feb 28, 2021
@richardtape richardtape added the enhancement New feature or request label Feb 28, 2021
@richardtape
Copy link
Owner

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.

@procontentxyz
Copy link
Author

Thank you sir for wishful comment. :)

I will be waiting for you!

👍 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants