WooCommerce: Fix the “uploaded file exceeds the upload_max_filesize directive in php.ini” error

If you’re running a WooCommerce store and trying to upload a product image, import a CSV, or install a plugin/theme, you might encounter the dreaded “uploaded file exceeds the upload_max_filesize directive in php.ini” error.

This message means the file you’re trying to upload is larger than what your server currently allows. While this is more of a hosting/server-side limitation than a WooCommerce issue, it’s a common roadblock for store owners—especially those on shared hosting or dealing with large files.

The good news? You don’t necessarily need to mess with php.ini or contact your host right away. In many cases, you can override this upload limit with a quick tweak to your .htaccess file—something you likely already have in your root WordPress directory.

Let’s look at how to do that, and get rid of that error for good.

Continue reading WooCommerce: Fix the “uploaded file exceeds the upload_max_filesize directive in php.ini” error

WooCommerce: Hide Prices on the Shop & Category Pages

Interesting WooCommerce customization here. A client of mine asked me to hide/remove prices from the shop page and category pages as she wanted to drive more customers to the single product pages (i.e. increasing the click-through rate).

As usual, a simple PHP snippet does the trick. I never recommend to use CSS to “hide” prices, as they would still be visible in the code – PHP stops the prices from loading, so they’re invisible to the user.

Continue reading WooCommerce: Hide Prices on the Shop & Category Pages

WooCommerce: How to Export/Import Products

Maybe you don’t know that, but WooCommerce has an inbuilt functionality for importing and exporting products from CSV/XML files. Therefore, most of the times, you don’t need a premium import/export plugin.

Simply go to WordPress Dashboard > Products > All Products and click on Import (or Export) and follow the instructions. That’s it!

This is a new functionality introduced since WooCommerce 3.0 and it’s working like a charm.

For more advanced import/export, automatic updates from server and more complex functionalities, take a look at WP All Import + WooCommerce Add-On

WooCommerce: Add Content to a Specific Order Email

Customizing WooCommerce emails via the WordPress dashboard is not easy and – sometimes – not possible. For example, you can’t edit or add content to them unless you’re familiar with code.

Well, here’s a quick example to learn how to add content to any WooCommerce default order email. In this case study, our goal is showing an upsell to get buyers to go back to the website and buy with a coupon code. Enjoy!

Continue reading WooCommerce: Add Content to a Specific Order Email

WooCommerce: Hide “Showing x-y of z results” @ Shop Page

This is quite an annoying thing in WooCommerce when you have just a few products.

Besides, if you only have 1 product in a given category, the notice “Showing the Single Result” will appear on top of the category page.

So, how do we remove the whole “Showing 1–15 of 178 results” element from the Shop, Category, Tag and product loop? Here’s the fix. enjoy!

Continue reading WooCommerce: Hide “Showing x-y of z results” @ Shop Page