K
K
Kirill Gorelov2020-06-07 08:58:16
1C-Bitrix
Kirill Gorelov, 2020-06-07 08:58:16

Bitrisk, some theory?

Hi guys. I’m starting to dive into Bitrix and having made only a couple of stores on it so far, I understand that I’m not doing it optimally, I have to do a lot of extra gestures to make simple functionality. And so I decided to ask how other programmers do it.

1. How do you create static pages, for example "contacts" or "about delivery", write directly in files or in infoblocks and then output via api?
2.Where do you store the properties, in each infoblock, or do you create a separate infoblock and enter properties in it, and then assign values ​​through the binding? I will give an example, I made 3 infblocks and in each of the bottom there are brands, color and the composition of the material itself. I had to manually duplicate all these values ​​in each infblock (((((So I thought that I could make a separate infoblock and store everything in it and colors and brands and composition ???
3. How do you store properties on the product page and then do you add them to the basket, if possible with an example? I check all the values ​​of the properties that I wrote in the infoblock using js, check if they exist, then add them. The bottom line is that often everything has to be nailed (I get everything statically, practically. ....
4. How do you do multi-level product categories? I will do it with a complex component, but I only have 3 levels there. List of categories, list of products and the product itself. Or is it no longer done with the help of a complex component?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2020-06-07
@Kirill-Gorelov

1. Just in pages, if there is no unique layout.
If it is necessary that the content manager does not break the layout, then one infoblock with properties.
2. If properties are needed in several infoblocks, then I create highload blocks for each property and bind to them
3. I do this in a php script that adds to the cart, unless of course it's sku.
4. The nesting level is also indicated there. Everything works in a standard complex component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question