Skip to content

Configuration

Marks is configured under a single top-level Marks admin menu. Settings are sanitised and clamped on save, so an out-of-range value can never break a listing.

The master on/off switch for the whole plugin. When off, no badges render anywhere, regardless of the per-rule toggles.

Where badge groups may render:

  • Single product page — badges on the product image on the product page.
  • Shop and category listings — badges on the loop cards in shop, category and tag archives.

Enable one or both. Each context has its own badge cap (see Appearance).

Per-rule toggles, each with optional custom label text. Leave a label blank to use the built-in translated default.

BadgeWhen it shows
SaleProduct is on sale
NewPublished within the newness window
Low stockStock-managed and quantity at or below the threshold
BestsellerTotal sales reach the configured threshold
Discount %Computed from regular vs sale price
Free shippingProduct shipping class matches your configured slugs
Out of stockWooCommerce reports out of stock

The numbers that drive the rules:

  • Newness window — how many days a product counts as New (30 by default).
  • Low-stock level — the quantity at or below which Low stock appears (stock-managed products only).
  • Bestseller sales count — the total sales that earn the Bestseller badge.
  • Free-shipping class slugs — a comma-separated list of shipping-class slugs that trigger the Free shipping badge.
  • Shape — pill or square badges.
  • Uppercase — optionally force badge labels to uppercase.
  • Per-context caps — the maximum number of badges shown on a single product page and on a loop card, so a busy product never stacks too many badges.

An optional setting to hide WooCommerce’s default corner Sale! flash when the Marks Sale badge is enabled, so shoppers see one clear promo label instead of two competing ones.

A single store-wide manual badge — a label and a colour set on the Marks screen. Attach it to individual products by setting the product meta _marks_manual_text (and optionally _marks_manual_style) on the products that should show it. One consistent label keeps merchandising fast across a large catalogue.

Badges render with plain CSS — no JavaScript — positioned over the product image so they never reflow the layout (CLS-safe). Marks ships a translation template (POT) and a clean uninstall that removes its options, and it is compatible with HPOS and the Cart/Checkout Blocks.