WooCommerce and Divi: how to override !important CSS

I am a big fan of Elegant Themes, but a lot of CSS styles (mainly in Divi) contain “!important” in order to override WooCommerce styles when using the two in a combo. Now, the big problem is that we can’t override !important with another !important. Divi will win. But no matter whether Divi has been developed in a good or not so good way, there is something we can do. (NOTE: using !important is a horrible thing in CSS. Use at your own risk) Continue reading WooCommerce and Divi: how to override !important CSS

WooCommerce: Hide Prices on the Shop & Category Pages

Interesting WooCommerce customization here. A client of mine asked me to hide/remove prices from the shop page and category pages as she wanted to drive more customers to the single product pages (i.e. increasing the click-through rate).

As usual, a simple PHP snippet does the trick. I never recommend to use CSS to “hide” prices, as they would still be visible in the code – PHP stops the prices from loading, so they’re invisible to the user.

Continue reading WooCommerce: Hide Prices on the Shop & Category Pages

WooCommerce: Hide Price & Add to Cart for Logged Out Users

You may want to force users to login in order to see prices and add products to cart. That means you must hide add to cart buttons and prices on the Shop and Single Product pages when a user is logged out.

All you need is pasting the following code in your functions.php (please note: your theme may have overwritten some default WooCommerce functions, hence the code below may not work. Contact me if you need custom code). Enjoy!

Continue reading WooCommerce: Hide Price & Add to Cart for Logged Out Users

WooCommerce: Show Shipping Class ID @ Shipping Class Admin Table

You can use WooCommerce shipping classes to customize shipping rates for a defined group of products. You can manually add shipping classes via the /wp-admin/admin.php?page=wc-settings&tab=shipping&section=classes URL (i.e. WooCommerce > Settings > Shipping > Shipping Classes).

We’ve often worked with snippets requiring a shipping class ID, and I explained there were a couple of ways to figure that out, all involving the “Inspect” tool of the browser.

But what if you need to actually display the IDs inside the shipping class table, so that it’s easier for the store admin to get and use such data?

Well, the snippet below will help you do that. And thanks to Peter for sharing most of the code!

Continue reading WooCommerce: Show Shipping Class ID @ Shipping Class Admin Table

WooCommerce: How to Implement AI Translation

Reaching customers globally can increase your WooCommerce website sales.

Besides, because your WooCommerce website can now operate in several countries, this reduces dependence on a single market and the risks associated with economic downturns and changes in consumer behavior.

To reach customers globally throughout the world, it is necessary to have a WooCommerce website that is available in their native language, as a huge percentage of online customers prefer to purchase products that are accompanied by information presented in their language.

This means you have to create a multilingual WooCommerce website, and AI translation may help you get there faster.

Continue reading WooCommerce: How to Implement AI Translation

WooCommerce: A/B Testing, Statistical Significance Formula, Case Studies

If you’ve never run an A/B Test (“Split Test“) on your WooCommerce website, this article is for you. Also, if you want to discover how I run my tests without third party software on this same website, feel free to read on.

So, why A/B Testing a WooCommerce website?

Because your design, development and business decisions should be based on data-driven hypotheses and experimental validation as opposed to “everyone-is-doing-this-thing-so-I-should-do-it-too” theories.

In this article, I’d like to introduce you to the concept of split-testing, go through some statistics formulas, describe my first ever A/B test here on Business Bloomer, and finally share the PHP snippets I use for running quick A/B tests on this same WordPress / WooCommerce website, so that you can learn a thing or two about this very important topic.

Enjoy!

Continue reading WooCommerce: A/B Testing, Statistical Significance Formula, Case Studies

WooCommerce: 7 Different Ways to Run a Survey

Understanding your audience’s needs and preferences is a key component of any successful WooCommerce business.

Surveys are perfect tools for this, providing valuable insights that can improve your product, enhance customer service, and ultimately create a more effective eCommerce operation overall.

But what approach should you take to run these surveys? 

From traditional methods to modern tactics, there are numerous ways you can reach out to your customers for their opinions, but we’ll be focusing on online forms.

In this guide, we’ll explore these different methods individually to help you choose the best fit for your business needs.

Continue reading WooCommerce: 7 Different Ways to Run a Survey

Deposit & Balance Payment plugin with only 1 order?

I’ve tested a few deposit and balance plugins and they all seem to create an initial order for the Deposit, then a separate order for the Balance payment.

Does anyone know of a plugin that keeps all the payments in a single order?

I’m kind of thinking the answer is no due to the way payments are captured…. but am hoping there is!

In my case it is just for ease of the accountant reconciling – the products have a deposit and payment plan – so each product can have up to 6 orders to reconcile, which she is finding a nightmare.

WooCommerce: Get Order Tax Percentage

