Posted on

WooCommerce: Disable Customer Order Email for Free Orders

There are times when you sell free products to give customers access to a membership, an online course, or for other reasons. In this cases, you might not want to send them the “Order Completed” email, as the follow-up work is done by your email marketing software or they are automatically redirected to the resource upon checkout.

Of course, you definitely want to keep the “Order Completed” emails for orders that are not $0. Unfortunately, the method suggested by WooCommerce which “unhooks the emails” cannot be used together with a conditional check (in our case we need to verify if the Order total is $0), so a workaround is needed. Here’s the fix. Continue reading WooCommerce: Disable Customer Order Email for Free Orders

Posted on

WooCommerce: Send Checkout User Info to Email Recipient

When my blog readers become official Business Bloomer supporters, a few custom fields are conditionally displayed on the WooCommerce checkout (thanks to this snippet or this other snippet).

For example I show a custom user Twitter field. Thanks to the snippets, this is automatically saved into the WordPress User Profile page. But as I love to thank each Business Bloomer supporter on Twitter, I wanted to generate an additional email reminder (to myself, or to an assistant’s email address for example) with the Twitter username I should be thanking. You might need something like this if you need to send a new customer email address to a coworker. Or maybe a new address to a dropshipper…

So, how do you send a custom email with some user information, after such user completes the checkout and a new WooCommerce order is created? Continue reading WooCommerce: Send Checkout User Info to Email Recipient

Posted on

WooCommerce: Add “Confirm Email Address” Field @ Checkout

A correct email address is worth a thousand dollars, some ecommerce expert would say 🙂

So, you don’t want your checkout visitors to mess up with that, do you?

What about adding an “Email Verification” field? In this way, we can make sure they double check their entry – and also show an error message in case they don’t match!

Let’s see how I implemented this for a freelancing client of mine – I’m sure you will be grateful! Continue reading WooCommerce: Add “Confirm Email Address” Field @ Checkout

Posted on

WooCommerce: Hide Hidden Products From Cart, Order, Emails

While working on a workaround for a client, I had to hide a hidden product from the cart, checkout, order received and emails. Hidden products already don’t show on the shop and category pages, but they do show on the cart if they’re added to cart “programmatically”.

A tough task, but as usual here I come with the solution 🙂 Continue reading WooCommerce: Hide Hidden Products From Cart, Order, Emails

Posted on

WooCommerce: Add New Row @ Order Totals (Email & Thank-you Page)

While working for a freelance client, I did some research on the code that generates the “Order Totals” table. This shows on the Thank-you Page and also on the Email Receipt. So, what if we wanted to add a table row to the foot of such table? Continue reading WooCommerce: Add New Row @ Order Totals (Email & Thank-you Page)

Posted on

WooCommerce: How to Add CSS to WooCommerce Emails

Unlike your WordPress theme, you can’t just add CSS to your style.css in order to customize the look of the WooCommerce emails.

This handy PHP snippet is therefore the only viable solution. By using the WooCommerce Email Hook Guide, I identified an action called woocommerce_email_header, which is the very first thing that gets called by WooCommerce while “assembling” an email.

By using that hook, we can then echo some CSS that will therefore be applied to every email (note, woocommerce_email_header is a hook that all emails have in common). Continue reading WooCommerce: How to Add CSS to WooCommerce Emails

Posted on

WooCommerce Visual Hook Guide: Emails

WooCommerce Customizers: the Visual Hook Guide is back 🙂

Here’s a visual HTML hook guide for the WooCommerce Emails. This visual guide belongs to my “Visual Hook Guide Series“, that I’ve put together so that you can find WooCommerce hooks quickly and easily by seeing their actual locations.

Let me know in the comments if this resource it’s helpful and how! Also, if you’re eager to learn how to use this guide, how to customize emails AND how to make sure your customization only affects one email type (e.g. only the Customer Processing email), take a look at this free video lesson.

Enjoy 🙂

Continue reading WooCommerce Visual Hook Guide: Emails

