Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      CodeSOD: A Unique Way to Primary Key

      July 22, 2025

      BrowserStack launches Figma plugin for detecting accessibility issues in design phase

      July 22, 2025

      Parasoft brings agentic AI to service virtualization in latest release

      July 22, 2025

      Node.js vs. Python for Backend: 7 Reasons C-Level Leaders Choose Node.js Talent

      July 21, 2025

      The best CRM software with email marketing in 2025: Expert tested and reviewed

      July 22, 2025

      This multi-port car charger can power 4 gadgets at once – and it’s surprisingly cheap

      July 22, 2025

      I’m a wearables editor and here are the 7 Pixel Watch 4 rumors I’m most curious about

      July 22, 2025

      8 ways I quickly leveled up my Linux skills – and you can too

      July 22, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025
      Recent

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025

      Zero Trust & Cybersecurity Mesh: Your Org’s Survival Guide

      July 22, 2025

      Execute Ping Commands and Get Back Structured Data in PHP

      July 22, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025
      Recent

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025

      “I don’t think I changed his mind” — NVIDIA CEO comments on H20 AI GPU sales resuming in China following a meeting with President Trump

      July 22, 2025

      Galaxy Z Fold 7 review: Six years later — Samsung finally cracks the foldable code

      July 22, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»How to Add Product Badges in Optimizely Configured Commerce Spire

    How to Add Product Badges in Optimizely Configured Commerce Spire

    June 6, 2025

    This blog is written for developers, merchandisers, or client teams looking to display visual indicators (e.g., “New”, “Sale”, “Non-Returnable”, “Best Seller”) on products within the storefront. In Ecommerce, badges are small visual cues that communicate important product information to customers, such as “New Arrival”, “Sale”, or “Limited Stock”. In Optimizely Configured Commerce (Spire), product badges can be a powerful way to highlight key promotions or product statuses, thereby improving the user experience.

    This blog post walks through how to enable and customize badges within Spire-based sites.

    What Are Product Badges?

    Badges are visual elements displayed over product images or titles to indicate special status or promotions. Common use cases include:

    • New – recently added products
    • Sale – discounted items
    • Non-Returnable – not returnable items (innerwear, Digital downloads, Razors or blades, etc.)
    • Best Seller – top-performing SKUs
    • Limited Stock – low inventory

    Step 1: Enable and Configure Badges in the Admin Console

    • Log in to the Admin Console
    • Go to Admin Console > Marketing > Product Badges

    Picture1

    • Click Add Badge

    Picture2

    • Fill in the fields:
      • Name: e.g., “Sale”
      • Activated On: Start date of showing the “Sale” product badge on the Product. The default current date.
      • Deactivated On: End date of showing “Sale” product badge on Product.
      • Sort Order: Sort Order determines badge display order in cases where multiple badges are displayed. Items with the same sort order will be displayed alphabetically by Badge Name.
      • Display Locations:
        1. Overlay – On/Off: Shows badge as an overlay on main product images
        2. Badge Widget – On/Off: Shows badge wherever the badge widget is displayed. You can assign badges manually or automate them based on rules via custom logic.
        3. Badge Styling:

          Badge Type: Text or Image

          Text

                • Display Text: Add display text on product e.g “Sale”. Translate this text in other languages.
                • Text Color Hex Code: Enter hex code without #. e.g. 000000
                • Badge Color Hex Code: Enter hex code without #. e.g. fffffff
                • Badge Style: Select “Round” and “Rectangle”
                • Picture3

          Image

                • Large Image Badge Path: Browse the image path and preview it.
                • Image Alt Text: Add image alternate text so that text will be shown if the image is not available.
                • Picture4
            • Badge Positioning:
              1. Large Image Placement: Default “None”. Other Top Center, Top Left, Top Right, Bottom Center, Bottom Right, and Bottom Left
              2. Large Image Text Size: Select Large, Mediu,m and Small

          Create a new badge as “Sale,” and the badge styling is text.

          Picture5

    Step 2: Assign Badges to Products, Product Rules, and Product Attributes

    Products

    Click on the “Assign Products” button

    Picture6

    • Open the pop-up and search for products.

    Picture7

    • Select products. Click on the “Assign” and “Done” buttons.

    Picture8

    • This badge is assigned to selected products. Picture9

    Product Rules

    You can create product rules based on “Product Custom Properties” and “Product fields”.

    Picture10

    Product Attributes

    You can assign multiple product attributes for this badge.

    Picture11

    Step 3: Enable Product Badges in CMS

    1. Go to Content Admin
    2. Go to any product list page
    3. Click on the Edit icon

    Picture12

    4. Click on the Edit icon on “ProductList/ProductListCardList” widget

      • Show Image Badges and set the maximum number of image badges
      • Show Text Badges and set the maximum number of text badges

    Picture13

     

    Step 5: Display Product Badges in Spire Frontend

    Text Product Badges example:

    Product List Page:

    Picture14

    Product Detail Page:

    Picture15

    Conclusion

    Badges in Optimizely Configured Commerce are a simple yet effective way to elevate merchandising on your storefront. By combining back-office configuration with simple frontend customizations, you can create a more engaging and informative shopping experience.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleSalesforce Health Check Assessment Unlocks ROI
    Next Article Handling PostgreSQL Migrations in Node.js

    Related Posts

    Development

    GPT-5 is Coming: Revolutionizing Software Testing

    July 22, 2025
    Development

    Win the Accessibility Game: Combining AI with Human Judgment

    July 22, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    How to Use AI to Enhance Your WordPress Blog

    Learning Resources

    Google’s email spoofed by cunning phisherfolk who re-used DKIM creds

    Security

    PowerDNS DNSdist Vulnerability Let Attackers Cause Denial of Service Condition

    Security

    CVE-2025-1562 – WooCommerce FunnelKit Plugin Unauthenticated Remote Code Execution

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    CVE-2025-1753 – LLama-Index OS Command Injection Vulnerability

    May 28, 2025

    CVE ID : CVE-2025-1753

    Published : May 28, 2025, 10:15 a.m. | 1 hour, 20 minutes ago

    Description : LLama-Index CLI version v0.12.20 contains an OS command injection vulnerability. The vulnerability arises from the improper handling of the `–files` argument, which is directly passed into `os.system`. An attacker who controls the content of this argument can inject and execute arbitrary shell commands. This vulnerability can be exploited locally if the attacker has control over the CLI arguments, and remotely if a web application calls the LLama-Index CLI with a user-controlled filename. This issue can lead to arbitrary code execution on the affected system.

    Severity: 7.8 | HIGH

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    HERE Technologies boosts developer productivity with new generative AI-powered coding assistant

    May 19, 2025

    Code a full stack Instagram Clone with Laravel and MongoDB

    April 2, 2025

    CVE-2025-5238 – YITH WooCommerce Wishlist Stored Cross-Site Scripting

    June 14, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.