I’m setting up a subscription website using WooCommerce. I need to be able to adjust the free trial period based on the coupon code supplied at checkout. It doesn’t appear that this capability is available by default, but I’m hoping that I can achieve this with some custom code.
Does anyone have any pointers on how I might go about doing this? Is there a WooCommerce hook I can use to easily build this functionality? I really appreciate whatever help is provided!
Yes. You can do this using my “Free trial coupon for woocommerce subscriptions” plugin to extend Free Trial in coupon code. It will work if you use the Woocommerce Subscriptions plugin.