Managing Free Gift Rules Based on Cart Total in WooCommerce

In a recent Business Bloomer Club discussion, a member faced an issue with the Flycart Woo Discount Rules plugin when trying to add a free gift product based on cart totals. While a discount rule applied a free gift when the cart subtotal reached €200, the rule didn’t adjust if a coupon reduced the cart total below this threshold.

The plugin settings allowed checks only against the subtotal, not the updated cart total after a coupon was applied. Seeking a solution, the member explored alternative discount plugins and custom setups.

A community member suggested trying Studio Wombat’s WooCommerce Discounts plugin, which offers more flexibility with cart total conditions. The plugin author added an option for tracking the cart total, enabling more precise control over free gift rules, particularly when coupons are involved.

Continue reading Managing Free Gift Rules Based on Cart Total in WooCommerce

Reordering Cart Totals in WooCommerce: Can It Be Done with Filters?

A recent discussion in the Business Bloomer Club Slack thread explored whether WooCommerce provides a straightforward way to rearrange cart and checkout totals. A client wanted the totals to appear in the following order: Subtotal, Fees, Shipping, Taxes, and finally the Total.

So, can this customization be achieved with a simple filter or hook, or does it require a deeper dive into WooCommerce’s templates?

Continue reading Reordering Cart Totals in WooCommerce: Can It Be Done with Filters?

WooCommerce: Remove “incl. tax” “ex. tax” Labels From Cart / Checkout / Order Totals

Do you want to simplify your WooCommerce prices by removing confusing tax labels?

This code tutorial is your guide to removing the “incl. tax” and “ex. tax” labels from your cart, checkout, and order totals in WooCommerce when your “Prices entered with tax” tax option is set to “Yes, I will enter prices inclusive of tax“.

Whether you find them unnecessary or want to create a cleaner pricing display, this tutorial will walk you through two effective snippets to achieve this customization.

Enjoy!

Continue reading WooCommerce: Remove “incl. tax” “ex. tax” Labels From Cart / Checkout / Order Totals

WooCommerce: Hide “Shipping to…” Address @ Cart

Even when the “shipping calculator” is disabled on the WooCommerce Cart page, a “Shipping to…” string will appear in the cart totals if an address has been previously entered or if geolocation is enabled.

Most WooCommerce store owners, however, wish to remove / hide this text, as it can be confusing for the customer. In this quick tutorial, we’ll study two different workarounds to achieve the same result. Enjoy!

Continue reading WooCommerce: Hide “Shipping to…” Address @ Cart

WooCommerce: Get Cart Data (total, items, etc) from $cart Object

As a WooCommerce development freelancer, every day I repeat many coding operations that I keep forgetting over and over again!

This means I have to search through the WooCommerce plugin files again and again and waste a lot of precious time.

We’ve already seen how to get $product and $order information from their respective objects , so this time we’ll take a look at the Cart page and answer to: “How to get ____ if I have the $cart variable/object available?“.

For example, “How can I get the cart total“? Or “How can I get the cart items“? Or maybe the cart fees, the applied coupons, the cart contents total, the total weight and so on…

Hopefully this article will help you save time as well! Your feedback via Twitter and the blog comments section is much appreciated. Enjoy!

Continue reading WooCommerce: Get Cart Data (total, items, etc) from $cart Object

WooCommerce: Define a Minimum Order Amount

Today we take a look at the WooCommerce Minimum Order Amount. This snippet displays an error notification on the Cart Page and an error message on the Checkout Page if the order is below a set threshold.

Of course, it’s also up to you to let customers know there is a minimum before reaching the Cart/Checkout, so this could come as a notification in the single product page, shop page or even the header if it’s a strict business requirement.

Enjoy!

Continue reading WooCommerce: Define a Minimum Order Amount