Posted on

WooCommerce: Add First Name to Email Receipts

Today we take a look at the WooCommerce Emails and specifically at how to change the subject of the Customer Processing Order receipt by adding the billing “First Name”. As usual, this is a matter of 3 lines of code – feel free to copy/paste and customize it to your liking 🙂 Continue reading WooCommerce: Add First Name to Email Receipts

Posted on

WooCommerce: Move / Reorder Checkout Fields (Email, Country, etc.)

We’ve already seen how to disable fields on the checkout page by using a plugin.

That was a while ago and in my ultimate goal of trying to do as much as possible without installing heavy-weight plugins, today we’ll take a look at how to move fields around the billing & shipping sections. Continue reading WooCommerce: Move / Reorder Checkout Fields (Email, Country, etc.)

Posted on

WooCommerce: Add Payment Method to Order Emails

I think this is a major flow in WooCommerce and I’m surprised they still haven’t thought about it! A client of mine had to create a brand new payment gateway – but unless you login to WordPress you can’t find out what the payment method was from the order emails. Here’s how to fix it. Continue reading WooCommerce: Add Payment Method to Order Emails

Posted on

WooCommerce: How to Add Content to a Specific Order Email

A client of mine asked me to add some additional text to the thank you page and the customer order email. In both cases, my client wanted to show an immediate upsell to get buyers to go back to the website and buy again with a coupon code. Continue reading WooCommerce: How to Add Content to a Specific Order Email

Posted on

WooCommerce: Set Custom Order Status for New Orders

All WooCommerce orders go to either “processing”, “completed”, “on-hold” and other default order statuses based on the payment method and product type.

Sometimes these statuses are not enough. For example, you might need to mark certain orders in a different way for tracking, filtering, exporting purposes. Or you might want to disable default emails by bypassing the default order status changes.

Either way, setting a custom order status automatically once the order is processed is quite easy. And today we’ll see which PHP snippets you need in order to make this work! Continue reading WooCommerce: Set Custom Order Status for New Orders

Posted on

How to Create a WooCommerce iOS / Android App?

This is a guest post by Saleeh K. of Appmaker – if you like the article, make sure to thank him in the comments!

If you own a WooCommerce website, this is the best time to creating an app for your existing and potential customers. According to statista, Google Play store had 3.8M applications and Apple store carried about 2 million apps in Q1 2018. The total app download number was 178+ billion and the same study revealed that this figure will grow to 258 billion by 2022.

While making sure your website is 100% responsive and looks great on mobile phones and small devices, a WooCommerce app can allow your customers to benefit from:

  • faster access
  • personalized content
  • optimized user experience
  • push notifications
  • purchase without logging in
  • better user engagement

However, the major issue faced while getting an app done is definitely its development cost. Right now, hiring a development agency to develop a simple app can cost you USD $5,000-10,000. Apps are not cheap.

Besides, the number of app development agencies is constantly increasing (given the potential earnings and the growing market demand) – and unfortunately the chances you might run into a not-so-professional team of developers are also getting bigger.

Well, have you ever thought of creating an app without worrying about anything (including its price)? The great news is that you can now create a WooCommerce app without any coding skills. And this is exactly what we’ll see in this tutorial. Continue reading How to Create a WooCommerce iOS / Android App?

Posted on

15 Best Food & Restaurant WooCommerce Themes

The most efficient way to turn your restaurant / food business into a money-making machine is to cater to your customer’s needs better than you do now. Supposing you have a modern interior design, tasty food, friendly atmosphere, professional personnel, etc… what else can you do for your business?

You need a bombastic online presence. You need to – maybe – rebuild your restaurant website. Thankfully, if you don’t know much about web design, it’s not a big deal. No need to do anything from scratch nowadays (we entrepreneurs value our time and effort, right?).

If you want to enable online food ordering, sell restaurant gift cards, turn your takeaway into an optimized online booking system, or give online users the freedom to build their custom pizza, it’s time to switch to a WooCommerce theme.

