By default, WooCommerce displays applied coupon codes in lowercase in the cart and checkout totals. This snippet overrides that label to show the coupon code in uppercase, which looks more professional and consistent with how coupons are typically marketed. Uses mb_strtoupper() for full multibyte and UTF-8 character support, and esc_html__() with the WooCommerce text domain […]
When free shipping becomes available in WooCommerce (via minimum order, coupon, or any other condition), this snippet automatically hides all other shipping methods – such as flat rate and local pickup – leaving only the free shipping option(s) visible to the customer. Unlike threshold-based approaches, this works by detecting the presence of the free_shipping method […]
Improve website speed by unloading unnecessary WooCommerce CSS and JavaScript files from pages that do not use WooCommerce functionality. This helps reduce page size, HTTP requests, and improves Core Web Vitals scores on Elementor and business websites.
WooCommerce cart fragments can create unnecessary AJAX requests on pages where the cart is not needed. Disabling them can improve frontend performance and page speed.
Overrides the default WooCommerce product archive image size and forces it to load the full image size. Useful when you want higher-quality images displayed without cropping or resizing.
Displays a cart notice when the cart subtotal is close to a free shipping threshold.
Changes the product archive add-to-cart button label without editing WooCommerce templates.
Uses the pre_get_posts hook to exclude selected WooCommerce products from appearing across frontend queries, including shop pages, search results, feeds, and product archives. The products remain accessible via direct links but are hidden from public listings. Useful for hiding discontinued, private, or restricted products without deleting them.
Removes the default structured data (schema markup) generated by the WooCommerce plugin to prevent duplicate schema issues. This is useful when another SEO plugin or custom schema is already handling structured data, helping avoid conflicts and improving SEO consistency.
Automatically adds a clean “Out of Stock” badge overlay on WooCommerce product images without modifying templates. Useful for improving UX and helping users quickly identify unavailable products, especially on stores with large catalogs. Lightweight, no plugin required, and works with most themes.