Skip to content
Sign in Get started
Menu
Docs menu

Product badges

Applies to Companion 1.0.3 Updated 6 November 2026 View as Markdown

With LanternWP Companion, products can carry a Bestseller and a New badge, on their product cards and above the product title. Rules decide for most products; any product can also show or hide each badge itself. The sale badge shows the discount, such as −20%, or "Up to −30%" when the variations differ.

Two product cards of the Common Goods shop on a computer: Everyday Crewneck with a New badge and Field Overshirt with a Bestseller badge on the photo

The same two product cards on a phone

The Product badges row in Appearance → LanternWP → Features: its description with the Handbook link, the state On, Settings and its switch

Set the rules

The rules are off until you turn them on, so until then a product on Automatic shows no badge. While no rule is on and no product shows a badge itself, the Product badges row in Appearance → LanternWP → Features says On with "No badge rule is on" and Turn one on, which opens the rules.

  1. Go to Appearance → LanternWP → Features and select Settings in the Product badges row. It opens the feature's details. All features at the top leads back to the list, and Handbook, after the description in the header, opens this page in a new tab.
  2. In the New badge card, switch on Mark recently published products as New. Days then shows: how many days after it is published a product is New, 30 until you change it (a whole number from 1 to 9999).
  3. In the Bestseller badge card, switch on Mark the best-selling products as Bestseller. Two fields then show:
    • Products: how many of the best-selling products are Bestsellers, 8 until you change it (from 1 to 9999).
    • Sales period: the sales that make a best seller, from the last 7 days, the last 30 days (until you change it), the last 90 days, the last 12 months or all time. Only paid orders count.
  4. Select Save.

Under each rule that is on, the details say which products the badge is on: "Now on Field Jacket, Pocket Tee, Oxford Shirt and 5 more.", or "Now on no product."; before you save, "After saving, on …". When some products show or hide the badge themselves, a line says how many, such as "2 of 21 products show or hide New themselves; this rule skips them.", with how to put them back on the rule; when all of them do, "All 21 products show or hide New themselves, so this rule changes nothing yet." The best sellers are counted again at most once an hour.

The details of Product badges: All features at the top, the header with Handbook, its state and switch, the New badge card with Mark recently published products as New, the Bestseller badge card with Mark the best-selling products as Bestseller, both off, and On each product leading to Products, above Save

At the end of the details, On each product ("Show, Hide or Automatic for each badge, in Product data → General.") leads to Products. While the switch at the top of the details is off, they say "Product badges is off. Its settings are kept and work once it is on."

Show or hide a badge on one product

  1. Edit the product and open Product data → General.
  2. Set Bestseller badge or New badge to Show or Hide. Automatic, the default, leaves it to the rules; the help beside each field says what the rule does now, such as "Automatic shows it on the 8 best-selling products of the last 30 days." or "Automatic shows it for 30 days after the product is published.", or, while its rule is off, "Automatic hides it until a rule is set in Appearance → LanternWP → Features → Product badges."
  3. Select Update.

Put products back on the rules

  1. Go to Products and select the products.
  2. In Bulk actions, choose Set badges to Automatic and select Apply.

Both badges of the selected products then follow the rules, and the list says so, such as "The badges of 3 products are on Automatic now." When products show or hide a badge themselves, the rule in the details of Product badges in Features says how many.

A demo import shows or hides a demo product's badge itself only where your rules would decide otherwise than the demo; the other badges stay on Automatic.

Where they appear

Companion places its Product Badges block on product cards and on the product page for you; it stands in the Product Catalog and Single Product templates (Appearance → Editor → Templates). In the Site Editor you can move it like any block.

A product list leaves out the badge its collection already says: products in a Best Sellers collection show no Bestseller badge, and products in a New Arrivals collection no New badge. The same products show it everywhere else.

Turn it off

  1. Go to Appearance → LanternWP → Features.
  2. In the Product badges row, turn the switch off and select Save.

Turned off, no badge shows anywhere: Companion places its Product Badges block in no template, including templates you add later, and a Product Badges block already saved in a template or a page shows nothing in the store. In the Site Editor such a block says "Product badges is off." with a link to turn it on. Turn the switch on again to bring it back where it was. The rules and the badges you set on products stay as they are; the feature's details say it is off, and its switch is there too.

Remove it from one template

To keep it on but leave it out of one template, select the Product Badges block in that template in the Site Editor, open Options in its toolbar, choose Delete and select Save. The Product badges row in Features then says Needs setup and the template's name, such as "Removed from Single Product", and its link to the details reads Set up. To bring the block back there, select Restore in templates in that row, then Restore in templates again in the window that asks "Put Product badges back in Single Product? Your other changes there stay.": Companion puts the block back in those templates and keeps your other changes to them.