What this solution does
The Qwelp Product Badges module enables the assignment of text labels such as New, Best Seller, and Weekly Choice to products and trade offers. All display conditions and styling settings are managed within the administrative panel.
The visual condition builder supports logical groups using AND, OR, and NOT operators. Filtering is available by product IDs, sections with nested subsections, properties, availability status, stock levels, warehouses, and price parameters. Rules apply to a specific product, a selected offer, any offer, or all offers simultaneously. Conditions within a single group are evaluated for each SKU individually.
Badges can be assigned or hidden manually directly within a product or offer card, or via a dedicated module section. Full customization is available for text and tooltips in Russian and English, background, text, and border colors, dimensions, border radius, and icons. A preview feature allows viewing the badge in both light and dark themes.
Additional configuration options include display periods, site-specific binding, rule priority, exclusion groups, quantity limits, and mobile screen visibility. Debugging tools allow checking results for a specific product and viewing the list of products that match a saved rule.
Integration is supported via a component and a PHP API for rendering badges by product ID or SKU, as well as a function for batch retrieval of badges for a list of cards.
The Qwelp Product Badges module operates independently and does not require other Qwelp solutions. To display badges on a website, a developer must connect a component or API within the template. The design of product cards on the demo site is part of the template and is not included in the module delivery.
System requirements include PHP 8.2, Bitrix main core version 23.0 or higher, and the installed iblock, catalog, and currency modules. The database must be MySQL or MariaDB with UTF-8 encoding. The product is designed for the 1C-Bitrix: Site Management platform with a trade catalog.
When forming conditions, the price is taken for a record of the selected type and currency for a quantity of one, excluding personal discounts and currency conversion. File, HTML, and unknown complex properties are checked for completeness. Suitable products are processed in batches of 200 records.
For cacheable templates, output dependencies must be registered. Personalized results in the Composite mode require a dynamic area. To ensure timely updates based on dates, configure agent execution via cron.
For the “Qwelp: Product Badges” module, General iT can perform installation, configuration and a functional check in your project.