N
N
Nikolai2018-12-11 16:48:07
1C-Bitrix
Nikolai, 2018-12-11 16:48:07

How to correct components in 1C bitrix?

Hello!
The task is to create an online store on 1C bitrix. To implement the catalog, use a complex component, copy it into your template and then edit it? It's just that the component has various options for displaying the product, which is not provided for in the project, that is, a bunch of extra code. What to do? Correct only what is needed and leave the rest unchanged? Or is there some normal way to create a directory?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
Jupiter Max, 2018-12-11
@vardoLP

Yes, you need to copy the component template, preferably to the site template, so as not to lose or get confused, and edit what you need.

A
Alexey Bespalov, 2018-12-11
@FreeArcher

You need to copy the component template to your site template (namespace, as Bitrixoids are called). Watch how everything is done there and, with a certain skill, remove almost everything, leave only the cortex and what you need just to not repeat the code. also delete all subtemplates and unnecessary files.
If something is needed, it is better to look at how it was done in a typical one and transfer it to yourself than to leave everything initially. Just get confused in the code.
Bitrix has a complex structure, so the fewer files you leave, the easier it will be to navigate in it later.

A
Ainur Valiev, 2018-12-11
@vaajnur

It's easier to edit a standard template than to transfer it to your own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question