Since WooCommerce 2.4, the flat shipping rates interface have been really improved and it’s now so simple that it can even be confusing for some users. A common request is “how can I add new custom flat rates?”. Because, that’s true, in previous versions you could do it via the interface, but now you need custom coding. So, to add new custom flat rates, simply add this snippet to functions.php in the theme folder:
Yesterday I did a quick talk at Montreal meetup, in front of a great audience. I briefly explained what WooCommerce custom templates are, how to use them, and how to troubleshoot templates related issues. Here are my slides:
Not a common request but here a quick snippet that will allow you return the WooCommerce API V1 response in XML instead of JSON. Please note that REST API V2 does NOT allow you to get results in XML. … Get WooCommerce API V1 Response in XML
I was working on a WooThemes customer ticket today and he was having an issue with the products he bulk imported into his WordPress install with a plugin called WP All Import. All his products were showing fine in the WordPress dashboard but those products were not showing on the frontend. … WP All Import makes WooCommerce products invisible
When you create a plugin, I can be very useful to add a custom section to the System Status default page. When debugging a customer site you always need to check various details, and these details are pretty much always the same. That’s why adding such a debugging section is important. And the good news is that it’s very easy to do. Here a sample of code that will add a new section to the System Status page in WooCommerce. Simply paste the code provided below, paste it in your plugin source code (or in functions.php in the theme folder for testing purpose) and customize it!
I just realized that I never posted the video of my talk at WordCamp Paris 2015… Now it’s done! … My Talk at WordCamp Paris 2015
In WooCommerce, if you go to System Status > Tools you can see a list of useful default tools such as “Clear Transients”, “Recount Terms”, or “Install WooCommerce Pages”. But do you know that you can create your own custom buttons there? It can be very useful when you create a plugin that needs advanced tools. … WooCommerce: Add a Custom Action in Tools
Here is a quick snippet to make things a bit less confusing for your customers in your WooCommerce store. When you enable the use of coupons, WooCommerce adds a field on the cart page, and a box notice on the checkout page. But, if you enter a coupon in the cart page, and apply that coupon to the order, the notice is still displayed on the checkout page. … WooCommerce: Hide coupon box on checkout page if a coupon is already applied
This is a common request from WooCommerce users:
I want to ship specific products for free while some others will have shipping costs, but when a product having free shipping is in cart with another product that has shipping costs, free shipping isn’t available at all, what to do?