S
S
Sergey Ozeransky2014-03-10 12:07:04
1C-Bitrix
Sergey Ozeransky, 2014-03-10 12:07:04

How to make a bitrix calculator?

Tell me, through what functionality you need to make a calculator. Those. I read the bitrix doc, in terms of modules, components, infoblocks, and did not understand where to go. In fact, only the presentation (js calculator) will be enough, but even here I did not see where and how the presentation is written. Prompt advice where to dig, please.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Lobanov, 2014-03-10
@KREGI

It depends on what functionality the calculator should have, where it should be displayed - on each page or on certain ones, and so on. In general, there is nothing complicated, a lot depends on what you know how to do. I wrote a calculator for the old version of Bitrix. It was displayed at a certain address, partially took data from infoblocks, and based on them made a select. In addition, date-pickers were screwed to select a date, and all sorts of checks.
Accordingly, a calculator on js + on the server formed a selection of infoblocks.

D
Denis Didenko, 2014-03-10
@Diden05

Essentially you don't need a module, a component is enough, getting data in component.php mapping template.php js data to scrip.js. I don't go into full details like all these .parametrs.php and .descriptiom.php are normally described in the documentation.
The simplest example, take the ready-made standard Bitrix component news.list, transfer it to your namespace, and twist what is there and how.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question