easy-digital-downloads
easy-digital-downloads copied to clipboard
Add disable selling option for each product
Enhancement Request
We need to disable Selling any product with disabling Purchase button ( widget ) for each product we want and need this description to be shown for it : The sale of this product has been stopped .
So with this , we dont need to delete product ( Bad for SEO ) and the page of the product is still available like woocommerce . This option should be added much sooner than now !
This is a vital requirement for dynamism and an important feature for this plugin and any other similar plugins.
If this is something we want to do, we'll need to take it a step further and also allow disabling specific variable price IDs.
A couple things we'll have to discuss or take into consideration:
- Do we stop the 'add to cart' from being allowed via ajax or direct link?
- Do we stop manual (Software Licensing) and automatic (Recurring) renweals?
- Do we keep the shcmea tags for pricing available or just remove them all so the data is not interpreted by search engines?
My initial thoughts:
1. Do we stop the 'add to cart' from being allowed via ajax or direct link?
I'd say yes, stop the ability to add to cart using the button. Possibly just a disabled button? And for direct link, could a cart error work? Not sure, as it seems like you'd have to have the product in the cart in order to then display the fact that it is not available for sale.
2. Do we stop manual (Software Licensing) and automatic (Recurring) renweals?
In my opinion, SL and RP should still work. Customers already have the product. I think this feature should be focused on stopping new sales.
3. Do we keep the shcmea tags for pricing available or just remove them all so the data is not interpreted by search engines?
I'd say leave schema data in place, and all other things related to data, description, etc. I would focus only on blocking new sales.
My thoughts are based on the idea that this is a feature that would be used temporarily for each product. Disable it on Monday, enable it again on Thursday. No unexpected consequences.
1. Do we stop the 'add to cart' from being allowed via ajax or direct link?
The button should be disabled but not hidden , direct link needs to be expired and the button should still be displayed and this text will appear: "The sale of this product has been stopped" instead of the payment or price or anything else that was displayed according to the template as the button was written and every one who attempt to access the direct link should be redirect to cart and the cart shown that text i advised before.
2. Do we stop manual (Software Licensing) and automatic (Recurring) renweals?
Should still work for SLA reasons.
3. Do we keep the shcmea tags for pricing available or just remove them all so the data is not interpreted by search engines?
For SEO reasons, nothing shouldn't removed. just user not be able to purchase it anymore, according to the protocol I recommended And wrote this.
So how nice sean said :
Disable it on Monday, enable it again on Thursday. No unexpected consequences.
Good deal seams like everyone is in alignment with where I stand on those questions as well. I wanted to ask without stating my side to see what the prompted responses would be :).
That's 3/3 on the direction listed above.
I think there are a number of things we'll have to work out before we do this.
- What do we do with Software Licensing? Can you activate/deactivate licenses?
- Subscriptions, what do we do with those?
- Content restriction, how does this affect the Content Restriction extension?
Going to remove from 3.1 so we can take some time to figure all this out and really make sure we pay attention to the details of how this affects the ecosystem.