WooCommerce: Apply Discount to Cheapest Cart Item

If you run WooCommerce store promotions, this little snippet will help you with that. For example, how to run a “Buy 2 products, get one half off” or a “Buy 3 products, get the cheapest one for free” campaign?

The trick behind this workaround is to find the cheapest item by looping through the cart, and then to set its price so that it’s lower than the regular price. Enjoy!

Continue reading WooCommerce: Apply Discount to Cheapest Cart Item

WooCommerce: Why Hire an Agent for Dropshipping From China

Navigating the landscape of WooCommerce can be made significantly easier with a dropshipping agent, especially when sourcing products from China.

A dropshipping agent operates as the vital linkage in your business chain. Essentially, they manage transactions between you and your supplier. Their duties range from handling product sourcing to managing stock and ensuring quality control.

For instance, if we consider the product purchasing process, your agent would tackle this task on your behalf. They work directly with suppliers, negotiating prices and paving the way for smooth business operations.

Continue reading WooCommerce: Why Hire an Agent for Dropshipping From China

WooCommerce: Limit Daily Sales For Cheap Products (Anti-Spam)

We could call this the “WooCommerce Anti-Spam Without a Plugin” series, while I attempt to fight against bad humans and very bad bots who love attacking the Business Bloomer checkout page with spam orders and fake user registrations.

My first attempts were (1) My Account registration anti-spam honeypot, (2) Checkout anti-carding-attack honeypot, and (3) Reducing the number of admin emails, but I can tell that (2) didn’t work, and I got another carding attack on a $9 product last weekend. Bots are smart.

Today, I’d like to share another anti-spam snippet that I’m currently testing on Business Bloomer. Most carding attacks, in fact, end up with the purchase of a single product in the $1-$9 range – which means that limiting the daily sales for specific, inexpensive, products may do the trick.

My code counts the times each product has been purchased during the day – and if a carding attack occurs, the product won’t be purchasable any longer until the end of the day. Because we’re talking about cheap products, it’s no problem for me to disallow legit sales as well for 24 hours. Use at your own risk, of course.

We already covered how to “Limit Sales Of A Product Per Day“, but this time I’d like to apply that to an array of products – and specifically all those that are under $10. Enjoy!

Continue reading WooCommerce: Limit Daily Sales For Cheap Products (Anti-Spam)

WooCommerce: Anonymize All Users & Orders

Especially when you need to let other people (such as developers) log in to your WooCommerce website, you may want to protect the identity of your customers and your order details.

Of course, anonymizing your WooCommerce backend requires a complete database override – this change is 100% irreversible! Only run this code if you know what you’re doing.

The ideal workflow is the following: you give developers access to a staging/clone website version, you run this custom code to anonymize customers and orders, and have them do the changes. This is good for GDPR, CRPA and PIPEDA as well: third party people won’t see sensitive data.

One more note: I haven’t tested the code with thousands of customers and orders – feel free to leave a comment in case your (staging) website crashes. Enjoy!

Continue reading WooCommerce: Anonymize All Users & Orders

WooCommerce: The Ultimate Guide To Printing on Demand

In today’s digital age, ecommerce has witnessed significant growth, offering numerous opportunities for entrepreneurs and businesses to thrive.

One of this space’s most popular and profitable business models is print on demand (POD). Did you know that the POD market is projected to reach a staggering $67.59 billion by 2032?

With its low, upfront costs, ease of implementation, and limitless creative possibilities, POD has become a lucrative venture for many online store owners.

In this ultimate guide, we will explore how to leverage the power of WooCommerce, a leading ecommerce platform, to set up and manage your print on demand store successfully.

Continue reading WooCommerce: The Ultimate Guide To Printing on Demand

WooCommerce: Disable Related Products Shuffle

By default, the WooCommerce Single Product page features a Related Product section. Here, you’ll find products that are related to the current product, based on product categories and product tags in common.

All good so far, but we need to make a few more notes: whenever WooCommerce “calculates” the list of Related Products, it searches for 15 of them (unless otherwise specified via custom code). Then, it shuffles them. And finally it gives you the first 5 of them (unless otherwise specified via custom code). At this stage, these are sorted by “rand” (unless otherwise specified via custom code).

This is because WooCommerce wants people to see different related products each time a single product page is loaded. It’s potentially good, but also it may get messy when, as a store owner, you may want to direct people to the same related products over and over again (i.e. always show the same set of related products).

And in order to do that, we need to do 2 changes: disable the shuffle, and disable the “rand” sorting. In this way, you should be able to show the same Related Products to all customers. Let’s see how this is done!

Continue reading WooCommerce: Disable Related Products Shuffle

WooCommerce: Get Total Sales By Product Category

It’s easy enough in WooCommerce to get/calculate product sales. What’s difficult, on the other hand, is calculating the total amount of sales for a specific category, because there is no core function that already does that.

Why sales by category – you may ask? Well, to me, that’s a very important metric. For example, I sell both consulting and non-consulting products on this same website, so it’s important for me to keep track of category sales year-on-year, especially when my goal is reducing 1-to-1 client work while increasing scalable product sales such as courses, plugins and memberships.

