WooCommerce: Send Email to Admin Every 3 Hours (Cron Job)

This snippet consists of many WooCommerce tasks: setting up a “WordPress Cron Job” (i.e. schedule a hook that runs on a specific time interval), getting the WooCommerce completed orders from the database, and finally sending a simple email to the store admin.

Complex, but as usual you can simply copy/paste and re-adapt it to your unique specifications. For example, I’m using it to send a survey email to each customer who has placed an order. There are thousands of applications, so this is just the start. Enjoy! Continue reading WooCommerce: Send Email to Admin Every 3 Hours (Cron Job)

WooCommerce: Send a Custom Email on Order Status Change

If you use custom WooCommerce order statuses, or wish to target an order status transition that is not default (e.g. when order goes from “Processing” to “Completed”, the Completed email triggers – but what if you want to target a transition from “Processing” to “Custom Status”?), sending custom emails is quite complex.

First of all, they won’t show under WooCommerce > Settings > Emails (unless you code it, true) – second, no email will trigger.

So, how do they do it? Continue reading WooCommerce: Send a Custom Email on Order Status Change

How to Blacklist WooCommerce Scammers, Emails, IP, Phones?

A WooCommerce email notifications pops up – yet another new order, money, revenue, happiness. However, hold on a second – money is not technically in your bank account until you’re forced to give a refund. Even worse, until you realize not only you had to give a refund, but also getting the item back costs you a fortune. And who knows how many times this is going to happen, mostly when you ship physical products.

Fortunately, there are ways in WooCommerce to blacklist customers, deny purchasing from specific countries, block certain IP addresses and do whatever you can to save money.

In the era of Amazon and online shopping we constantly hear of scams and frauds, so this is definitely a topic that shouldn’t be underestimated. A small plugin investment or a few lines of code could actually make a big difference.

Besides, choosing the correct online payment methods (which should give you some sort of anti-fraud out of the box) and avoiding offline payments (bank transfer, cash on delivery, check) are important measures you should already have in place.

So, moving beyond the actual online payments, there is something else we could do to stop scammers placing an order (yes, even before paying or trying to pay). Prevention is better (and more affordable) than cure, right?

I’ve put together a list of WooCommerce plugins and settings you should look into from today on. And sooner rather than later. Enjoy 🙂 Continue reading How to Blacklist WooCommerce Scammers, Emails, IP, Phones?

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

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

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 WooCommerce 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

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

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

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

WooCommerce: Which “Subscriptions” Plugin Should You Buy? [2019]

Setting up a recurring revenue stream is one of the hottest ecommerce money-making strategies. And there is no doubt that, no matter whether you sell cakes, audio books, services, rentals, there is always room for a “subscription” product.

Think about selling a product once, and then seeing automatic renewal orders come through. And where the customers’ credit card is automatically charged. Yes, this can be done with a “WooCommerce Subscriptions” plugin.

Though, it comes at a cost (besides, it’s a subscription you have to purchase from a WooCommerce plugin developer to guarantee on-going bug fixing, support and maintenance!), with the reason being you can’t really code such a delicate functionality on your own (with a snippet for example). Subscription plugins are about money, revenue, automatic charge operations, tokens, error handling, retrials and other complex things – at this stage you have no other choice than purchasing an out-of-the-box solution: a reliable WooCommerce Subscriptions plugin.

The hard part here is deciding which subscription plugin is the best fit for you as a user and for your WooCommerce store. You also need to consider things such as integration, compatibility, UX, payment gateways, support (my favorite), code quality, functionality roadmap, maintenance, long-term reliability and – also – price.

This ultimate review guide goes through my top 3 choices. From $49 to $199, you have a full range of products, and each one offers the same exact thing: recurring payments.

So, what’s the difference? Which one should you pick? Continue reading WooCommerce: Which “Subscriptions” Plugin Should You Buy? [2019]

27 WooCommerce SEO Tips (For Non-Techies)

I had the pleasure to speak at WordCamp Milano 2018, and I had a blast! I believe the topic was pretty interesting, so you all deserve a long post recap with actionable tips and screenshots to understand basic WooCommerce SEO (video of the presentation will be available soon).

The following WooCommerce Search Engine Optimization tips are mostly non technical, and are aimed at WordPress and WooCommerce users who never heard of “schema”, “long tail”, “301” and “hreflang” (although if you did, please have a read anyway, make sure to post a comment and contribute to this post with your expertise).

The thing is – SEO is never going to die. Besides, Google & co. constantly improve their website ranking algorithms. This means what you learned 5 years ago in regard to SEO might not work today, and what you learn today might not work in 2 years time… you get the point.

In this blog post, we will analyze and study 27 evergreen SEO factors for WooCommerce websites. These should be applied (or not applied, as there are many “not to do” tips as well) to your ecommerce website at all costs if you believe you deserve better ranking (who doesn’t?). And as they’re evergreen, they’re likely not to go away for a few years at least 🙂

