I’m trying to make a custom plugin to limit my trial version (its like amazon prime free subscription days) product of WooCommerce (for example my product has 10 days of free subscription and after that a user can’t rebuy it), as now I’m facing an issue with my plugin.
Once the subscription expires, the user can’t add the actual product into the cart, and It’s giving me this error ”{product_name} has been removed from your cart because it can no longer….”
I expect to limit my trial version to user just for 10 days, and after that user has to buy a premium subscription. I'm using Woocommerce subscriptions by SkyVerge and Woocommerce Memberships