In this quick tutorial, we will first get the “WooCommerce orders that contain a target product category”, and after that we will loop through the array to calculate the total sales for that specific category. Sounds difficult? No worries – just copy and paste the snippets below.

Continue reading WooCommerce: Get Total Sales By Product Category

WooCommerce: Add Product To Order After Purchase

On Business Bloomer I sell a bundle of products, and I use no Bundles plugin for that. So the challenge was to programmatically add a list of products to the order upon purchase, once the bundle product is purchased.

This is an amazing way to save time for the customer, as they don’t need to manually add each product to the cart. In the background, after a successful purchase, some magic code (that you find below) adds products to the order, sets their price to $0.00 (so that the order total is not altered), and saves the order. Enjoy!

Continue reading WooCommerce: Add Product To Order After Purchase

WooCommerce Dynamic Pricing: BOGO, Buy X Get Y & Conditional Discounts

Offering promotions is a great way to attract customers and increase sales in your online store. Some promotion strategies that have proven effective are the Buy One Get One Free (BOGO), Buy X Get Y, and WooCommerce dynamic pricing.

Taking this into account, you may want to offer reduced prices to your users in these various circumstances:

  • Run a flash sale for a limited time.
  • Encourage your customers to buy specific products in a clearance sale.
  • Offer product bundles to big spenders.
  • Add free shipping when someone makes a bulk purchase.
  • Automatically add gift items as part of your store’s loyalty program.

Without dedicated plugins, these strategies might be utterly difficult to conduct. To save yourself from the coding hassle, you should pick a WooCommerce dynamic pricing plugin to quickly get it up and running.

In this blog post, we will discuss how to create a BOGO promotion, Buy X Get Y, and dynamic pricing rules in WooCommerce based on user conditions. And it requires no coding knowledge. Let’s dive in.

Continue reading WooCommerce Dynamic Pricing: BOGO, Buy X Get Y & Conditional Discounts

WooCommerce: Display Product Grid @ Order Emails e.g. Related Products

Bad news first – we’ve seen how to add content to any WooCommerce order email, however I did not specify that if you use the [products] shortcode that’s not going to work unfortunately. The reason behind this, in plain English, is that… it just doesn’t work, and it outputs a weird list of “Sale!” list items (see screenshot below)!

So, I want to fix this, and find a WooCommerce email-compatible way to show a grid of products based on a list of product IDs (for example, the list of related products based on the ordered items), and make sure I can actually see product images, titles, prices and a link. Enjoy!

Continue reading WooCommerce: Display Product Grid @ Order Emails e.g. Related Products

WooCommerce: Get 10+ New Widgets With This Elementor Add-on

Already using Elementor to build your one-of-a-kind WooCommerce website?

Great, because you can now take your powered-by-Elementor WooCommerce store to the next level with a new third-party extension.

Think of product tables, grids, and carousels; of product page widgets such as toggles, improved star ratings, sale countdowns, and add to cart plus and minus buttons.

Also, category grid and carousel views. With plenty of layout and styling options, you can create a unique look and feel for your WooCommerce store.

Developed by Consortia, a company with a track record of creating popular plugins for WooCommerce like Bulk Table Editor, Cost & Reports and Bulk Category Editor, the new Consortia Addons plugins is the perfect fit for those who want to step up their Elementor game and take advantage of new features.

Continue reading WooCommerce: Get 10+ New Widgets With This Elementor Add-on

WooCommerce: Item Custom Field @ Edit Order Page

Alright, this title may not really help you understand what I mean, so let’s put it in another way. When, as an administrator, you edit an order and are in the Order Items table, you have the chance to edit the item quantity, subtotal and discounted price (see screenshot below).

Now, what if you also want to have the freedom to display and edit another custom field, so that it is saved inside the order once you hit the “Save” button?

This could be useful for custom setups – for example let’s imagine the admin has the necessity to also define the “shipped quantity”, so that they know exactly if a specific order has been entirely fulfilled or requires a second shipment to get completed.

Either way, see the screenshot below, play with the snippet, and see how it goes. Enjoy!

Continue reading WooCommerce: Item Custom Field @ Edit Order Page

WooCommerce: 4 Ways to Grow Your Sales With Omni-Channel Marketing

The goal of marketing automation is to help you save on effort. However, sometimes it comes at the price of poorly targeted campaigns and half-baked marketing content, which can be outright damaging to your business.

The other problem with most of WooCommerce marketing automation tools is that they have a one-off approach to marketing that aims to get as much as possible from one user interaction – during checkout, for example – without providing for loyalty or retention. This goes against the golden rule of marketing, where your biggest asset is your leads and customers and your biggest mission is to retain them.

The solution is to use a omni-channel marketing approach, where a central tool collects and enriches user behavior and history in a unified profile and then uses that profile to deliver relevant campaigns across all user touchpoints. 

This ensures more harmonized marketing, a seamless experience for your users and eventually more trust and engagement with your brand. These are all the ingredients you need to increase the loyalty lifetime value of your users and customers. 

Continue reading WooCommerce: 4 Ways to Grow Your Sales With Omni-Channel Marketing

