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.
Adds Sale, New, Hot and Sold out ribbons to product cards from a simple rules engine.
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.
Built on the same Addon SDK as every other Pro add-on — extend it instead of replacing it.
GET /ambikly-pro/v1/badgesambikly_product_card_badgesambikly_pro_product_badgeswp_enqueue_scriptsrest_api_initA 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.
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.
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.
Ambikly → Add-ons → Product Badges → toggle on. Pro must be active; nothing else to install.
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).
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.
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.
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.
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.
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.
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.
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.
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.