[Snippet] WooCommerce Disable Free Shipping for Shipping Class

If you want to deactivate free shipping on WooCommerce for certain products, this snippet may help you. It disables all free shipping methods for products of a particular shipping class.

This snippet allows you to disable free shipping if a product of a particular shipping class is added to the cart. Just add the slug of your shipping class and once a product of this shipping class is in the cart, free shipping methods will be deactivated automatically.

Get the Snippet

Find this snippet on Github.

Need Help?

Please let us know in the comments if the snippet does not work for you or if you need any help.

Share on whatsapp
Share on email
Share on facebook
Share on twitter
Share on linkedin

About the author


Join the discussion about ‘WooCommerce Disable Free Shipping for Shipping Class’

Leave a Reply