WooCommerce snippets

Tweak carts, checkout, orders and product pages without another plugin. Every snippet here needs WooCommerce.

Showing 40 snippets

WooCommerce PHP Allow Only One Product in the Cart Replace whatever is in the cart when a new product is added, for stores that sell one plan, ticket or service at a time. Intermediate WP 7.1 Requires WooCommerce WooCommerce PHP Change the “Added to Your Cart” Message Rewrite the notice shown after adding a product to the cart, and point its button to checkout instead of the cart. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Set a Minimum and Maximum Quantity Per Product Limit how many of each product a customer can buy, and require a minimum, with checks on the product page and in the cart. Intermediate WP 7.1 Requires WooCommerce WooCommerce PHP Add Custom Text to WooCommerce Emails Add a message, such as next steps or a support link, to the emails customers get for processing and completed orders. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Send Shoppers Straight to Checkout After Adding to Cart Skip the cart page for stores with one product or simple orders: clicking Add to cart goes straight to checkout. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Remove or Rename My Account Menu Items Remove tabs like Downloads from the WooCommerce My Account menu and rename others. Beginner WP 7.1 Requires WooCommerce
Want it without code?Our plugins do the heavy lifting, with settings, updates and support.
Browse plugins
WooCommerce PHP Show the Discount Percentage on Sale Badges Replace the plain "Sale!" badge with how much the customer saves, like "-25%", calculated from each product's prices. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Add a Custom Tab to My Account Add a new page to WooCommerce's My Account area, such as Support or Rewards, with its own menu item and URL. Advanced WP 7.1 Requires WooCommerce WooCommerce PHP Hide Product Counts in Category Titles Remove the "(12)" product count shown next to category names on the shop page. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Add a Prefix to Order Numbers Show order numbers like "NP-1234" instead of "1234" in emails, My Account and wp-admin. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Change How Many Products Show Per Page Set how many products appear on each shop and category page in classic themes. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Untick “Ship to a Different Address” by Default Start the classic checkout with "Ship to a different address?" unticked, so most customers only fill in one address. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Change the Number of Shop Columns Change how many products sit side by side on shop and category pages in classic themes. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Change the “Return to Shop” Link Send the "Return to shop" button on an empty cart to any page you choose, such as your homepage or a featured category. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Remove Related Products From Product Pages Remove the "Related products" section from single product pages. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Add a “Sold Out” Badge on the Shop Page Show a clear "Sold out" badge on out-of-stock products in the shop grid, so shoppers don't click through to find out. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Change the Number of Related Products Show more or fewer related products on product pages, and set how many columns they use. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Remove the Password Strength Meter on Checkout Stop loading WooCommerce's password strength meter on the front end, which removes a large script from checkout and My Account. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Remove, Rename or Reorder Product Tabs Remove the Reviews or Additional information tab, rename Description, and change the order the tabs appear in. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Add a Custom Order Status Add an order status such as "Awaiting shipment" to track orders between processing and completed. Intermediate WP 7.1 Requires WooCommerce WooCommerce PHP Add a Custom Product Tab Add your own tab to every product page, such as Shipping & Returns, with content you write once. Intermediate WP 7.1 Requires WooCommerce WooCommerce PHP Hide the SKU, Categories and Tags on Product Pages Remove the "SKU: … Category: … Tags: …" line from single product pages, or hide only the SKU. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Custom Stock Messages (“Only 3 Left”) Replace WooCommerce's stock text with friendlier messages like "Only 3 left" and "Back soon". Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Add an “Empty Cart” Button Let shoppers clear their whole cart with one click on the cart page, protected by a security check. Intermediate WP 7.1 Requires WooCommerce WooCommerce PHP Show “Free” Instead of $0.00 Display the word "Free" for products priced at zero instead of showing $0.00. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Add a Handling Fee to Every Order Add a fixed handling fee, or a percentage of the cart, to every order. Works in the classic and block-based checkout. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Disable a Payment Method by Country or Cart Total Hide a payment method for certain countries or above a cart total, for example cash on delivery for large or overseas orders. Intermediate WP 7.1 Requires WooCommerce WooCommerce PHP Load WooCommerce Scripts Only on Shop Pages Stop WooCommerce loading its styles and cart scripts on blog posts and other pages that don't sell anything, without breaking order attribution. Intermediate WP 7.1 Requires WooCommerce WooCommerce PHP Change Add-to-Cart Button Text by Product Type Customise the WooCommerce add-to-cart button label for simple, variable, and external products without touching template files. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Auto-Complete Virtual and Downloadable Orders Automatically mark WooCommerce orders as Completed when they contain only virtual or downloadable products, eliminating the need to manually process these orders. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Disable the WooCommerce Default Stylesheet Prevent WooCommerce from loading its default frontend stylesheet when your theme provides its own complete WooCommerce styling. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Hide the Shop Page Title Hide the "Shop" heading and product category titles on WooCommerce archive pages, with optional lines to hide their descriptions too. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Hide Prices and Add-to-Cart for Non-Logged-In Users Replace product prices and add-to-cart buttons with a login prompt for unauthenticated visitors, a common pattern for B2B wholesale and membership-gated WooCommerce stores. Intermediate WP 7.1 Requires WooCommerce WooCommerce PHP Set a Minimum Order Amount Before Checkout Prevent customers from proceeding to checkout until their cart total meets a minimum order value, displaying a clear notice about how much more they need to add. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Change the “Place Order” Button Text Replace "Place order" on the classic checkout with your own wording, such as "Pay now" or "Complete purchase". Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Remove Fields From the Classic Checkout Remove the company name, second address line and other fields you don't need from the classic checkout form. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Make the Phone Field Optional at Checkout Stop requiring a phone number on the classic checkout, so customers who don't want to share it can still order. Beginner WP 7.1 Requires WooCommerce WooCommerce PHP Add a Custom Field to Checkout Ask customers an extra question at checkout, such as a gift message or how they heard about you, using WooCommerce's checkout fields API. Intermediate WP 7.1 Requires WooCommerce WooCommerce PHP Show “Add X More for Free Shipping” in the Cart Tell shoppers exactly how much more they need to spend to get free shipping, right in the cart and at checkout. Intermediate WP 7.1 Requires WooCommerce WooCommerce PHP Hide Other Shipping Rates When Free Shipping Is Available When a customer qualifies for free shipping, show only the free option instead of making them pick it from a list of paid ones. Beginner WP 7.1 Requires WooCommerce

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only