WooCommerce snippets
Shop pages, product pages, cart, checkout, My account and order emails. Free, tested and ready to install in Snipfire in one click.
- 256 snippets
- 29 one-click packs
- Tested with WordPress 7.1 and WooCommerce 11.1
- No account needed
- Change the “Add to cart” text Uses your own words on the add-to-cart buttons of product pages and of simple products in shop lists.
- Hide other shipping when shipping is free When an order qualifies for free shipping, the customer sees only free shipping (and local pickup, if you offer it) instead of paid options too.
- Minimum order amount Customers can’t check out until the cart reaches the amount you set. The cart says how much is missing.
- Remove “Downloads” from My account Removes the Downloads tab from the customer’s My account page, for shops that don’t sell downloadable products.
- My account opens on the orders list Customers who open My account land straight on their orders instead of the dashboard page.
- Load WooCommerce scripts and styles only on shop pages WooCommerce’s CSS and JavaScript load only on the shop, product, cart, checkout and account pages, not on your blog posts and other pages.
- “Call for price” when there’s no price Products without a price show “Call for price” instead of nothing.
- Catalogue mode: show products without selling Products can’t be bought: the add-to-cart buttons disappear and the cart stays empty. Prices still show. For showrooms, B2B catalogues or a shop that isn’t open yet.
- Cash on delivery only up to €300 Cash on delivery disappears from the payment methods when the order total is above the amount you set.
- Complete paid orders of virtual products Paid orders that contain only virtual products (services, memberships, tickets) go straight to Completed instead of waiting in Processing.
- “Continue shopping” goes to the shop After adding a product, the “Continue shopping” link goes to the shop page instead of back to the last product.
- Hide the coupon field on the cart page The cart page no longer shows the coupon box; customers enter coupons at checkout. Fewer people leave to hunt for codes.
- Apply a coupon from a link Links like example.com/?coupon=SUMMER10 apply that coupon to the visitor’s cart, even before they add products. Perfect for newsletters and ads.
- “Empty cart” button Adds an “Empty cart” button to the cart page that removes everything in one click.
- “Free” instead of €0.00 Products that cost nothing show “Free” instead of €0.00.
- “Spend €12 more for free shipping” in the cart The cart and checkout show how much more the customer needs to spend to get free shipping, and congratulate them when they get there.
- Google Analytics 4 purchase event Sends a GA4 “purchase” event with the order’s items and total from the order confirmation page, once per order. Needs the Google Analytics 4 snippet (or gtag.js) on the site.
- Hide out-of-stock products Products that are out of stock disappear from the shop, categories and search, whatever the WooCommerce setting says.
- Prices for logged-in customers only Visitors who aren’t logged in see “Log in to see prices” instead of prices, and can’t add to the cart. For wholesale and trade shops.
- Hide SKUs on product pages Product pages stop showing the SKU. You still see and search it in the admin.
- “Only 3 left” when stock runs low When 5 or fewer are left, the product page says “Only 3 left – order soon” instead of “3 in stock”.
- At most 10 of each product per order Customers can buy at most 10 of any product in one order. The quantity box stops at 10 and the cart explains the limit.
- “New” badge on recent products Products added in the last 30 days show a “New” label in the shop and category pages.
- Send new order emails to another address too New order notifications also go to a second address, for example your warehouse or accountant.
- Newest products first in the shop The shop and category pages list the newest products first, unless the visitor picks another order.
- Newsletter checkbox at checkout Adds an unticked “Send me news and offers by email” checkbox to the checkout. The choice is saved on the order and shown in the order screen.
- Remove the “Description” heading Removes the “Description” heading inside the Description tab on product pages, which just repeats the tab’s name.
- Turn off the product image zoom Product images stop zooming when the mouse moves over them. The gallery and lightbox still work.
- Remove WooCommerce’s Marketing menu Hides the Marketing menu and its recommendations. Coupons move back under WooCommerce.
- No WooCommerce marketplace suggestions Removes the extension suggestions WooCommerce shows in its admin screens.
- Turn off the password strength meter Removes WooCommerce’s password strength meter from the account and checkout pages. It loads a 400 KB script and blocks weak but acceptable passwords.
- Remove the shipping calculator from the cart Removes the “Calculate shipping” form from the cart page. Customers see shipping costs at checkout.
- Prefix for order numbers Order numbers show with a prefix, like WEB-1234, in emails, My account and the admin. The real order ID doesn’t change.
- Customer phone in the orders list Adds a Phone column to the WooCommerce orders list, so you can call a customer without opening the order.
- Make the phone number optional at checkout The billing phone field stays at checkout but customers can leave it empty.
- Change the “Place order” button text The checkout button says “Complete purchase” (or whatever you write) instead of “Place order”.
- 24 products per shop page The shop and category pages show 24 products per page.
- Four related products in one row Shows four related products in a row of four under each product.
- Remove the “Additional information” tab Removes the Additional information tab (weight, dimensions, attributes) from product pages.
- Remove checkout fields you don’t need Removes company name and the second address line from the checkout. Edit the list to remove other fields.
- Remove “You may be interested in…” from the cart The cart page stops showing cross-sell products.
- Remove the order notes field Removes “Order notes” from the checkout.
- Remove categories and tags from product pages Removes the “SKU / Category / Tags” line under the add-to-cart button on single product pages.
- Remove related products Single product pages stop showing the “Related products” section.
- Remove “Showing all 12 results” Removes the result count line above the products on shop and category pages.
- Remove the Reviews tab Removes the Reviews tab from product pages, for shops that don’t take reviews.
- Remove the “Default sorting” dropdown Removes the sort dropdown from the shop and category pages.
- Rename the product tabs Renames the product page tabs, for example “Additional information” to “Specifications”.
- Show the discount on sale badges Sale badges show the discount, for example “-20%”, instead of “Sale!”. For variable products it’s the biggest discount.
- “Ship to a different address?” starts unticked The checkout’s “Ship to a different address?” box always starts unticked, so the shipping fields stay hidden unless the customer needs them.
- Three products per row in the shop The shop and category pages show three products per row.
- Go straight to checkout Add to cart takes customers straight to the checkout instead of the cart. Suits shops that mostly sell one product at a time.
- One of each product per order Every product can only be bought once per order (the quantity box disappears). For courses, tickets and one-off items.
- “Sold out” badge on shop pages Out-of-stock products show a “Sold out” label on their image in the shop and category pages.
- Your own thank-you message after ordering Replaces “Thank you. Your order has been received.” on the order confirmation page with your own words.
- “From €19” instead of a price range Variable products show their lowest price as “From €19” instead of “€19 – €49”.
- “You save €10” on sale products Product pages of items on sale show how much the customer saves, under the price.
No snippet matches that yet. Tell us what you need and we'll consider adding it. Suggest a snippet
Or install a whole pack
Packs group snippets that belong together. Open one in Snipfire, tick what you want and install: everything arrives switched off, or switched on together after one test load. Snippets that need your details, or that change how the whole site behaves, always stay off until you say so.
- Harden WordPress Close the doors attackers try first: XML-RPC, user name discovery, the file editors, revealing login errors. 7 snippets
- Clean up the head Remove the links, scripts and styles WordPress adds to every page that most sites never use. 7 snippets
- Performance Small changes that save the server and the browser some work. 7 snippets
- Turn off what you don’t use Each of these replaces a small plugin: no comments, classic editor, no feeds, no search and more. 9 snippets
- Admin and login Your branding on the login page, a tidier admin, and handy extras such as duplicating posts. 8 snippets
- Content and media Shortcodes, links, images and small design touches for the public site. 10 snippets
- WooCommerce essentials The small WooCommerce changes shop owners ask for most. 11 snippets
- Greek e-shop For shops in Greece: receipt or invoice with a checked VAT number (ΑΦΜ), Greek phone and postcode checks, a cash on delivery fee, and greeklish addresses. 6 snippets
- Privacy and GDPR Keep less personal data and send less of it to other companies. 4 snippets
- Analytics and pixels The usual tracking codes, ready to paste your ID into. Administrators’ visits aren’t counted. 6 snippets
- Comments Fewer spam comments and more control: close old posts, set minimum and maximum lengths, a spam trap, no links. 13 snippets
- Posts and the editor Make the block editor calmer and give pages excerpts, tags and categories. 14 snippets
- Images and media Sharper, lighter images, tidier uploads and a more useful media library. 11 snippets
- More admin tweaks Useful columns, a tidier admin bar, a welcome box for clients, and fewer menus for editors. 15 snippets
- Users and profiles Registration dates, last logins, social profile fields, longer sessions and stricter passwords. 9 snippets
- Login and security extras Limit login attempts, email-only logins, a registration spam trap and more hardening. 11 snippets
- Email Emails from your name and address, sent through SMTP, and fewer notification emails. 8 snippets
- SEO basics Meta descriptions, social sharing tags, article structured data and cleaner indexing, for sites without an SEO plugin. 11 snippets
- RSS feeds Control what your RSS feed shows, and when. 7 snippets
- Search and archives Better site search and cleaner archive pages. 6 snippets
- Design touches Small front-end touches: a reading progress bar, an announcement bar, a WhatsApp button, accessibility fixes. 11 snippets
- Shortcodes Handy shortcodes for dates, breadcrumbs, buttons, share links, members-only content and more. 12 snippets
- More speed More ways to load less: block styles, speculative loading, fewer scripts. 9 snippets
- Turn off more More features you may not need: sitemaps, trackbacks, automatic updates, pattern suggestions. 11 snippets
- Developer tools Maintenance mode, template names, page stats, environment labels and a WP-Cron viewer. 9 snippets
- WooCommerce: shop and product pages Badges, price display, tabs and layout for your shop and product pages. 22 snippets
- WooCommerce: cart and checkout Free-shipping progress, coupon links, quantity limits and a cleaner checkout. 15 snippets
- WooCommerce: account, emails and admin A leaner My account page, handier order lists and emails, and lighter pages. 9 snippets
- More tracking codes Google Ads, TikTok, LinkedIn, Pinterest, Hotjar, Plausible, site verification and a GA4 purchase event. 8 snippets
Library from Snipfire 0.15.1. Written from scratch for Snipfire, free to use on any site. Which plugins can a snippet replace?
Move your snippets over this afternoon.
Importing changes nothing until you switch over, and your old shortcodes keep working.