Snippets

Get some of the most helpful Woocommerce snippets that can transform your website into a selling powerhouse. From simple pieces of code to link between products, to changing the add to cart text, this collection of snippets is certain to be one that you will continue to come back to for more.

We have designed these Woocommerce code snippets to be used from the novice user to the more advanced. They are designed in such a way that you’ll understand just why and how they work. I offer an explanation as to possible uses, where to place them and also encourage feedback once they have been placed.

By the time you have completed using all of these pieces of code on your various Woocommerce websites you’ll be more than comfortable to not only place them, but also create them yourself. They are designed to be simple and effective, saving unnecessary plugin additions.

How to Change the Product Tabs Order in WooCommerce – 2026

WooCommerce product pages typically include tabs like “Description,” “Additional Information,” and “Reviews.” While the default order of these tabs may work for many stores, there are instances where you might want to change the order to better suit your business needs. For example, you may want to prioritise customer reviews or move additional product information […]

How to Change the Product Tabs Order in WooCommerce – 2026 Read More »

How to Set the Default Order Status Based on Payment Gateway in WooCommerce – 2026

By default, WooCommerce assigns order statuses based on the payment method used, such as “Processing” for successful online payments and “On hold” for bank transfers. However, there are situations where you might want more control over how orders are handled, for example, to ensure orders paid via specific gateways are marked as “Completed” or “Pending”

How to Set the Default Order Status Based on Payment Gateway in WooCommerce – 2026 Read More »

How to Add a Sticky Notification Bar to WooCommerce Without a Plugin – 2026

A sticky notification bar can be an excellent way to display important messages, promotions, or updates at the top of your WooCommerce store. While there are several plugins available for this feature, you can add a custom sticky notification bar directly to your WooCommerce store without relying on third-party tools. This approach gives you full

How to Add a Sticky Notification Bar to WooCommerce Without a Plugin – 2026 Read More »

How to Create an Exit Popup Without a Plugin in WooCommerce – 2026

Exit popups can be a great way to capture leads, offer discounts, or keep customers engaged as they are about to leave your website. While many plugins offer this feature, you can create a simple exit popup in WooCommerce without relying on third-party plugins. This approach gives you full control over the design and functionality,

How to Create an Exit Popup Without a Plugin in WooCommerce – 2026 Read More »

How to Remove Default Shipping at WooCommerce Checkout Page – 2026

By default, WooCommerce automatically selects a shipping method at checkout. While this feature can streamline the checkout process for some stores, there are instances where you might not want a shipping method to be pre-selected. For example, if you want customers to deliberately choose their preferred shipping option, or if you’re dealing with specialised shipping

How to Remove Default Shipping at WooCommerce Checkout Page – 2026 Read More »

How to Calculate Sales by Coupon Code in WooCommerce – 2026

Coupons are a great way to attract customers and boost sales in WooCommerce. Whether you’re running seasonal promotions or rewarding loyal customers, knowing how much revenue each coupon has generated is essential for evaluating the success of your campaigns. WooCommerce doesn’t automatically provide a detailed breakdown of sales by coupon code, but you can calculate

How to Calculate Sales by Coupon Code in WooCommerce – 2026 Read More »

How to Calculate Sales by State in WooCommerce – 2026

Understanding where your customers are coming from and which states generate the most revenue can be crucial for optimising your marketing strategy and planning stock. WooCommerce offers various analytics options, but calculating sales by state isn’t immediately available out of the box. Fortunately, you can easily generate these reports with custom code, directly from your

How to Calculate Sales by State in WooCommerce – 2026 Read More »

How to Create a Custom WooCommerce Product Type – 2026

WooCommerce provides several default product types such as Simple, Variable, Grouped, and External products. But what if your store has unique needs that don’t quite fit into these categories? This is where custom product types come in. By creating your own product type, you can tailor WooCommerce to suit your specific requirements. In this guide,

How to Create a Custom WooCommerce Product Type – 2026 Read More »

WooCommerce Admin: How to Find Products With No Weight – 2026

If you’re managing a WooCommerce store that ships physical products, ensuring that each product has an accurate weight assigned is crucial. This impacts shipping calculations, which in turn affects your bottom line. However, as your product catalog grows, it can be challenging to spot those items that are missing this key information. In this guide,

WooCommerce Admin: How to Find Products With No Weight – 2026 Read More »

How to Bulk Generate Coupons Without a Plugin in WooCommerce – 2026

If you’re running a WooCommerce store, offering discounts through coupons can be a great way to encourage repeat purchases and attract new customers. Although there are plenty of plugins available for coupon generation, it’s entirely possible to bulk generate coupons directly through WooCommerce without using any additional plugins. In this guide, we’ll walk you through

How to Bulk Generate Coupons Without a Plugin in WooCommerce – 2026 Read More »

Scroll to Top
×