Here is a collection of tips, snippets, customizations, plugin reviews and how-to tutorials to answer your biggest WooCommerce questions, curated by Rodolfo Melogli.
Please remember feedback is vital and that your social media shares, blog comments and WooWeekly newsletter sign ups help me understand which WooCommerce content works and which not, so that I can fine-tune my writing :)
Thank you in advance and enjoy!
WooCommerce Blog Search Filters
Top searches:
Visual Hook Guides - Checkout Page - Cart Page - Single Product Page - Add to Cart - Emails - Shipping - Prices - Hosting
Popular tags:
Accessibility (2) -
ACF (6) -
Add to Cart (31) -
Affiliate (4) -
Ajax (4) -
AOV (10) -
Apps (2) -
B2B (11) -
Backorder (4) -
Blog (1) -
BOGO (5) -
Breadcrumb (3) -
Bulk Discounts (4) -
Cart Abandonment (9) -
Cart Page (77) -
Cart Totals (3) -
Catalog (8) -
Category Page (16) -
Checkout Fees (6) -
Checkout Fields (30) -
Checkout Page (117) -
Child Theme (2) -
Conditional Logic (11) -
Contact Form (4) -
Coupon (11) -
CRO (6) -
Cron Jobs (1) -
Cross-sells (8) -
CSS (9) -
Currency (6) -
Custom fields (11) -
Customer (4) -
Customer Login (6) -
Customer Registration (6) -
Customization (14) -
Database (5) -
Dimensions (1) -
Discount (8) -
Divi Theme (2) -
Downloadable (4) -
Dropshipping (2) -
Dynamic Pricing (5) -
Elementor (13) -
Email Marketing (12) -
Emails (24) -
Empty Cart (2) -
External Products (5) -
Facebook (1) -
Featured Image (11) -
Flatsome Theme (1) -
Freelancing (1) -
Frontend (4) -
GDPR (5) -
Geolocation (5) -
Germanized (1) -
Getters (3) -
Gift Cards (3) -
Google Ads (1) -
Google Analytics (19) -
Grouped Product (2) -
Gutenberg (4) -
Hidden Products (3) -
Hosting (6) -
Import/Export (4) -
Invoicing (3) -
Jetpack (3) -
Kirki (1) -
Landing Page (2) -
LMS (2) -
Logged in (5) -
Loop Pages (9) -
Marketing (13) -
Membership (2) -
Metorik (6) -
Mini Cart (1) -
Multi-Vendor (2) -
My Account (32) -
Online courses (2) -
Order (37) -
Order Notes (3) -
Order Pay (4) -
Order Status (13) -
Payment Gateways (26) -
PayPal (13) -
PeachPay (1) -
Performance (9) -
Permalink (6) -
Points and rewards (1) -
Premium Snippet® (2) -
Price (37) -
Privacy Policy (2) -
Product Add-Ons (5) -
Product Attributes (1) -
Product Badges (3) -
Product Bundles (1) -
Product Category (18) -
Product Filter (4) -
Product Gallery (2) -
Product Quantity (15) -
Product Reviews (5) -
Product settings (1) -
Product Sorting (3) -
Product Table (5) -
Product Tabs (12) -
Product Tag (4) -
Product Visibility (4) -
Purchased (3) -
Quick view (1) -
Redirect (9) -
Related Products (10) -
Request a Quote (5) -
REST API (1) -
Sale Price (8) -
Sales (1) -
Sales Conversion Rate (22) -
Search (14) -
Security (1) -
Sensei (1) -
SEO (16) -
Shipping (32) -
Shop Page (57) -
Shopify (2) -
Shoptimizer theme (5) -
Short Description (4) -
Shortcodes (14) -
Sidebar (2) -
Single Product Page (114) -
SKU (7) -
Social Media (1) -
Speed (3) -
Staging (5) -
Stock (20) -
Storefront Theme (17) -
Stripe (7) -
System Status (5) -
Tax (3) -
Terms and Conditions (3) -
Thank You Page (18) -
Tracking (4) -
Translation (5) -
Troubleshooting (7) -
Up-sells (11) -
Update Cart (3) -
User Roles (7) -
UX (4) -
Variable Products (24) -
Variation (5) -
Virtual Product (1) -
Weight (6) -
Wholesale (7) -
Widget (4) -
Wishlist (3) -
WooCommerce Admin (45) -
WooCommerce Blocks (1) -
WooCommerce Bookings (1) -
WooCommerce Brands (1) -
WooCommerce Coupons (6) -
WooCommerce Deposit (2) -
Woocommerce Subscriptions (8) -
WordPress (2) -
Latest WooCommerce Tutorials
Here’s how to remove those annoying “yellow” product category counters in the WooCommerce shop / category / loop pages. You will find several versions of this snippet all over the internet…. but in case you haven’t found it yet, here’s the simple one-liner PHP code you need to add to your functions.php file.
Continue reading WooCommerce: Remove Product Category Counters

A WooCommerce client wanted to show some text in the checkout page, and specifically “Please allow 5-10 business days for delivery after order processing.” so that customers are aware of how shipping works. This is a vital information you should disclose on every page of your ecommerce website, and of course on the checkout page too. Continue reading WooCommerce: Add Shipping Notices on Checkout Page

A client of mine decided to add a little notice (“30-day return policy offered”) just above the Add to Cart button on the WooCommerce single product page. There is no need to say this will allow her to increase the click-through rate and her sales conversion rate. Continue reading WooCommerce: Display Content Above Add to Cart @ Single Product Page
Interesting topic. A client of mine asked me to remove the image from only one single product page – but not from ALL product pages. The same story applies if you want to apply CSS changes to any specific WooCommerce page. Here’s how I did it.
Continue reading WooCommerce: Apply CSS to One Product Only

