Adjusting Product Price on WooCommerce Order Admin Without Displaying a Discount

In a recent Business Bloomer Club discussion, a WooCommerce user raised an interesting question regarding price adjustments on orders.

When manually reducing a product’s price within an order on the admin side, WooCommerce automatically displays this change as a “coupon” rather than a direct price adjustment.

This setup can lead to confusion for customers, as they might see what appears to be an unexpected discount on their “My Account” page instead of a simple adjusted price.

Understanding WooCommerce’s approach to price adjustments and exploring alternative methods can help achieve this functionality without affecting the customer experience. From using direct database adjustments to implementing custom code solutions, there are ways to bypass WooCommerce’s default display for a cleaner and clearer transaction summary on customer pages.

Continue reading Adjusting Product Price on WooCommerce Order Admin Without Displaying a Discount

Handling Decimal Rounding Issues in WooCommerce: Customer Perspective

In a recent Business Bloomer Club discussion, a question arose regarding WooCommerce’s handling of decimal rounding, especially when discounts introduce fractional amounts.

A common scenario involves applying a percentage discount to a product price, leading to numbers that extend beyond WooCommerce’s typical two-decimal rounding.

While WooCommerce correctly calculates subtotals using the full decimal value, this can sometimes result in minor inconsistencies between displayed price and subtotal that may appear confusing to customers. Let’s explore how to address this and ensure a smooth user experience.

Continue reading Handling Decimal Rounding Issues in WooCommerce: Customer Perspective

Efficiently Customizing WooCommerce Prices and Product Visibility by Customer

In a recent Business Bloomer Club Slack thread, a WooCommerce developer sought a solution to display unique product prices and product visibility for each of 400+ customers.

Standard B2B plugins didn’t meet the requirements, so the idea was to use custom fields to assign prices and visibility rules per customer.

Here’s an alternative, scalable approach to manage personalized pricing and visibility.

Continue reading Efficiently Customizing WooCommerce Prices and Product Visibility by Customer

How to Detect Product Price Changes in WooCommerce

In a recent Business Bloomer Club Slack thread, a member sought advice on monitoring price changes for WooCommerce products.

This can be challenging because price updates may occur either manually by an admin or automatically via plugins or custom code. The user wanted to trigger an action whenever a product price changes, either for logging, notifications, or other purposes.

Here’s a guide on how to detect these changes using WooCommerce hooks, including options for monitoring both manual and automated price updates.

Continue reading How to Detect Product Price Changes in WooCommerce

WooCommerce: Hide Free Products [Code Snippet]

Are free products cluttering your WooCommerce store? Or are they so many, that you have no intention of manually setting them to “catalog visibility: hidden” one by one and need a proper shortcut?

Well, this guide will walk you through effective methods to conceal them, enhancing your store’s overall aesthetic and user experience.

Discover how to strategically hide $0 products from the shop / category / archive pages using WooCommerce custom code or dedicated plugins – enjoy!

Continue reading WooCommerce: Hide Free Products [Code Snippet]

Price Calculator for WooCommerce error

I have a client who started with one developer, and I’ve inherited it. It wasn’t too bad of a mess, just not organized well. Since I didn’t set it up, I’m not familiar with everything. Price Calculator for WooCommerce is being used, and the client doesn’t like the spaces between the unit label and the parenthesis (see image). She also wants it to be lowercase y. Is there a hook or something I can use the change that (site isn’t live, but I can give a preview login if you want to view the source code)?

WooCommerce: Set Product Price Based On Other Products!

I’m Italian and I love exclamation marks! I also love WooCommerce customization, as you may know. This time I want to show you how I programmatically define the price of my WooCommerce Mini-Plugin All-Access-Bundle product… based on other products.

The backstory: as of today, I sell 18 WooCommerce plugins, and soon I should reach the 400 mark if all goes well. So, I came up with the idea of creating a bundle, and let customers gain access to all of them within a single, discounted purchase.

Yes, I could have purchased a Product Bundle plugin… but I wanted to see if I could create a bundle out of a Simple product.

The only requirements were: set the regular price based on the total price of the plugins, set its sale price based on a percentage discount, automate this so I don’t need to manually update the bundle price every time I add a new product, and add all plugin products to the order upon bundle purchase (we will see this in another snippet). Enjoy!

Continue reading WooCommerce: Set Product Price Based On Other Products!

WooCommerce: Allow Customers To Define the Product Price

This is a great customization for those WooCommerce store owners who are willing to accept donations, custom amounts, or need anyway that the customer enters a custom price on the product page for paying an invoice or a bill.

This is as simple as creating a simple product with $0 price, and after that using the snippet below to display an input field on the single product page, where customers can enter their custom amount. Enjoy!

