Usage
Back to overview · Previous: Configuration · Next: Developer guide
The badge list
Section titled “The badge list”Go to Products → Product labels. Each row shows:
- a preview of the badge;
- its name and where it is shown;
- its rules;
- its schedule state (Always, Running, Scheduled or Expired);
- its position and status.
From the list you can:
- change the status;
- activate, disable or delete several badges at once with the gear menu;
- open the Preset gallery;
- add a badge with the + button.
The badge list, the badge editor and the preset gallery show the license status at the top: a small License: Valid chip, or a banner with the status and the actions when the add-on is switched off (see License). Vendors do not see it.
Preset gallery
Section titled “Preset gallery”The gallery shows 14 ready-made designs: Sale ribbon, Sale burst, New arrival, Low stock, Free shipping, Bestseller, Top rated sticker, Hot, Eco-friendly, Gift idea, Last chance (scheduled), Limited edition, Exclusive, and Sale in theme colors.
- Use preset creates the badge with its rules in the Disabled state. Review it, then set it to Active.
- Customize opens the editor prefilled with the preset. Nothing is saved until you click Create.
Creating and editing a badge
Section titled “Creating and editing a badge”The editor has four tabs and a live preview on the right. The preview uses sample values: discount 25, stock 3, days left 2.
General
Section titled “General”-
Name. Shown in the admin panel only. The import column also accepts it.
-
Badge text. Shown on the storefront and translatable: switch the content language at the top of the page to edit another language. You can use these placeholders:
{discount}: the product’s discount in percent. The larger of the catalog promotion discount and the list price discount is used.{stock}: the in-stock quantity.{days_left}: the number of days until the badge’s end date.
If a placeholder has no value for a product (no discount, stock not tracked, no end date), the badge is skipped for that product.
-
Show in. Choose Product lists and product page, Product lists only or Product page only.
-
Position. A smaller number is checked first. Badges that share a corner stack from the corner outward in this order.
-
Schedule. Optional start and end dates. The end date includes the whole day. Leave both empty to show the badge all the time.
-
Status.
Appearance
Section titled “Appearance”- Type. Text / CSS shape or Graphic (uploaded image). For a graphic, upload a PNG or WebP with a transparent background and set the display width in pixels. On 4.18, CS-Cart does not accept SVG uploads.
- Position on the image. A 3×3 grid of nine positions.
- Shape. Rectangle, pill, ribbon, price tag, circle sticker, starburst or corner ribbon.
- Ribbons touch the image edge.
- Corner ribbons are drawn across the image corner, so use them in a corner position and on their own in that corner.
- Size. Small, medium or large.
- Colors. Custom colors (badge and text color) or a theme color: discount label, product label, primary button or free shipping label. Theme colors follow the active style and the Theme editor.
- Style. Solid, glossy gradient, outline or soft tint.
- Outline uses the badge color for the border and the text.
- Soft tint uses a light shade of the badge color as the background and the text color for the text.
- Font. Theme font (default), theme headings font, system font, serif or monospace.
- Text style. Regular, bold or bold uppercase.
- Icon. None, or one of 12 inline icons: star, lightning, flame, truck, leaf, gift, clock, heart, check mark, percent, sparkle or crown.
Tick a rule to enable it. Match decides whether all enabled rules must match or any one is enough.
| Rule | Matches when |
|---|---|
| Discount | The discount (catalog promotions or list price) is between from and to percent. Leave to empty for no upper limit. |
| New product | The product was created within the last N days. |
| Stock level | The in-stock quantity is between from and to. Products that are out of stock or not tracked never match. |
| Price range | The price the customer sees, in the primary currency, is within the range. |
| Free shipping | The product has Free shipping enabled. |
| Bestseller | At least N units were sold in paid orders within the last D days. 0 days means all time. The numbers are cached (see Configuration). |
| Category | The product is in one of the selected categories. Tick Include subcategories to include their subcategories too. |
| Feature value | The product has one of the ticked values of the selected feature. You can use checkbox, select, multiple-checkbox, number-select and brand features. If no value is ticked, any product that has a value matches. |
| Vendor (Multi-Vendor admins) | The product belongs to one of the selected vendors. |
A badge with no rules and no assigned products is not shown anywhere.
Products
Section titled “Products”Products listed here always get the badge, whatever the rules say. Use Add products to pick them.
Bulk assign by condition adds every product that matches the filters to the list, once. You can filter by categories (with subcategories), vendor (Multi-Vendor admins), price range and In stock. For badges that should follow catalog changes automatically, use rules instead. Remove all products clears the list. These buttons do not save other changes in the form, so save first.
The Labels tab on the product page
Section titled “The Labels tab on the product page”In Products → Products → (product) → Labels, tick the badges this product should get. Badges marked Matches rules are already shown by their rules. This check ignores catalog promotions and customer groups; the storefront takes them into account.
Import and export
Section titled “Import and export”The product import and export (and Advanced Products Import) have a Product labels column.
- Export writes the IDs of the manually assigned badges, for example
3,7. - Import accepts badge IDs or badge names (in any language), separated by commas, for example
Hot, 7. The listed badges replace the manual badges that the importing user manages. - An empty cell changes nothing.
-removes all manual badges from the product.
Multi-Vendor: vendor badges
Section titled “Multi-Vendor: vendor badges”When Allow vendors to create badges is on, vendors can manage badges in Products → Product labels in the vendor panel:
- Vendors see and edit only their own badges, up to the limit set by the admin.
- Vendor badges are shown only on the vendor’s own products. Products of other vendors are removed from the product list when the badge is saved, and the bulk tool is limited to the vendor’s products.
- The Vendor rule is not available to vendors.
- The admin sees every badge, with its vendor, and can edit or disable any of them.
Storefront behavior
Section titled “Storefront behavior”- Badges are rendered on the server, inside the theme’s own label area of the product image. This covers category grids, list views, product scrollers and blocks, the product page (default and big picture templates) and quick view.
- On the product page, a small script fits the badge area to the main image, so bottom positions do not overlap the thumbnail strip.
- Compact lists, which use very small thumbnails, show no badges.
- Badges don’t capture clicks: a click on a badge opens the product as usual.