So, let’s get started! Continue reading 27 WooCommerce SEO Tips (For Non-Techies)

WooCommerce: Move / Remove Coupon Form @ Cart & Checkout

Coupons: the good, the bad and the ugly. WooCommerce coupon codes are great to convert more sales – but sometimes they get users to pause / stop placing the order until they find a coupon code online (you did it too, I know).

One good workaround that the internet giants such as Amazon and eBay have implemented is to hide the coupon form until an email is entered, or alternatively to move the coupon code to the bottom of the Cart page. This is a very smart move, and gets the user to concentrate on the Cart / Checkout details before entering or searching for a coupon.

So the question is – how to move the coupon code form in the Cart page and remove it from the Checkout page? Well, as usual, a bit of PHP can help us. Here’s how it’s done! Continue reading WooCommerce: Move / Remove Coupon Form @ Cart & Checkout

WooCommerce: Remove Cart Product Link @ Cart Page

We’ve already seen how to remove the product permalink from the “order table” (the one you see on the Thank you page, My account pages and emails). Thsi time, we’re looking at doing the same thing on the Cart page, which uses different “hooks” than the order pages and therefore requires its own snippet.

Here’s how it’s done – as usual 1 PHP line is sufficient! Continue reading WooCommerce: Remove Cart Product Link @ Cart Page

WooCommerce: 4 Reasons You Should Use a .STORE Domain

This is a guest post by Suman Das of Radix – if you like the article, make sure to thank him in the comments!

Now that you’re planning to sell online, you need to create your own brand. And while WooCommerce can help you develop a slick ecommerce website, building a great brand starts with picking a great domain name.

When it comes to effective brand building and harboring customer trust, your domain name plays a crucial role. It’s the first touchpoint for your customers and helps them get an understanding of what awaits them on your website. Paid marketing campaigns and special offers can help you convert traffic quickly, but to thrive in the long run it’s essential that you build an outstanding BRAND.

Your WooCommerce website is a virtual storefront, so why not use a brand new and very relevant .STORE domain name instead of a .COM? It’s a smart way to highlight the fact that you sell something on your website… without having to explain it through your brand name.

So, here are some reasons you should consider registering a .STORE domain for your WooCommerce website.

1. Strong, Memorable Brand Name

Selecting a .STORE domain can boost your brand awareness. As a domain extension that has been crafted specifically for retail and ecommerce, .STORE clearly implies what you do and what your customers can expect on your website.

Several small businesses such as Wonder.Store, Kono.Store, TopCoat.Store use .STORE to denote their presence on the internet – while making the most of a short, memorable, relevant and intuitive brand name.

Besides, when it comes to website goals, you can use .STORE to demarcate your online storefront from your business website. For example, Emirates uses Emirates.Store for its merchandise sales, while its corporation website – which has clearly a different audience in mind – is Emirates.com

2. Offline Marketing Campaigns

A .STORE domain is an effective way for you to transcend your offline marketing efforts and conjoin it with your online presence.

How does this work? If you run an ad in the local newspaper, radio or TV channel a short, memorable .STORE domain name might help you immensely.

For example, PoloShirts.Store might be an intuitive domain name which can be either used to send users to your standalone website, that sells polo shirts, or even to redirect traffic to your “Polo Shirts” product category page. This is a smarter option instead of using a long and awkward URL such as www.poloshirtsstore.com/casual-wear/shirts/polo-shirts/.

3. SEO

Search Engine Optimization is the backbone of organic marketing and it heavily depends on the quality and number of backlinks your website has. High quality backlinks for your website are pivotal to improve your organic search rank and for this to work, the ‘anchor text’ is crucial.

For example, if your WooCommerce store is called “Lifeandstyle.store” and you repeatedly get backlinks from credible websites with anchor text “Life and Style Store” and “Lifestyle Store” instead of just “Lifestyle”, your backlink game can strengthen.

The more backlinks you get this way, the better it is for your organic search ranking. Want to know more about how new domains impact SEO? You can check out this comprehensive white paper created by Radix, the third largest new domain registry in the world.

4. Credibility and Trust

If you are just starting out, building customers’ trust should be at the forefront of your marketing agenda. Having a domain name that is simple and unique for your WooCommerce store can lend legitimacy and credibility to your business, be it for customers, partners or suppliers.

Selecting a short and brandable name on .STORE, coupled with a professional .STORE email address can do wonders for your business. If you were to come across an ecommerce website that used an awkward URL and a Gmail address, a customer might think twice before purchasing.

To make things easier for their customers and partners, enhance credibility and trust and increase their brand awareness, Nebraska-based “The Stately Shirt Company” changed their domain name from Thestatelyshirtcompany.com to Stately.Store.

Conclusion

To sum things up, a .STORE domain extension can help you build a better online brand, make your offline marketing more effective, gain more organic traffic and build trust in your target audience.

You can now get your own .STORE domain name at just $4.99 for the first year. Use coupon STORE499 at Get.store