Skip to content

[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
WhatsApp
Share on email
Email
Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

About the author

Discussion

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