Hi, thanks in advance for share this enhance for this plugin.
Actually im working on a subscription website and i want to limit to 1 purchase per client on all website. I tried other snippets but i cant renewal my subscriptions. I see your plugin respect that but currenly i cant see this is working because let me buy another subscriptions, so i think the core core change. _unanfortully im not good at all with code so i write this here.
Hope you can update this because is so usefull.
King Regards
I have installed it and set the limit to 6 on a product with 6 active subscriptions and it is not doing anything.
Basically you can still add the product to the cart. and If I change the quantity available to 0 or make the product Out of stock renewals do not work as they can not be added to the cart if the product is out of stock.
I have read the note about not restricting retroactively. Does this mean if I have 8 active subscriptions before I install the plugin it wont start restricting until 8 more are booked?
For example, if sitewide restriction is set at '1', there's no way to explicitly set the product-level restriction to '0' to deactivate it for that product.
Possibly add a checkbox to 'activate product-specific restriction' or something very obvious like that.
For example, if your product is restricted to "1" subscription, you could still add a quantity of "2" to the cart and be able to check out with that, since we aren't validating the cart. We are only making the item not purchasable if there already exist that many subscriptions for it when visiting the product page.
I can't think of any way to address this, so it's possible that this plugin will only work if "limit to one" is set, to prevent this.
Add UI to specify number of subscriptions-per-product. Probably best as a per-product setting, in the advanced tab. (check out subscription limiting setting for reference)
Currently, the plugin doesn't account for multiple quantities of a subscription being added to the cart. When hooking into woocommerce_subscription_is_purchasable I need to also check if there are multiple quantities in the cart, and add those to my check.
It might be nice for admins to see the current running list of products with active subscriptions. This could be as a JS hidden area on the subscriptions options tab, or a separate page.
This is a feature request that I predict will happen. I can add it in at a later date if it becomes necessary.
Would need to customize:
Single product warning
Cart warning
Default WooCommerce "is not purchasable" alert box
Could set as a storewide setting in the options, or on a product level.
Another option might be to make it translatable, so that people could use Say What? to change the text themselves. That would have the added benefit of making it translatable for international users as well.
First of all, thank you for the plugin. :) Secondly, I have a store with 3 different types of subscriptions each with a monthly and yearly option. Because these are relatively different products we have them separately (and not as variable).
Is there an option that limits the active subscriptions per user to one but lets the user buy another subscription instead of their current one? In this case, users could upgrade or downgrade but have only one subscription at any given time.
I am having an issue where one of my customers cannot purchase a subscription. It set to have one active subscription at a time but there are no active subscriptions currently for the specific product.
I see the product listed in the cache but I can't clear the cache when deactivating the plugin. How can I clear the cache?