What this solution does
The Xlogic Calculator Builder module enables the creation of calculation forms without programming and automatically forwards leads to Bitrix24. Using the admin panel, users can build calculators for estimating work costs by area, generating itemized estimates, calculating delivery, loans and mortgages, determining price by volume, computing material requirements, scheduling rentals by date, and calculating body mass index. Visitors immediately see the calculated result and visual charts, while managers receive a lead or deal in the CRM containing entered values, the total sum, and confirmation of consent for personal data processing.
Businesses receive more leads because users who calculate the cost themselves are more likely to leave their contact details than those who only see a "price upon request" label. Leads are automatically created in Bitrix24 with the client's contact information, calculation results, and a consent mark, eliminating the need for manual data transfer. Managers immediately see the entered parameters, the final sum, and estimate lines, allowing them to start a substantive conversation. Leads are delivered to familiar channels: email, Bitrix24, Telegram, or the user's own system. Complex figures become clear through charts that show how the price is formed, how loan payments grow, and the total overpayment amount.
Prices in the calculator synchronize with the information block or trade catalog and update automatically when catalog data changes.
Development is simplified: the calculator is assembled in a visual editor, eliminating the need to write code for each client.
How it works
Select one of 21 ready-made templates or build a calculator from scratch.
Add fields, formulas, estimates, and charts using the live preview on the right.
Place the calculator on the page as a single component.
Bitrix24 Integration
Specify the incoming webhook address for Bitrix24 in the module settings to send leads to the CRM. Sending emails to administrators and viewing the list of leads in the admin panel are available without connecting the webhook.
Data transfer configuration
You can choose to create a lead or a deal. When creating a deal, the module automatically searches for a contact by phone or email; if no contact is found, a new one is created. You can specify a sales funnel and stage.
Data in the card
Entered values, the final result, and estimate lines are saved in the card comment. The main result can be passed as the lead amount or deal amount.
Transfer reliability
Data is sent after responding to the visitor, without waiting for portal availability. If the portal is unavailable, the lead is saved in the admin panel. Failed transfer attempts are retried automatically and manually without creating duplicates.
The Xlogic Calculator Builder module provides control over applications. In the list, each application includes a link to a lead or deal, or displays the error reason. Connection checks and an error log are available.
The system supports cloud portals (including .rf domains) and on-premise portals within the company's internal network. For the cloud version, an incoming webhook with the "CRM" permission is required.
Manager status and comment control: "New", "In Progress", "Closed". Statuses can be changed on the application page, directly in the list, or in bulk for multiple applications.
Filtering and search are available by status, date, name, phone, email, and calculator name.
Export to CSV and xlsx formats respects the applied filter and includes contacts, calculation results, status, comment, consent, and the lead or deal number.
The form supports up to five custom fields (comment, address, any question). Each field can be set as mandatory. Values are visible in the list, email, export, Bitrix24, Telegram, and via webhook.
An email to the administrator is sent immediately to one or multiple addresses. The email template is configured in Bitrix email events. Email diagnostics include template and address validation, a test email, and an email sending error log.
Clients receive a calculation copy: visitors automatically receive an email containing their calculation results.
Telegram integration: the bot sends notifications, and the form submits a request to your server via a POST request with JSON and HMAC-SHA256 signature. This enables connection to CRM systems, Slack, n8n, or custom services.
Consent for personal data processing: the form includes a mandatory checkbox. The consent text and link to the privacy policy are configurable. The date and text of consent are saved in the request and automatically transferred to the Bitrix24 card.
Data retention: old requests are deleted automatically once daily. This deletion feature is disabled by default.
Access rights: the 'Work with requests' role is available to managers, while the 'Full access' role is required to configure calculators.
Estimates and visual results
The estimate is a table of line items with columns for quantity, price, and total. Quantity and price values are calculated using formulas based on fields and intermediate results. A subtotal is displayed after each group of items, and the final estimate total is shown at the end of the table. Line items with a quantity of zero are automatically hidden, allowing them to be removed from the table via a checkbox or field. Estimate lines are included in the request.
Using the estimate total in formulas: the variable estimate_total is available. It can be used as the main result or applied to calculate discounts and taxes, for example, using the formula estimate_total * 0.9.
Text output by ranges: a text description is displayed below the numeric result based on the value range. For instance, for the body mass index, the output may be 'Normal' or 'Overweight'.
Result image: if the result is linked to a list or toggle, an image of the selected option is displayed below it.
Six chart types are available: pie chart, bar chart, line chart, payment schedule, progress bar, and large summary cards.
Cost structure: the pie chart visually displays shares of materials, labor, and delivery.
Result dependency on field: for example, a payment based on the loan term or a trip cost based on distance. The current point is marked on the line, and the chart redraws instantly with every input.
Payment schedule for loans and deposits: shows the monthly balance and total overpayment.
No-code configuration: in the builder, you set the chart type, title, results, fields, and colors. Changes are immediately visible in the preview.
Built-in rendering: charts are drawn by a lightweight built-in renderer without external libraries or loading from third-party servers.
Accessibility: each chart has a text description for screen readers. Animation is disabled if the user has selected 'reduce motion' in their system settings.
The Xlogic Calculator Builder module supports seven field types: number, slider, list, toggle, checkbox, date, and text. Each field type has individual settings for label, unit of measurement, minimum and maximum values, and step size. Images can be assigned to any field, a group of fields, or the result field. Toggle options and checkboxes display images as cards. Image selection or upload is performed via a button directly within the editor.
The Date field allows visitors to select a day using a calendar. The rental or stay duration is calculated using the formula days(date_from, date_to). The current date is inserted by default, though a day offset can be configured in the settings.
The Text field is designed for entering inscriptions or engravings up to 255 characters. The entered text is included in the order submission. In formulas, the value of this field equals the character count, enabling per-character pricing calculations, such as 30 * engraving for the price per letter.
Lists with images: if list options have associated images, the site displays an enhanced list with visual elements instead of the standard browser dropdown. This list is navigable via keyboard using arrow keys, Home, End, Enter, and Esc.
Options from Info Blocks: element names, prices from numeric properties, and images from summaries are automatically pulled from Info Blocks. Prices within the calculator update in sync with the catalog.
Catalog pricing: for variants from the information block, the option to use the base product price is available. For products with trade offers, the system automatically selects the lowest price among active offers. Discount mechanisms are not applied in this mode.
Advanced formula set includes functions if, round, floor, ceil, abs, sqrt, pow, min, max, sum, avg, mod, and, or, not, lookup, days, roundto, ceilto, floorto. Calculation results are available for use in subsequent formulas. Syntax errors are displayed directly below the input field. Rounding to a multiple of a step is supported via the ceilto function; for example, ceilto(7.2, 2.5) returns 7.5.
Conditional display: individual fields or entire field groups appear only when specific conditions are met.
Range tables: cost, discount size, or tariff are calculated based on quantity, weight, or total amount. Data for tables can be imported from Excel files.
Step-by-step mode: field groups are converted into sequential steps with navigation buttons labeled Back and Next.
Number formatting and currency: six separator variants are available (e.g., 1 234.56 or 1,234.56) along with currency label settings for monetary results and estimate totals. These settings apply on the website, in applications, and in outgoing emails.
Version history: a snapshot of the previous state is created with each save. The system retains up to 20 recent versions. Any version can be opened in the builder and restored by clicking the Save button.
The Xlogic Calculator Builder supports exporting and importing configurations in JSON format for transferring between websites and creating backups. When imported to a new site, images that are not present in the new site's file structure may display incorrectly.
The module includes 21 ready-made templates: cost by area, loan, mortgage, price by volume, quantity discount, delivery, window order, doors, ceilings and gates, construction material calculation, catering, cleaning, step-by-step kitchen assembly, freight and moving, BMI and calorie calculation, custom pizza builder, step-by-step repair, repair estimate, fuel consumption, paint consumption, equipment rental, and deposit calculation. Templates for loans, mortgages, deposits, discounts, repairs, and fuel consumption already include built-in charts.
An "Instructions" page is available in the admin panel with a description of features and usage examples.
The module is configured for integration with Yandex.Metrica, GA4, and Google Tag Manager to track goals for "calculation started" and "application sent." For developers, events xlogic:calc_change and xlogic:calc_submit are provided for handling custom code.
Calculations, estimates, and charts update instantly upon data entry without page reloading. Numeric values are formatted according to the specific calculator settings.
Responsive layout ensures equal usability of the form, result display, and charts on both mobile devices and computers.
The application form includes fields for name, phone number, and email address. For each field, visibility and mandatory status can be configured, along with a checkbox for consent to personal data processing. Upon successful submission, a confirmation message is displayed.
Security and Data Protection
The amount in the application is protected against tampering: the calculation, including the estimate, is re-executed on the server. Spam protection includes CAPTCHA, a hidden honeypot field, and a configurable rate limit for submissions. Consent to personal data processing is verified on the server, not only in the browser.
Integration Settings and Data Storage
The Bitrix24 webhook address, Telegram token, and signature key are stored in the file /bitrix/.settings.php rather than in the database. Requests to Bitrix24 are sent via the HTTPS protocol to the portal's public address; access to the portal from an internal network is enabled via a separate setting changeable only by the site administrator.
Formula and File Processing
Formulas are parsed by a custom parser without using the eval function. Settings for charts and estimates undergo server-side validation. Images are accepted only as paths to local files in jpg, png, gif, or webp formats; SVG formats and external links are rejected.
Info Block Integration
Options and prices are retrieved exclusively from info blocks accessible to all visitors. The administrator can further restrict the list of allowed info blocks via the Info Blocks tab in the module settings.
Data is stored and retrieved via the Bitrix API (ORM) without direct SQL queries. Output is escaped, and exports to CSV and XLSX are protected against Excel formula injection. Forms are secured with session tokens, and access to the administration panel is controlled by module permissions.
Integration uses a single xlogic:calculator component that can be dragged onto a page in the visual editor. Results are cached, and the cache is cleared automatically when the calculator is saved. The appearance is customized via the component template within the site template.
The OnBeforeRequestAdd and OnAfterRequestAdd events are available for custom code to validate, modify, or reject requests before passing them further. When the module is removed, it prompts whether to preserve the data.
Example usage: PHP opening tag $APPLICATION->IncludeComponent("xlogic:calculator", "", ["CALCULATOR_ID" => 1]); PHP closing tag.
Target audience:
Web studios building sites with estimates and calculations. Service and manufacturing companies: repair, windows and doors, finishing, cleaning, delivery, catering, and rental services requiring direct CRM lead submission. Banks, microfinance organizations, and insurance companies needing calculators for loans, mortgages, and deposits with payment schedules. Stores and services where prices are calculated from a set of options or pulled from a catalog.
The Xlogic Calculator Builder module requires PHP version 8.2 or higher. To submit requests, a Bitrix24 portal (cloud or on-premise) is required, accessible via the HTTPS protocol. Within a local network, the HTTP protocol is permitted if the Local Network Portal mode is enabled. An incoming webhook with CRM access rights is mandatory. Export to xlsx format requires the zip extension; without it, only CSV export is available. Using variants from information blocks requires the Information Blocks module. Displaying prices from the trading catalog additionally requires the Trading Catalog module. Sending notifications to Telegram requires a bot created by the site owner within the Telegram application.
If “Calculator Builder” fits the task, General iT can install the module, configure it and verify the result in the project.