Pro add-on · Store

Product Badges for WordPress

Adds Sale, New, Hot and Sold out ribbons to product cards from a simple rules engine.

$199/yr or $549 once — all 35 add-ons Same admin as the free core Enable or disable without losing data
What it does

Product Badges, in practice.

Hooks the core ambikly_product_card_badges filter to append Sale, New, Hot and Sold out badges to the array the storefront renders on cards and product pages. Sale defers to the core on-sale check, which Flash Sales can gate; New compares the product's created date against your day count; Hot sums units sold in a rolling window and compares against your threshold; Sold out mirrors the core stock precedence. For markup the storefront does not render, such as the Product Grid block, a script collects data-ambikly-product-id elements without badges, calls GET /ambikly-pro/v1/badges?ids= once (capped at 200 ids and cached for five minutes) and paints the ribbons at your configured position.

CapabilitiesStore
  • Four badges with individual toggles and labels
  • Sale badge follows core on-sale logic and Flash Sales windows
  • New based on days since the product was created
  • Hot based on units sold in a rolling window
  • Sold out mirrors core stock precedence
  • Public badges endpoint, cached five minutes, capped at 200 ids
  • JavaScript fallback for cards the server did not decorate
  • Results extensible through the ambikly_pro_product_badges filter
Where it shows up

Storefront, admin and settings.

On the storefront

  • Ribbons on product cards in the shop, search and archive grids
  • Ribbons on product pages and related products
  • Fallback ribbons on block or theme cards carrying a product id

Settings you control

  • Show Sale badge and its label
  • Show New badge, its label and the number of days
  • Show Hot badge, its label, the sold threshold and the window in days
  • Show Sold out badge and its label
  • Badge position (default top-left)
For developers

Routes and hooks.

Built on the same Addon SDK as every other Pro add-on — extend it instead of replacing it.

REST routes

  • GET /ambikly-pro/v1/badges

Core hooks it listens to

  • ambikly_product_card_badges
  • ambikly_pro_product_badges
  • wp_enqueue_scripts
  • rest_api_init
When it earns its place

Three stores that want Product Badges.

1

Frequent new arrivals

A fashion store adds products weekly. With New set to 14 days, arrivals are labeled automatically and the badge disappears on its own, so nobody has to edit products to add or remove a 'new' tag as the range turns over.

2

Highlighting momentum

A gadget store enables Hot with a threshold of 20 units in 7 days. Products that catch on after a review show the ribbon while the trend lasts, and it fades once sales slow, giving shoppers a live signal of what others are buying.

3

Managing expectations on stock

A store with limited runs keeps sold-out products visible for search traffic. The Sold out ribbon on cards tells shoppers before they click, reducing frustration and matching the disabled Add to cart they would find on the product page.

Setup

From toggle to live in a few minutes.

  1. Enable it

    Ambikly → Add-ons → Product Badges → toggle on. Pro must be active; nothing else to install.

  2. Set it up

    Open its settings panel and set: show Sale badge and its label; show New badge, its label and the number of days; show Hot badge, its label, the sold threshold and the window in days; show Sold out badge and its label; badge position (default top-left).

  3. Find it in use

    The storefront surfaces, admin screens and settings it adds are listed under “Where it shows up” above; nothing needs placing by hand unless a shortcode is named there.

  4. Turn it off without losing anything

    Disable the add-on from the same screen. Its settings and data stay in place, and a lapsed license pauses it the same way — the store keeps running.

Where it fits

Part of the physical products story.

Inventory, variations, shipping zones, tax rates, coupons, refunds and seven payment methods ship in the free core. Conditional shipping rules, shipment tracking, swatches and bundles arrive with Pro — in the same admin.

  • Inventory and low-stock alerts in Free
  • Shipping zones and tax rates in Free
  • No transaction fees
FAQ

About Product Badges.

What makes a product Hot?

Units sold across orders in the last N days reaching your threshold, both configurable, with defaults of 50 units in 30 days. It is a current-trend signal rather than an all-time bestseller count, so a product that spiked years ago does not stay Hot forever. Hot is off by default.

Will badges work with my theme's own product cards?

Yes, provided each card element carries data-ambikly-product-id. The script batches those ids into one request to the public badges endpoint and appends the ribbons, skipping any card that the server already decorated so nothing doubles up.

Why is there no Sale badge during a scheduled promotion?

The Sale badge defers to the core on-sale check, which Flash Sales gates to its schedule. Outside the window the product is not on sale, so no badge appears even if a sale price is stored, and the badge is added only once when core already supplied it.

How does Sold out decide a product is unavailable?

It follows core stock logic: when stock is managed, a quantity at or below zero means sold out; otherwise the stock status must be 'outofstock'. That keeps the ribbon consistent with whether the Add to cart button actually works on the product page.

Get Product Badges with every other add-on.

Pro is $199 a year or $549 once, for all 35 add-ons. Enable this one from the same admin the day you need it.