The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join

WooCommerce

Add a Custom Body Class to WooCommerce Product Pages

Adding a custom CSS class to WooCommerce product pages makes it easier to apply page-specific styling without affecting the rest of your website. Steps Open your theme’s functions.php file. Add the code below. Save the file. Open any WooCommerce product page and inspect the <body> tag. Done — the class single-product-custom will be added to […]


Change WooCommerce Product Breadcrumb Separator

You can customize the separator used between items in the WooCommerce breadcrumb navigation. This is useful for matching your website’s design and branding. Steps Open your theme’s functions.php file. Add the code below. Save the file. Open a WooCommerce product page. Done — the default breadcrumb separator will be replaced with your custom separator. Output […]


Add a Custom Message Before the WooCommerce Cart

You can display a custom notice at the top of the WooCommerce Cart page. This is useful for showing shipping offers, discount information, delivery times, or important store announcements. Steps Open your theme’s functions.php file. Add the code below. Save the file. Open your WooCommerce Cart page. Done — the custom message will appear above […]


Add a Custom Message After the WooCommerce Cart Total

You can display an important message directly below the cart totals, such as delivery information, payment details, or a promotional offer. Steps Open your theme’s functions.php file. Add the code below. Save the file. Open your WooCommerce Cart page. Done — your custom message will appear below the cart totals.


Add a Custom Fee to WooCommerce Checkout

You can automatically add a small handling or service fee to the WooCommerce cart and checkout. This is useful for processing fees, packaging charges, or service charges. Steps Open your theme’s functions.php file. Add the code below. Save the file. Add a product to your cart and proceed to checkout. Done — a custom fee […]


WooCommerce Quantity Break Cards

WooCommerce Quantity Break Cards adds flexible quantity-based pricing cards to WooCommerce product pages. Store owners can configure different quantity offers such as Buy 1, Buy 2, Buy 3, Buy 4, etc., and control which offers are available for each individual product. Features: Display quantity-break pricing cards on product pages. Enable or disable quantity breaks globally. Choose which […]


Change WooCommerce “You May Also Like” Text on Cart

If you want to customize the cross-sell section heading on the WooCommerce Cart page, you can change it with a simple filter. Steps Open your theme’s functions.php file. Add the code below. Save the file. Open your Cart page. Done — the default cross-sell heading will be replaced with your custom text.


Change WooCommerce Related Products Heading

WooCommerce displays “Related products” below the product details. You can easily replace this heading with your own text using a simple filter. Steps Open your theme’s functions.php file. Add the code below. Save the file. Open a WooCommerce product page. Done — the Related Products heading will be replaced with your custom text.


Remove the WooCommerce Product Categories from the Shop Page

If you want a cleaner WooCommerce shop page and don’t want product categories displayed above the product grid, you can remove the category display with a simple filter. Steps Open your theme’s functions.php file. Add the code below. Save the file. Refresh your Shop page. Done — WooCommerce product categories will no longer be displayed […]


Automatically Empty the WooCommerce Cart Before Adding a Product

For stores where customers should purchase only one product at a time, you can automatically empty the existing cart whenever a new product is added. Steps Open your theme’s functions.php file. Add the code below. Save the file. Add a product to the cart and test it. Done — the previous cart contents will be […]


Proudly supported by