Update 03 February 2021: Script tested and confirmed working on WooCommerce 4.9.2.

Coupons are amazing, who does not like a discount? A very common way to give coupons to customers is to create one automatically after their first order, or something like that.

The issue with that though is that usually these coupons expire after a specific period, and by default, WooCommerce will not delete them. They have no reason to stay in your database though, so how do we delete expired coupons automatically?

Read more

Have you ever seen post-sale selling techniques?

Not long ago I was shopping at The Postman’s Knock (if you want to improve your calligraphy you should check them out) and noticed that their shop runs on WooCommerce.

I purchased a product, and then on the checkout page I  noticed that they have a table of products related to their courses.

In their case, they are external products, but I thought to use that section to cross-sell some products post-sale. Let’s see how to do it!

Read more

It’s not unusual that products need to be handled singularly in an order, or that they can’t be sold in more than one unit.

WooCommerce covers the second case so you can limit customers to buy only one unit of a specific item per order. The first case instead is not covered by default, but it’s still possible to handle it with some custom coding.

Let’s see how to do both.

Read more

Raise your hand if you like to get the New Order email notification in your inbox! Yeah, I know, everyone would raise their hand! But just receiving an order is not enough. You need to handle it properly, and sometimes edit it to meet the customer needs.

Learn here all the details about how to edit orders in WooCommerce.

Read more

If you own a Discord server and a WordPress website, you should probably check out my plugin WordPress Discord Post.

This plugin is an integration between your WordPress website and your Discord server, sending to the second one messages when a new post is published, or a contact form is submitted, or even when a new WooCommerce order is received!

Many people though asked me how to send to Discord only posts from specific categories. Here you can find a snippet for this.

Read more