| 开发者 | aitechtools |
|---|---|
| 更新时间 | 2026年12月4日 23:24 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
{discount}, {saved}, {price}, {stock}, {sku}, {category}, {title} keep every badge accurate across your whole catalog. "-{discount}%" becomes "-25%", "-30%", "-10%" automatically.[aitpb_badges] or [aitpb_badges product_id="123"] for page builders and custom templates.{sale_ends}, logged-in user and role targeting, and pulse / bounce / shine animations that respect "reduce motion". The free plugin keeps working without it.
Privacy
The plugin stores badge settings in your own database. It does not collect visitor data, set cookies or contact external servers.
/wp-content/plugins/.You can create as many badge rules as you need. By default up to four badges show on each product; you can change that in Products → Badge settings (0 = no display cap).
It works with block themes (Product Collection / Product Image blocks) and classic WooCommerce templates. If your theme or page builder uses its own product grid without WooCommerce hooks, place [aitpb_badges] in the product template.
Enable "Hide the WooCommerce sale flash" in Products → Badge settings (on by default).
Badges are ordered by their Order value (lowest first). Set the maximum per product in Badge settings.
No JavaScript is added to the front end. Rules are evaluated in PHP with data WooCommerce has already loaded.
Yes, badges are part of the page HTML. Rules based on the visitor (Pro: logged-in / role) need a page cache that varies by login state, which most caches already do.