You’d think WooCommerce had an easy way to get the order tax rate percentage, the same way as you can get almost everything inside the “order object” with a single line of PHP. Well, that’s not the case unfortunately.

The reason is that probably each order can have multiple tax rates, and that tax is not only applied to product prices, but also optionally to shipping, fees and more.

So, how do we get the list of tax rates in a WooCommerce order? Here’s a quick snippet that you can use – enjoy!

Continue reading WooCommerce: Get Order Tax Percentage

WooCommerce: Count Variation Sales (Shortcode)

We’ve already studied how to display the number of sales for a given product ID via a shortcode – however that solution won’t work for a variation ID, because WooCommerce only counts the “parent product” sales.

We need a different workaround in this case. This will require we either query the orders that contain such variation ID, and then calculate the sum – or that we install a snippet on day 0 so that we can count variation sales from that moment onwards, without having to query and calculate anything.

We will study the latter, and then display the result via a shortcode, so that you can use it anywhere, even inside the variation description.

Enjoy!

Continue reading WooCommerce: Count Variation Sales (Shortcode)

WooCommerce: 6 Inventory Management Issues

In the competitive world of eCommerce, managing your inventory effectively is a key factor in achieving success.

However, for many WooCommerce store owners, grappling with common inventory management issues can be challenging.

As you no doubt know, inventory management can often be a complex task, but it doesn’t have to feel overwhelming.

By understanding all of these common issues found in WooCommerce inventory management and implementing the suggested solutions, you can improve efficiency, decrease errors, maintain customer satisfaction and ultimately drive your eCommerce business towards success.

To bring you up to speed, let’s talk through some of these problems and offer practical solutions to help streamline operations.

Continue reading WooCommerce: 6 Inventory Management Issues

WooCommerce: 11 Performance, Security, and Scalability Tips

WooCommerce websites need to be operational at all times: they must load quickly, be secure, and handle large traffic spikes. 

Achieving this can be a daunting task without the right strategy and expertise, particularly when dealing with a high number of visitors, as a single problem can result in hours of downtime and lost sales.

In this article, our special guest Martin Ronfort, founder of Dr Tech,  will share an overview of the strategies and processes that you can apply to your WooCommerce store and grow with ease

At Dr Tech, in fact, they manage thousands of WooCommerce stores – ranging from small businesses that are just starting out to stores with millions of requests and significant marketing campaigns – and deal with all the technical aspects such as hosting, loading speed, security, updates, backups, uptime, and scalability.

Let’s go, Martin! 

Continue reading WooCommerce: 11 Performance, Security, and Scalability Tips

WooCommerce: How to Level Up Your Email Marketing

In today’s competitive ecommerce landscape, email marketing plays a crucial role in connecting with customers and driving business growth.

With WooCommerce, you already have a powerful platform at your disposal to send and manage transactional emails effectively. However, when you need to send targeted marketing emails, additional plugins may be necessary. 

In this article, we’ll guide you through the process of optimizing your email marketing strategy using WooCommerce.

Whether you’re a seasoned email marketer or just getting started, we’ll explore actionable tips and practical techniques to help you level up your communication game.

So, let’s jump right in!

Continue reading WooCommerce: How to Level Up Your Email Marketing

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: Additional Stock Inventory Location

The WooCommerce plugin allows you to manage stock for each product, but you only have a single stock quantity field!

What if you have two warehouses and, as a store admin, need to manage the inventory for each location? Besides, what if an item is out of stock at location 1, but it’s in stock at location 2, and therefore the customer needs to be able to purchase it?

This amazing workaround will add a second input number in the product settings, redefine stock quantity and status on the frontend by summing up stock 1 + stock 2, and finally decrease stock 1 until it goes to 0, after which it will decrease stock 2.

This default behavior can be changed of course e.g. it’s possible to define from where the stock is reduced (by distance?) via additional code. Also, additional code can be written to make it compatible with variable products or custom product types, as well as make it work with refunds. Either way, enjoy!

Continue reading WooCommerce: Additional Stock Inventory Location

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: Automatically Cancel Orders

You may wondering – “but I can already do that from the WooCommerce settings!“. Yes, that’s correct; go to WooCommerce Settings > Products > Inventory and set the “Hold Stock Minutes” value. After that period, unpaid orders will be marked as cancelled to make sure the stock goes back to the initial value.

The problem is – what if you don’t want to use the “Hold Stock Minutes” thing, and even better, what if you don’t use stock management at all? In that case, orders won’t be marked as cancelled automatically.

Also, what if you need to do conditional work e.g. you only want to cancel “failed” orders, while you want to keep “pending” ones as they are? Even in this case, the “hold stock” option won’t work, as you need to specify which order status you want to target and then run the cancel function.

Either way, enjoy!

Continue reading WooCommerce: Automatically Cancel Orders