Supporting free shipping with custom shipping method
-
Hi, I have created a custom shipping method for delivery for my product – i.e. on checkout, you can choose a shipping choice like “Deliver Monday morning 8-12,” “Deliver Tuesday afternoon 12-4” etc.
Now I want to give my users a coupon and offer free shipping with the coupon.
The current Woo coupon functionality for free shipping requires that you add a “free shipping” shipping method. However, the free shipping method in Woo doesn’t let me do the custom delivery times that I need to do.
What will work better is for me to change my custom shipping method code, and if the user is granted free shipping with a coupon, I can just change the price to 0.
What hooks/code should I use to accomplish this? I don’t need detailed line-by-line code ?? but some sense of the best way to approach this would be great. I have searched the Woo docs at length but can’t find anything to help me with this.
Any guidance/direction would be greatly appreciated.
You can see a sample of my custom shipping method on this page, btw – just add a product to the cart, and on the cart page, try postal code “8001”… then you can play with the shipping choices there. https://df-food.ch
thanks,
Eric
- The topic ‘Supporting free shipping with custom shipping method’ is closed to new replies.