By picking one of the 15 themes described in this article (oh, by the way – here’s the full list of 50+ restaurant WooCommerce themes you can pick), you can immediately take advantage of the most popular ecommerce plugin (WooCommerce) and its free or premium extensions to increase your food business sales and profitability. Continue reading 15 Best Food & Restaurant WooCommerce Themes

Posted on

WooCommerce: Easily Get Order Info (total, items, etc) from $order Object

As WooCommerce a freelancer, every day I repeat many coding operations that make me waste time. One of them is: “How to get ____ if I have the $order variable/object?”.

For example, “How can I get the order total”? Or “How can I get the order items”? Or maybe the order ID, customer ID, billing info, payment method, total refunds and so on… hopefully this article will help you save time as well 🙂 Continue reading WooCommerce: Easily Get Order Info (total, items, etc) from $order Object

Posted on

WooCommerce: Change Autofocus Field @ Checkout

If you decide to delete or reorder checkout fields, you probably also need to change the checkout field with “autofocus”. In plain English, this is the checkout field where the keyboard cursor goes automatically to on checkout page load (by default, this is the Billing First Name).

As usual, changing this default behavior is very easy, even if you’re not familiar with PHP. In the example below, I’m removing the autofocus from Billing First Name and assigning it to the Billing Email field instead.

Copy the snippet, test it on your development environment and only then push it to your live website. Enjoy! Continue reading WooCommerce: Change Autofocus Field @ Checkout

Posted on

WooCommerce: How to Run an Affiliate / Referral Program?

There is no doubt – one of the fastest, most affordable and easiest ways to increase your WooCommerce sales is to “hire your own customers”.

You’ve probably heard of affiliate commissions, referral programs, influencer marketing, brand ambassadors and so on. Online brands are doing all they can to promote this strategy and “tap” into their fans’ communities.

As a WooCommerce store owner, no matter whether you sell digital or physical products, you should definitely give an affiliate program a go. Besides, what if I told you enabling such a complex system was actually super easy?

With a simple plugin you can immediately add an affiliate marketing program to your WooCommerce website, give registered affiliates their own dashboard with statistics and revenue, pay them via PayPal or Stripe either manually, immediately or monthly and basically do absolutely no coding or complex set up.

Decide your referral commission (e.g. $10 per product, or 15% per order), install the affiliate plugin, contact all your existing customers, subscribers, fans, followers and see your sales grow.

For such a little investment, your returns might be reasonable enough and there is really nothing stopping you from implementing this today.

In this article, we’ll take a look at the two most reliable WooCommerce Affiliate plugins. They both do the trick, so it’s up to you to make that final choice. Continue reading WooCommerce: How to Run an Affiliate / Referral Program?

Posted on

Advanced WooCommerce Tracking: Analytics, Reports, Exports, Segmentation

If your WooCommerce store already generates a few orders per month, then it’s probably the right time to step up and start analyzing your ecommerce data.

Despite the “WooCommerce > Reports” tab within the WordPress dashboard can give you sales figures, stock takes and customer lists – we all know that’s a very basic, limited functionality. It gives you CSV export but no automation. There are no filters and no segments. It’s accurate but still not enough.

Data plays a vital role on your WooCommerce website. If you can get access to a wider range of figures, reports, screens, calculations, exports, filters, integrations, then it’s very likely you can understand how to increase your profits.

Data can help you identify problems (hello, cart abandonment – biggest responsible for low conversion rates), can help you select popular products for your cross-sell and up-sell strategy, can give you a hint on how to improve the user experience and have them check out faster – as well as giving you a hand analyzing patterns, performances and customer behavior.

In this (very long) post, we’ll take a look at ways to gather ecommerce data beyond the default “Reports” section, generate email digests, print advanced reports, filter and segment orders and customers, and much more. I will be referring to the two biggest tracking software for WooCommerce: Google Analytics and Metorik. Continue reading Advanced WooCommerce Tracking: Analytics, Reports, Exports, Segmentation