Continue reading WooCommerce: Allow Customers To Define the Product Price

WooCommerce: Replace Variable Price With Active Variation Price

Surprisingly enough, variable products with a price range display two prices: at the top right you find the “parent” product price, displayed as a range; but once you select a variation, a second price appear just above the variation add to cart. Somewhat confusing.

In today’s solution, we’ll see once and for all how to replace the top right variable product price with the one of the current variation, while also hiding the variation price. Therefore, you’ll see a single price on the single product page for variable products. Enjoy!

Continue reading WooCommerce: Replace Variable Price With Active Variation Price

WooCommerce: Display Prices Inc + Ex Tax

The WooCommerce settings allow you to show prices including OR excluding tax. But what if we want to show both at the same time e.g. “$100 inc. tax – $89 ex. tax”?

Well, by combining the snippet below with the snippet I already coded for variable products price range, or by installing our Mini/Plugin, you can achieve exactly that.

Yes, in theory you could add a WooCommerce suffix via the settings, but unfortunately WooCommerce wraps such suffix in a “small” HTML tag and therefore the whole content is smaller in size, including the second price.

In this tutorial, we’ll see how to add a suffix via PHP instead, and specifically at how to add the price including tax if your store displays prices excluding tax. Enjoy!

Continue reading WooCommerce: Display Prices Inc + Ex Tax

WooCommerce: How to Sell Craft Beer Online

If you sell craft beer, one of the things you can do to increase your sales is setting up an online store where you can sell your beers. Through an online store, you can easily meet the demands of your customers and even deliver the beer to their doorsteps.

When the COVID-19 pandemic struck, many businesses including craft beer businesses could not meet their targets with regards to sales. Their selling activities were affected because they could not deliver beers to restaurants and pubs (they closed down), could not sell to their customers directly, and most shops and stores were closed down.

Selling online and making sure that customers get their beers was the only way left for them. Even though the world has opened up, online shops have picked up and every business needs them for success. So, how do you get started?

Continue reading WooCommerce: How to Sell Craft Beer Online

WooCommerce: Hide Price If Product Out of Stock @ Frontend

Sometimes, the nature of ecommerce businesses requires some extra features. Thankfully, WooCommerce allows to customize pretty much everything based on whatever condition.

Today, we’ll see how to hide prices for out of stock items, on the shop, categories, archives, loops and single product page.

Think of an art gallery which sells unique art pieces, and doesn’t want to let users know for what price sold an item. Or maybe an online business that often runs discounts – why reveal at which price sold an item that is now out of stock? Of course, there are way more case scenarios – I’d be curious if you shared yours in the comment area.

But for now, copy and paste the snippet and that’s it, you’re good to go. Enjoy!

Continue reading WooCommerce: Hide Price If Product Out of Stock @ Frontend

WooCommerce: Product Category Price Range

WooCommerce variable products display a price range by default, which goes something like this: $MIN-$MAX. Now, wouldn’t it be nice, on the Shop page or Category Widget, to show the price range for each category?

Well, as usual this is a customization that can apply to certain online businesses only, so hopefully you’re one of them. Either way, this is yet another chance for you to learn PHP applied to WooCommerce. Enjoy!

Continue reading WooCommerce: Product Category Price Range

WooCommerce: Hide Product Price & Stock From Google

The WooCommerce Plugin is also developed with SEO in mind and provides your website with the schema markup for products (as well as other microdata useful for search engines).

This means by default your products are going to show on Google together with other data such as review stars, stock status, number of reviews and – you saw that coming – the product price.

In certain case scenario, however, you may want to hide WooCommerce product prices from Google search results (and all the other search engines of course). For example, because your prices are only visible to logged in users; or maybe because you don’t want to display your prices until potential customers go to your website and read all the product benefits as opposed to having them make a price-only decision.

Either way, let’s see how it’s done. And once again, it’s one line of code. Enjoy!

Continue reading WooCommerce: Hide Product Price & Stock From Google

WooCommerce Wholesale Prices: Plugins, Setup, Tips and Snippets

If you’re setting up a wholesale store for your business or for your clients, WooCommerce is a great choice! It’s free, open-source, powerful, and growing in popularity.

However, many important wholesale functions are missing, and that’s particularly important when it comes to wholesale pricing. Let’s explore how we can set up complex pricing in WooCommerce, and in detail:

  • Setting up different prices for different users
  • Tiered pricing and pricing table
  • Bulk pricing and discounts
  • Discounts by quantity or order value

Each functionality can be added via a free or premium plugin or, if you’re familiar with PHP, even by code. Either way, this article will feature one of the many options available.

Continue reading WooCommerce Wholesale Prices: Plugins, Setup, Tips and Snippets