Keep in mind that you have to make sure you clear your WooCommerce cache (WooCommerce → System Status → Tools → WC Transients → Clear transients), as shipping methods are cached. Use Business Manager to create and manage the shipping methods available in your site, including tax classes, currency, order value, and shipping cost. Finally, you can create a shipping method and disable it so that it cant. Note: Free shipping will be only available for the customers who enter a valid coupon code. Another way is to go to each individual product and disable shipping for that product. This would mean that no editing of the child theme's function.php file was necessary and I would have the added bonus of having a plugin to re use on other projects if need be. Now, the Free shipping method has been created successfully. Of course this would make it difficult if an update to the child theme was ever released. The problem for me was the fact that the client's website was a purchased Child Theme and since you can't have a child theme of a child theme, I would have to edit the functions.php file of the child theme to get this function to work. No matter a quick Google search and I found just what I wanted. I recently came across the situation where a client wanted the flat rate shipping method removed if the free shipping method was available in the WooCommerce shipping cart, something that I would have thought would be standard behaviour in WooCommerce.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |