WordPress and WooCommerce Tutorials

How to increase your revenue – WooCommerce Cross-Selling guide

How to increase your revenue – WooCommerce Cross-Selling guide

Introduction If you are the owner of a WooCommerce based shop, you are probably looking into various ways to increase your sales. There are various ways to achieve this, including…

Read more
Change “You cannot add product to the cart because the product is out of stock” message in WooCommerce

Change “You cannot add product to the cart because the product is out of stock” message in WooCommerce

Sometimes products go out of stock. It happens. If you are looking to modify the error message WooCommerce shows by default when a product is out of stock, you can…

Read more
Change “You cannot add another product to your cart” message in WooCommerce

Change “You cannot add another product to your cart” message in WooCommerce

If you are selling products that can only be sold individually, then you might be wondering how to replace the error message that shows in your WooCommerce shop. You can…

Read more
Update “Return to shop” button text in WooCommerce

Update “Return to shop” button text in WooCommerce

Updating the “Return to shop” button text was made even easier with the new WooCommerce 4.6 update. We can now use the filter woocommerce_return_to_shop_text. Hope this snippet helped you, and…

Read more
Setup RunCloud on Linode VPS hosting

Setup RunCloud on Linode VPS hosting

A step by step guide for setting up the RunCloud server management tool on a Linode VPS instance for WordPress / WooCommerce hosting. Preface One of the most common questions…

Read more
The ultimate guide to speedy WordPress sites

The ultimate guide to speedy WordPress sites

We are all aware of how important the speed of your website is to your business. The slower our website is, the higher the bounce rates and loss of business….

Read more
How to make search URL prettier in WordPress

How to make search URL prettier in WordPress

In this guide, I will should you a simple trick to make your website’s search results page URL much nicer. With WordPress, you can make your posts URLs prettier from…

Read more
How to create products and orders programmatically in WooCommerce

How to create products and orders programmatically in WooCommerce

This is a simple guide on how to add test products and orders dynamically to your WooCommerce shop. This functionality can be useful to test the limits of your website…

Read more
Add Product to Cart Programmatically in WooCommerce

Add Product to Cart Programmatically in WooCommerce

If you are looking to add a product to the cart as soon as a specific page is loaded, we can do the following: Hook into the template_redirection action: We…

Read more
Customise WooCommerce checkout fields

Customise WooCommerce checkout fields

Clients are often looking to customise the checkout field on their WooCommerce shop. This can be done using the “woocommerce_checkout_fields” filter. Modify labels, placeholder or add custom class The following…

Read more
How to add or remove coupons dynamically based on cart total, on WooCommerce

How to add or remove coupons dynamically based on cart total, on WooCommerce

Imagine the scenario where we have 2 coupons, one (5off) that gives $5 discount to the total client order, as well as a coupon (10off) that gives $10 discount to…

Read more
CF7 to Salesforce integration programatically

CF7 to Salesforce integration programatically

In this tutorial, you will learn about how to create leads in Salesforce programmatically, without the use of plugins. This tutorial focuses on integrating Contact Form 7 to SF using…

Read more
How to remove update notifications for all users except admin

How to remove update notifications for all users except admin

In WordPress we can remove update notifications from all users except specific roles, by username or by user ID. Below you can find a few examples that you can insert…

Read more
How to make fields required programatically in Contact Form 7

How to make fields required programatically in Contact Form 7

In this guide, you will learn how to create custom validation in CF7. This guide is also the solution for programmatically making fields required. Contact Form 7 uses the validation…

Read more
Debug Pending Updates

Debug Pending Updates

If your WordPress site shows you have an update available, but none can be found in themes or plugins, you can use this snippet to debug the issue.

Read more
How to hide WooCommerce products from search by category

How to hide WooCommerce products from search by category

I found myself in the situation where I had to give the client the possibility to hide some of their products from search, so they can manually send the product…

Read more
How to generate a simple random password in PHP

How to generate a simple random password in PHP

As I often work with APIs for our clients, I often need a simple password generator that creates a random password using numbers and letters, both lowercase and uppercase. The…

Read more
How to generate a future date in PHP

How to generate a future date in PHP

Often I find myself wanting to generate a date in the future, for instance, this time next year. Using the single function below I am able to achieve that.

Read more
How to change the “add to cart” text on the WooCommerce buttons

How to change the “add to cart” text on the WooCommerce buttons

Sometimes you might want to change the “add to cart” text of the buttons on your WooCommerce setup. This is very easy to do, and all you need is to…

Read more
Move Yoast SEO to the bottom

Move Yoast SEO to the bottom

If you, like us, build WordPress templates using ACF, you may have found yourself wanting to move the Yoast SEO section all the way to the bottom. The plugin itself…

Read more
Remove Add to Cart button in WooCommerce

Remove Add to Cart button in WooCommerce

If you are looking to remove the Add to Cart button in WooCommerce and replace it with a custom button then this short snippet is for you. Did you find…

Read more
Converting XML to Array in PHP code snippet

Converting XML to Array in PHP code snippet

If you are trying to convert XML to an Array, then this is a snippet I have found useful in the past. Hope this helps you. If you are having…

Read more
Where are WooCommerce orders stored in the WordPress database?

Where are WooCommerce orders stored in the WordPress database?

Trying to find the WooCommerce orders information in the database could be a daunting task for a newbie, but it’s actually easier than you might think. Just like the WooCommerce…

Read more
WooCommerce Hooks Cheatsheet

WooCommerce Hooks Cheatsheet

Here you will find a complete list of WooCommerce specific hooks, organised by page and order. WooCommerce Global Hooks WooCommmerce Cart Hooks WooCommerce Checkout Hooks WooCommerce Product Hooks WooCommerce Category…

Read more
Where are WooCommerce products stored in the WordPress database?

Where are WooCommerce products stored in the WordPress database?

Sometimes you might find yourself looking for where the products information is stored in the WordPress database, but they are easier to find than you might think. Products are in…

Read more