WooCommerce: Edit “x customer reviews” String @ Single Product Page

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

How to Display Dynamic Bulk Pricing on the WooCommerce Product Page

In a recent Business Bloomer Club Slack thread, a WooCommerce developer wanted to dynamically update bulk pricing on the product page as the quantity changes, similar to how pricing updates in the cart.

While they had a working bulk pricing script for the cart, the goal was to show these price adjustments immediately on the product page as users selected quantities, without page reloads.

Here’s a guide on how to implement this with PHP and JavaScript, using a pricing table and dynamic updates for the single product page.

Continue reading How to Display Dynamic Bulk Pricing on the WooCommerce Product Page

WooCommerce: Apply Coupon @ Single Product Page

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

WooCommerce: Sale End Date Countdown Timer

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

WooCommerce: Replace “Ask a Quote” With a Product Configurator

The old process of asking for a quote on the WooCommerce Single Product page is as slow as molasses.

This is because endless emails are sent and received, as some clients fail to include important information in their quotes. 

Enter the WooCommerce product configurator world. This crucial tool automates the quoting process. It’s like upgrading from a typewriter to a laptop but for your quoting game. 

With a WooCommerce product configurator, you’ll wonder how you survived without it.

Continue reading WooCommerce: Replace “Ask a Quote” With a Product Configurator

WooCommerce: Set Product Upsells Programmatically

Looking to boost your WooCommerce store’s average order value?

Upsells are a powerful tool, but manually entering them via the Edit Product page can be tedious.

This tutorial dives into the world of programmatic WooCommerce product upsells, empowering you to leverage code for a dynamic and data-driven upsell strategy.

In under 5 lines of PHP, we’ll guide you through the process of setting up upsells using code, unlocking greater control and personalization for a seamless customer experience that maximizes your sales potential. Enjoy!

Continue reading WooCommerce: Set Product Upsells Programmatically

WooCommerce: Set Default Shipping Class For All Products

Manually assigning a shipping class to each product can be tedious and time-consuming. Here’s where default product shipping classes come to the rescue!

This code tutorial will show you how to set a default shipping class for your products in WooCommerce without the need to access the “edit product” WordPress admin page to pick an option from the shipping class dropdown.

Enjoy!

Continue reading WooCommerce: Set Default Shipping Class For All Products

WooCommerce Without Product Images

This is an edge case, however it may happen that a B2B business requires no product images and doesn’t want to use the WooCommerce image placeholder either (this shows on shop/category pages and the single product page when no featured image is added).

This interesting question was asked by a Club member in our private Slack channel, so I didn’t hesitate for a second and looked for a quick fix (2 lines of code). Enjoy!

Continue reading WooCommerce Without Product Images

WooCommerce: Display Shipping Class @ Single Product Page

In certain cases, you may want to show the name of the current product’s shipping class. This is helpful especially for B2B stores, or when the shipping class name is very descriptive and helps the customer with their shopping choices.

Of all the places where we can print the shipping class, I chose the “Product Meta” section, which already shows the product SKU, Tags and Categories – this code will add another line called “Shipping class”, together with the name of the class (if any, of course). Enjoy!

Continue reading WooCommerce: Display Shipping Class @ Single Product Page

WooCommerce: Hide Sale! Badge If Product Is Out Of Stock

If a product cannot be purchased because it is out of stock, why would you want to tell people that it’s on sale – only because it has a sale price?

That would probably clutter your shop and maybe get the customer to click on the wrong item just because it was standing out, only to find out they can’t purchase it!

So, let’s fix this little “design bug” in WooCommerce – let’s make sure the Sale! badge gets hidden in case the product is out of stock. Enjoy!

Continue reading WooCommerce: Hide Sale! Badge If Product Is Out Of Stock

WooCommerce: Decrease Product ‘Total Sales’ Upon Refund

Every time an order is placed on your WooCommerce website, the purchased products’ total_sales counter increases thanks to a core function. It’s then easy to retrieve the value and maybe show the number of sales on the single product page, which is great for social proof and sales conversion rate optimization.

The big problem – and don’t ask me why this is not into core – is that if you need to refund an order (or cancel it), the total_sales counter will not reset / decrease, which is odd.

Today we’ll fix this, so that your products are always up to date with their sales counter and you can be more confident in showing the correct values. Enjoy!

Continue reading WooCommerce: Decrease Product ‘Total Sales’ Upon Refund

WooCommerce: Product Title Shortcode

WordPress shortcodes allow you to save time. For example, on my WooCommerce product pages I found myself typing the product title at least three times: in the product name input field, ok, but also again in the product long description and in a custom product tab inside a text link.

So, while finding ways to save time and reduce errors and typos, I coded the shortcode below so that I could avoid writing the title 3 times (and they’re very long!).

How does it work? Simply use [post_title] in a WooCommerce product, WordPress page, WordPress post or custom post and this will magically turn into the current post title. Simple!

Continue reading WooCommerce: Product Title Shortcode

WooCommerce: Display “Related Product Categories” @ Single Product Page

The WooCommerce Single Product page, on top of letting you add to cart the current item, also displays a list of related products and up-sells (when defined).

But what if you ALSO want to show a grid of “related product categories”, so that the customer can easily navigate to a category page instead of a single (related) product?

In this experiment, we will first calculate the current product’s categories, and then use a WooCommerce shortcode to output them as a grid, right below the related products section. Enjoy!

Continue reading WooCommerce: Display “Related Product Categories” @ Single Product Page