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 Display Product Dimensions and Weight on the WooCommerce Cart Page – 2026

Adding product dimensions and weight to the WooCommerce cart page can help customers better understand the products they’re purchasing. This feature is particularly useful for stores selling physical goods like furniture, appliances, or parcels where size and weight matter for shipping. In this guide, we’ll show you how to dynamically display product dimensions and weight […]

How to Display Product Dimensions and Weight on the WooCommerce Cart Page – 2026 Read More »

How to Create Custom Order Notes Based on Product Categories in WooCommerce – 2026

Customising order notes based on product categories can help streamline fulfilment processes or communicate specific details about orders to your team. For example, you can automatically add a note if the order contains products from a certain category, such as “fragile items” or “perishable goods.” In this guide, we’ll show you how to dynamically create

How to Create Custom Order Notes Based on Product Categories in WooCommerce – 2026 Read More »

How to Implement Custom Discounts Based on User Role in WooCommerce – 2026

Offering discounts based on user roles in WooCommerce can be a powerful strategy for rewarding loyal customers, wholesalers, or specific user groups. Whether you want to offer discounts to wholesale buyers or exclusive deals to premium members, role-based pricing can help you achieve this. In this guide, we’ll show you how to implement custom discounts

How to Implement Custom Discounts Based on User Role in WooCommerce – 2026 Read More »

How to Add a Sale Countdown Timer to WooCommerce Without a Plugin – 2026

Adding a countdown timer to WooCommerce sale products is a powerful way to encourage customers to make a purchase before time runs out. While plugins can achieve this, adding a countdown timer without a plugin offers you flexibility, reduces overhead, and allows for customisation. In this guide, we’ll show you how to add a sale

How to Add a Sale Countdown Timer to WooCommerce Without a Plugin – 2026 Read More »

How to Change Product Tab Titles and Headings in WooCommerce – 2026

WooCommerce product tabs are an excellent way to organise product information, such as descriptions, reviews, and additional details. However, the default titles (“Description,” “Reviews,” etc.) might not suit your store’s branding or the type of information you want to display. In this guide, we’ll show you how to change the titles and headings of WooCommerce

How to Change Product Tab Titles and Headings in WooCommerce – 2026 Read More »

How to Prevent Comment Spam Without a Plugin in WordPress – 2026

Comment spam is a common issue for WordPress site owners. While plugins can help, adding custom measures to block spam without a plugin can reduce overhead and provide a tailored solution. One effective approach is using a honeypot field, which is invisible to human users but traps bots trying to fill it. In this guide,

How to Prevent Comment Spam Without a Plugin in WordPress – 2026 Read More »

How to Add a Subtitle to WooCommerce Products – 2026

Adding a subtitle to WooCommerce products is a great way to provide additional product details or a catchy tagline right below the product title. This feature can enhance the presentation of your products, giving customers more context or highlighting special attributes. In this guide, we’ll show you how to add a custom subtitle field to

How to Add a Subtitle to WooCommerce Products – 2026 Read More »

How to Add a Featured Icon to Featured Products in WooCommerce on Shop, Category, Tag, and Search Pages – 2026

Adding a “Featured” icon to your featured products can help draw attention to these items, making them more visible to customers as they browse. This approach can help boost conversions for products you want to highlight. In this guide, we’ll show you how to add a “Featured” icon on featured products across your WooCommerce shop,

How to Add a Featured Icon to Featured Products in WooCommerce on Shop, Category, Tag, and Search Pages – 2026 Read More »

How to Hide Product Category on WooCommerce Product Pages – 2026

Displaying product categories on WooCommerce product pages can be helpful for navigation, but there may be times when you want a cleaner look by hiding these categories. Whether it’s for design or branding purposes, hiding the category can help simplify the product page layout and focus customers’ attention on the product details. In this guide,

How to Hide Product Category on WooCommerce Product Pages – 2026 Read More »

How to Display Featured Products First on Shop, Category, Tag, and Search Pages in WooCommerce – 2026

Prioritising featured products on WooCommerce pages is a great way to showcase your best offerings and encourage customers to explore highlighted items first. By displaying featured products at the top of your shop, category, tag, and search pages, you can increase visibility and sales for these products. In this guide, we’ll show you how to

How to Display Featured Products First on Shop, Category, Tag, and Search Pages in WooCommerce – 2026 Read More »

Scroll to Top
×