
WooCommerce snippets: product pages, cart and checkout tweaks, prices and orders.

Rename WooCommerce billing field labels in WordPress on checkout and My Account so they stay renamed after AJAX updates and country changes.

Add text before or after WooCommerce product prices, like “From:” or “incl. VAT”, with an escaped, translatable WordPress snippet.

Add a product_cat_{slug} class to the body tag on WooCommerce single product pages in WordPress, so you can style each product category with CSS.

A WooCommerce product gallery slider with CSS scroll snap and plain JavaScript: no jQuery, no CDN, assets only where the slider renders.

Send the WordPress New User Registration email to the site admin whenever a customer creates a WooCommerce account at My Account or checkout.

Show the estimated reading time of a WordPress post in your theme without a plugin: 200 words per minute plus time for images.

Hide WooCommerce products with a price of 0 or no price from the shop, categories, search and product shortcodes, with one small snippet.

Remove the WooCommerce Marketing menu from the WordPress admin and keep Coupons under the WooCommerce menu.

Change the WooCommerce Add to cart button text on product pages and shop lists, without renaming Select options or out of stock buttons.

Change the WooCommerce Out of stock notice and the shop button of unavailable products to Sold out, without touching products on backorder.

Change the WooCommerce Add to cart button to Add again? when the product is already in the cart, on product pages and in shop loops.

Remove the WooCommerce “has been added to your cart” notice and its View cart button with one filter, while other store notices keep working.

Move out of stock products to the end of the WooCommerce shop and category pages, and keep the sorting your customer picked.

Disable the hover zoom on WooCommerce product images and keep the gallery and lightbox, with a short PHP snippet.

1st Step Install and activate Code Snippets plugin. Add below code in code snippets: 2nd Step Edit the Oxygen Template that applies to woo single products. For the element you want to apply the “minimum 1 upsell” condition, click on Conditions icon then Set Conditions. Click “Add Condition” icon. Choose Dynamic Data condition. Under Advanced click PHP Function Return value. Function Name: wpl_check_upsell_product…

Two WooCommerce shortcodes that show the cart total or item count anywhere in WordPress and update without a reload when products are added.

Exclude WordPress post types and taxonomies from the Slim SEO sitemap.xml with two filters, for helper post types nobody should find.

A WooCommerce cart icon shortcode with the item count that links to the cart, updates over AJAX and works in block themes and builders.
3rd party plugins actions admin archive block-themes block editor Blocks block theme build capabilities core CSS custom post types development filters full site editing gutenberg hook hooks Image img load styles maintenance media mu-plugin Must Have npm Oxygen performance php plugins repeater rest api scripts organizer security SEO single product theme.json Tips updates users WooCommerce wordpress wp-cli WP Admin