Here is a collection of tips, snippets, customizations 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 Tutorials > Top Searches
Visual Hook GuidesCheckout PageCart PageSingle Product PageAdd to CartEmailsShippingPricesHosting
WooCommerce Tips > Popular Tags
Checkout Page
Single Product Page
Cart Page
Shop Page
WordPress Dashboard
Order
Shipping
My Account
Add to Cart
Price
Checkout Fields
Emails
Payment Gateways
Variable Products
Stock
Product Category
Sales Conversion Rate
Analytics
Order Status
Marketing
Thank You Page
Category Page
Shortcodes
Product Quantity
Sale Price
Storefront Theme
SEO
Search
Email Marketing
Customization
Latest WooCommerce Articles
WooCommerce is a powerful ecommerce platform that offers a robust review system to help businesses build trust and credibility.
While WooCommerce provides a default review display, you may want to customize it to fit your specific needs. This tutorial will guide you through the process of editing the “x customer reviews” text on a single product page.
By following these steps, you can tailor your product review display to match your brand’s aesthetic and provide a more engaging shopping experience for your customers.
Continue reading WooCommerce: Edit “x customer reviews” String @ Single Product Page
When managing a WooCommerce store, your sales strategy can be a powerful way to engage customers and drive urgency.
One cool trick is featuring products with sale prices about to expire (“sale price end date“) in a custom product category. We’ve already seen how to populate a “Sale” category, but this time I’d like to get only the sale products with a sale end date!
Highlighting expiring sale items allows store owners to showcase time-sensitive deals, enticing shoppers to act fast before discounts disappear. This approach not only enhances the shopping experience but can also boost conversions during critical sales periods.
In this tutorial, we’ll explore how to dynamically populate a custom WooCommerce category with products whose sale end dates are approaching. Using a PHP code snippet, you’ll learn how to identify expiring sale items and assign them to a dedicated category automatically.
Whether you’re a store owner looking to create a “Last Chance” section or a developer helping clients achieve similar functionality, this guide will walk you through the steps. Let’s dive in!
Continue reading WooCommerce: “Last Chance” Category with Expiring Sale Products
Viewing the WooCommerce customer’s order history directly on the single order admin page can be incredibly useful when you need quick access to a customer’s past purchases without navigating away from the current order screen.
With a simple PHP snippet, you can add this functionality, enabling you to view previous orders and better understand customer behavior in real time.
This customization not only enhances your workflow but also improves customer service, allowing you to address inquiries more efficiently.
Below, I’ll walk through the steps needed to implement this feature, providing you with the PHP code necessary to display order history details on the order admin page itself.
As always, remember to test customizations in a staging environment to ensure compatibility with your setup!
Continue reading WooCommerce: View Customer Order History on Single Order Admin Page
What’s the point of having the chance to “star” some products in your WooCommerce backend, if you can’t really use these featured products properly on the frontend? Yes, you can use a shortcode or a block to return the featured products only… or maybe you want to keep reading for a better (imho) solution!
Highlighting key products can significantly enhance user experience, driving sales by capturing the attention of potential buyers right from the start.
So, if you’re managing a WooCommerce shop, prioritizing featured products can help create a curated shopping experience that emphasizes your best offerings. In this tutorial, I’ll walk you through a simple yet effective code snippet that will help you display featured products first on various pages of your WooCommerce store.
This customization not only boosts visibility for selected items but also encourages shoppers to explore and engage with your inventory. Follow along to optimize your product display and maximize your store’s potential!
Continue reading WooCommerce: Display Featured Products First @ Shop, Cat, Tag, Search Pages
In WooCommerce, applying a coupon code is often part of the checkout flow, but wouldn’t it be convenient for customers to select a coupon directly on the product page before adding items to their cart?
By letting users apply discounts right at the start, you’re streamlining the shopping experience and increasing the likelihood of conversions.
In this post, we’ll show you a quick and effective code snippet to add this functionality to your WooCommerce store. With just a few lines, you’ll empower customers to apply their favorite discount on the product page itself, making the shopping process faster and more engaging.
This guide is perfect for store owners looking to improve user experience and simplify coupon management. Let’s dive in and get this feature running on your product pages!
Continue reading WooCommerce: Apply Coupon @ Single Product Page
In WooCommerce, product reviews are a powerful way to build trust and encourage future purchases.
If you want to avoid spam, you’d usually select the “Reviews can only be left by verified owners” option, so that only logged in customers can leave reviews.
This can be limiting, especially if you want to allow verified buyers who are not logged in to share their feedback, without forcing them to log in first.
In this tutorial, I’ll show you how to customize WooCommerce to allow logged-out verified customers to leave product reviews.
With a simple PHP snippet, we’ll adjust WooCommerce review settings to accept reviews from users who have purchased a product, regardless of their login status. This way, you can enhance the customer experience while maintaining authenticity and security for product feedback.
Let’s dive into the code and get started!
Continue reading WooCommerce: Enable Product Reviews for Logged Out Verified Customers
Recently, I decided to hide the “Apply coupon” form on the cart and checkout page. A coupon form can “distract” potential customers and have them to abandon the checkout to go looking for discount codes.
However, offering discounts is still a crucial strategy to encourage purchases and reward loyal customers. For example, the Business Bloomer Club lifetime membership is subject to Purchasing Power Parity discounts, and customers can get from 5% to 75% off based on their billing country – via a coupon.
The best compromise here is to apply coupons when customers visit specific URLs. In this way, you can simplify the checkout process, reduce friction, and potentially increase conversion rates.
In this blog post, I’ll guide you through the steps to set up automatic coupon application in WooCommerce, ensuring a seamless and efficient experience for both you and your customers. Enjoy!
Continue reading WooCommerce: Automatically Apply Coupon Via URL
But first… what’s a WooCommerce My Account endpoint page title?
An endpoint refers to a specific tab of the “My Account” page, where customers can access various functionalities like viewing their orders, managing downloads, or updating addresses.
Each endpoint is associated with a H1 page title, which is displayed in the browser and helps users identify the content of that page.
For example, the default endpoint title for the orders tab is “Orders”. The page title for the downloads tab is “Downloads”. Pay attention – this is not about the tab label, but it’s the page title when a tab is clicked.
Customizing these endpoint page titles allows you to create a more intuitive and branded experience for your customers, making it easier for them to navigate the account area and find the information they need.
Let’s do it!
Continue reading WooCommerce: Rename My Account Endpoint Page Title
In WooCommerce, the “Downloads” tab of the My Account page is automatically visible to all users, even if they haven’t purchased any downloadable products. This can lead to a less-than-optimal user experience, as the tab might seem irrelevant or confusing to customers who don’t have any available downloads.
In this post, I’ll show you how to hide the “Downloads” tab for users who don’t have any downloadable products linked to their account.
With just a simple code snippet, you can make your WooCommerce store more streamlined and user-friendly by ensuring that only the customers who need to access the downloads section will see it in their account.
Whether you’re new to WooCommerce development or just looking for a way to tidy up the My Account page, this guide will walk you through everything you need. Enjoy!
Continue reading WooCommerce: Hide My Account “Downloads” Tab If User Has No Downloads
Here we go again. It feels like the WooCommerce plugin has become the same as some of those free extensions you get from the repo that fill up the WordPress dashboard with ads, notices and banners.
This time around, let’s get rid of the “Print discounted shipping labels with a click. By clicking “Create shipping label”, WooCommerce Shipping will be installed and you agree to its Terms of Service. Create shipping label” banner that displays at the top (!) of the single order admin page when the status is processing or completed and shipping is required (see screenshot below).
Long live a world without ads!
Continue reading WooCommerce: Remove “Create shipping label” Ad @ Single Order Admin Page
In some cases, you may need to block certain customers from completing orders on your WooCommerce store.
This could be due to fraud prevention, policy violations, or simply wanting to prevent repeat offenders from making purchases. Thankfully, WooCommerce provides the flexibility to implement an email blacklist with just a few lines of code.
In this tutorial, I’ll show you how to add a simple email blacklist using a custom function that checks the customer’s email at checkout. By adding these 8 lines of PHP to your theme’s functions.php file, you’ll be able to prevent orders from specific email addresses efficiently. Enjoy!
Continue reading WooCommerce: Prevent Orders From Blacklisted Email Addresses
Are you tired of the same old “Sale!” badge on your WooCommerce products? Want to create a more engaging and dynamic shopping experience for your customers?
In this blog post, we’ll guide you through a simple PHP/JS customization that replaces the static “Sale!” badge on the WooCommerce Single Product page with a captivating countdown timer. This will not only add excitement to your product page but also encourage customers to make a purchase before the sale ends.
Get ready to elevate your WooCommerce store and boost your sales with this effective customization. Enjoy!
Continue reading WooCommerce: Sale End Date Countdown Timer
In the world of WooCommerce, customization is crucial for creating a unique online store. However, juggling numerous WooCommerce settings across multiple pages can be tedious.
Imagine a solution that simplifies this process by consolidating all your WooCommerce options into a single, easy-to-use interface.
This tutorial will give you a possible approach and try to fit all WooCommerce Settings into a single screen (so, on the same page, you can edit the general, products, shipping, payments, advanced, etc. options).
Enjoy!
Continue reading WooCommerce: Fit All Settings In One Page
A dedicated “Empty Cart” button can significantly streamline the customer journey on your WooCommerce website.
Yes, you can manually change the product quantities to 0 on the cart page, or click on the “remove item” icon for each product… but having a button that can do all that could be a time saver, especially for B2B WooCommerce customers.
This post will guide you through creating a custom empty cart button. We’ll cover a code-based solution that uses jQuery to listen to button clicks and Ajax to trigger the empty cart function.
Enjoy!
Continue reading WooCommerce: Custom “Empty Cart” Button
Whether you’re dealing with bulky items, fragile goods, or specific shipping items, you can leverage WooCommerce’s flexibility and implement a fee structure that accurately reflects shipping complexities, improves profit margins, and enhances overall order management.
This tutorial gives you a practical solution – dynamically adding checkout fees based on whether a given shipping class is in the cart.
Enjoy!
Continue reading WooCommerce: Add Checkout Fee Based On Shipping Class