WooCommerce: Turn Checkout Into a Quote System

There are certainly ways and plugins to turn WooCommerce into a quote engine, but today I want to share a super simple workaround that could be helpful to many.

In a nutshell, we’ll use the same WooCommerce cart/checkout flow, rename a few strings and buttons, enable an offline payment gateway (so there is no actual payment), let the admin revise the order and send back the final invoice, and finally get the customer to pay for their order.

Enjoy!

Continue reading WooCommerce: Turn Checkout Into a Quote System

WooCommerce: How to Automate Upsells and Discounts?

We all want to grow our WooCommerce store sales but creating offers for thousands of products is a nightmare.

What if I said you can grow sales on autopilot and without pouring sweat and money into your business?

This post covers how you can set up automated WooCommerce upsells, discounts, order bumps and other offers – so that you can focus on other aspects of your business while your website does its magic.

Select from ready-made offers, run them on your sites, count your sales, relax.

Without further delays, let’s get started.

Continue reading WooCommerce: How to Automate Upsells and Discounts?

WooCommerce: Why Variable Products Are Too Limited (and How Add-Ons Can Help)

WooCommerce is rich with customization options for different kinds of eCommerce businesses. However, it’s quite limited when it comes to certain shopping solutions your online business may need – such as displaying product variations.

For instance, a customer may need to choose RAM size, storage size, and device color before buying a mobile phone. In this case, using the default WooCommerce variations will require you to create a variable product with hundreds if not thousands of attribute combinations.

This can be exhausting, and despite all that work, the result is often a slow and difficult to manage product backend due to a huge number of variations . Besides, your customers would have a hard time finding the exact variation when the only option they have are dropdowns with dozens of options.

The best way to give your customers a seamless user experience is to allow them to customize their products on the same page without using variations. Now, you can’t do that with WooCommerce alone. This is where WooCommerce product add-ons plugins come in.

In this article, we’ll show you the easiest way to create and sell variable WooCommerce products using WooCommerce Product Options. But before that, let’s talk about why you need additional product options in your store.

Continue reading WooCommerce: Why Variable Products Are Too Limited (and How Add-Ons Can Help)

WooCommerce: Set Product Discount Percentage @ Product Admin

Let’s say you want to apply a 10% discount on a WooCommerce product. Its original price is $79.56. You go to the “Edit Product” page, go to the “Sale Price” input field, and enter ( $79.56 – 10% ) = $71.63. This is great as you can set the sale price, but this forces you to do some math and waste time.

What if there were a custom select dropdown, where you could directly define a fixed discount e.g. 10% or 25%, without having to calculate the final price?

Well, in today’s tutorial, we’ll see how we can display a dropdown in the Product Edit page, and at the same time how to edit the frontend price once a discount value is selected, so that you don’t need to worry about that manual sale price calculation. Enjoy!

Continue reading WooCommerce: Set Product Discount Percentage @ Product Admin

WooCommerce: Shoptimizer Theme Review

When building a WooCommerce store, one important factor to keep in mind is offering your customers seamless page navigation and design experience while ensuring faster page speed and performance. It helps boost customer satisfaction and improve business sales. 

According to Akamai’s research, even a 1-second delay affects the websites’ conversion rates by 7%, as your store’s page loading speed is one of the important determining Google’s SEO factors. 

Thus, to avoid delays and create a beautiful and appealing website, you must choose an excellent WooCommerce theme for your store. 

However, considering the wide range of options – selecting a multipurpose, user-friendly, and attractive WooCommerce theme can get challenging and overwhelming. Hence, today, in this article, we review one of the fastest WooCommerce themes – Shoptimizer

In this article, we’ll review the theme’s overview, interface, important features, and pricing to see if it’s the right fit for your WooCommerce store. Let’s begin! 

Continue reading WooCommerce: Shoptimizer Theme Review

WooCommerce: Donation / Fundraising Plugins

Are you looking for ways to raise funds for a charity event or a non-profit organization? There are a multitude number of ways to go about it.

You can host an exclusive or virtual fundraising event, run email campaigns to collect funds, or even encourage friends and families to contribute their parts to the fund. However, these ways require a lot of legwork, including finding a place to host fundraising events, inviting guests, or hiring an email strategist to run marketing campaigns – which is time-consuming and expensive. 

The solution? Collecting online donations via WordPress or WooCommerce plugins to effectively raise funds for special causes, such as charities, non-profits, or relief funds. 

This article shares the best, easy-to-use, affordable WooCommerce fundraising and donations plugins you can use. Let’s get started!

Continue reading WooCommerce: Donation / Fundraising Plugins

WooCommerce: Why & How to Improve Product Filters

Many times, ecommerce customers are unable to find what they’re looking for quickly and easily. There are plenty of reasons for this, ranging from poor site design to a lack of search and filtering options.

By improving product filters in your WooCommerce online store, you can help customers narrow down their search. This makes it easier for them to find the products they’re looking for.

In this tutorial, we’ll show you how to add advanced product filters, and explain why you should.

Continue reading WooCommerce: Why & How to Improve Product Filters