WordPress automatically limits your PHP memory to 40MB. This may result in your WooCommerce website being slow to process information, searches, product uploading and so on. Continue reading WooCommerce: Fix WP Memory Limit issue

It took me ages to find a way to import ALL California tax rates into WooCommerce. I started by hand, and after a while I said to myself “California is crazy! I wouldn’t want to be an accountant there!”.
As usual, I looked for existing free and premium plugins, but I decided to do it my way. this tutorial gives you a ready-made CSV with all California US tax rates (as of 9 August 2014). Yes, it’s out of date, but you can download it, see how it is built, revise it with the correct rates, and follow the tutorial. Continue reading WooCommerce: Import California Tax Rates (.csv)

A client asked me to add a “Free Shipping” notice under each WooCommerce product on the Shop Page. This can increase your click-through rate and hence your sales conversion rate. Here are a couple of PHP and CSS snippets so that you can implement this helpful edit. Continue reading WooCommerce: Add Text Under Each Product @ Shop Page

JetPack sharing (and other social media sharing plugins) allow you to add social media sharing to your woocommerce products. However, the sharing buttons will only show at the bottom of the “Long description”.
How to move that up a bit, say between the short description and the product tabs? Simply add this function to your functions.php file editor: Continue reading WooCommerce: Move Social Sharing @ Single Product Page
The “Additional Information” tab on the single product page is somewhat annoying and, honestly, quite useless.
There are 2 simple methods to “hide” it or delete it completely: a CSS and a PHP solution. In the first case, you can input the code in your style.css; in the second case use your child theme’s functions.php.
However, Always remember that PHP is better than CSS: with CSS you load the element and then hide it, while with PHP you stop the element from loading. Clearly, PHP is a better way to do it!
Continue reading WooCommerce: Remove Additional Information Tab @ Single Product
WooCommerce database already stores the number of products sold for you.
Therefore, you may want to show such number on the product page, close to the Add To Cart button. As we’ve seen in my book Ecommerce and Beyond, showing the number of sales for each product can increase your sales conversion rate.
All you need is pasting the following code in your functions.php. Enjoy!
Continue reading WooCommerce: Show Number Of Products Sold @ Product Page
When optimizing a WooCommerce website with the excellent YOAST SEO plugin for WordPress, I noticed that building “templates” for titles and meta descriptions is not that easy. Mostly when you want to input the product category and the product title.
Continue reading WooCommerce and YOAST SEO plugin: Title and Meta Templates

WooCommerce allows you to limit shipping by countries (or “allowed” countries). However, say your business is based in Pennsylvania, USA (PA) or in one of the Australian states. You may want to limit shipping to a state only.
All you need is pasting the following code in your functions.php Continue reading WooCommerce: Limit Shipping to One State Only
You may want to force users to login in order to see prices and add products to cart. That means you must hide add to cart buttons and prices on the Shop and Single Product pages when a user is logged out.
All you need is pasting the following code in your functions.php (please note: your theme may have overwritten some default WooCommerce functions, hence the code below may not work. Contact me if you need custom code). Enjoy!
Continue reading WooCommerce: Hide Price & Add to Cart for Logged Out Users
You may want to disable the WooCommerce variable product price range which usually looks like $100-$999 when variations have different prices (min $100 and max $999 in this case).
With this snippet you will be able to hide the highest price, and add a “From: ” prefix in front of the minimum price – variable products with a single price (i.e. all variations have the same price) will keep their original format.
Simply paste the following code in your child theme’s functions.php and enjoy!
Continue reading WooCommerce: Disable Variable Product Price Range $$$-$$$
You may want to disable payment gateways depending on the user role or user capability. For example, you may want to disable PayPal for “user role: shop_manager” or enable a specific gateway for “user role: customer”. All you need is pasting the following code in your functions.php
Continue reading WooCommerce: Disable Payment Gateway for Specific User Role
If Free Shipping is available, you possibly don’t want to show the other premium shipping options. WooCommerce shows by default all shipping rates that match a given shipping zone, so it’s not possible to achieve this from the settings alone.
Thankfully, the “woocommerce_package_rates” filter allows us to manipulate the shipping rates before they are returned to the frontend. In this example, we will disable all shipping methods but “Free Shipping” so that free shipping remains the only possible choice.
Here’s the code to add to your functions.php. Enjoy!
Continue reading WooCommerce: Hide Shipping Rates if Free Shipping Available
If you want to show the “short description” field on the products that are on your homepage or in the loop, here’s the PHP code to add to your functions.php.
Continue reading WooCommerce: Show Product Description @ Shop Page
If you’re not happy with the default number of products per page (16), or if your theme overrides the default WooCommerce setting for “per_page” products and you need to change it, here’s the fix for you.
Please note that you may also need to set the number of WooCommerce product grid columns, so that you can make sure the total number of products per page is a multiple of that and you don’t leave the shop page with empty grid items.
Enjoy!
Continue reading WooCommerce: Change Number of Products Per Page

If you use a full page width on your product page you might want to change the number of upsells to 3 (or multiple). Also, a client of mine needed the upsells to be above the tabs, so there you go. Continue reading WooCommerce: Change # of Upsells and Move Them Above Tabs
You might want to disable PayPal for non-local customers or enable a specific gateway for only one country… Either way, this is a very common requirement for all of those who trade internationally.
Here’s a simple snippet you can further customize to achieve your objective. Simply pick the payment gateway “slug” you want to disable/enable (“paypal”, “authorize”, “stripe”, etc.) and the country code (US, ES, IE, etc.) and then apply your conditional rules in the plugin below.
Continue reading WooCommerce: Disable Payment Gateway by Country