jrick1229 / woocommerce-subscriptions-auto-complete-orders

Auto completes orders upon subscription creation and upon payment confirmation on renewal orders.
GNU General Public License v3.0
4 stars 2 forks source link

Is it possible to only autocomplete virtual orders (new subscriptions and renewals)? #5

Open jonasskafte opened 4 years ago

jonasskafte commented 4 years ago

Hi there @jrick1229,

Firstly, many thanks for providing such a great and much-needed plugin to the whole of the WP community! It's truly appreciated!

I run a website where I sell both subscriptions and products and I'd like to make only subscriptions (new subscriptions as well as renewals) auto-complete. However, I'd like to only affect those kinds of orders and not normal orders of products.

Is this something that's possible with your plugin, and if not, is it a feature you'd perhaps consider implementing? (I would suggest how to do this myself, but unfortunately I am not skilled enough to do that).

I've found this snippet, which achieves what I'd like to do, however, I couldn't get it to work: https://gist.github.com/willgorham/874c4ac943fc27443cd862a93764d659 – as you can see, this snippet simply autocompletes all orders that only contain virtual products.

Hope to hear back from you and many thanks for your time.

Cheers!

jrick1229 commented 4 years ago

Hey @jonasskafte - I believe this would suit you better: https://github.com/jrick1229/autocomplete-orders-options Thanks!

jonasskafte commented 4 years ago

Thanks @jrick1229! -both for your quick response and for the solution! πŸ‘

I can see in this plugin that you/it is somehow associated with Propress (Propress is credited), but the other plugin that you linked to above is only associated with you. Any chance the Options version will become the main official one and is there any chance this feature will become native to Subscriptions?

Thanks!!

jrick1229 commented 4 years ago

@jonasskafte - it was associated with Prospress, Inc before Prospress, Inc was acquired by Automattic. It’s free to use and that should actually be removed. As far as this going into core, that is very, highly unlikely. Anything that can be done with a filter or action is typically left for customization (such as this). This results in less possible breaking changes in both minor and major updates.

jonasskafte commented 4 years ago

Thanks @jrick1229! I appreciate that you took the time to explain this to me πŸ‘ Cheers!