C
C
cirega2016-04-27 14:43:59
1C-Bitrix
cirega, 2016-04-27 14:43:59

What is the best way to themize catalog component templates in Bitrix?

Good afternoon, there is such a question, how best to theme the templates of the catalog component in 1C-Bitrix? Which approach to choose, it’s just that there is a lot of functionality in the standard templates, adding to the cart, changing the choice of trade offers, prices, etc., if you write it from scratch, you will have to do a bunch of ajax requests again, and if you do it based on it, then very uncomfortable, a lot of rubbish. How are you doing? I'm basically fiddling with the default template but want to get away from it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2016-04-27
@cirega

Here you have two options and described how you can do it (this is Bitrix). Another question is what is best for you? There is time, throw out the component template and write your own. No time: customize the default. If it’s generally good over time: write your own component.
This applies not only to catalog components

A
Andrey Kornev, 2016-05-19
@webkornevand

For 5 years I have never been engaged in template customization - everything is in hell and I am writing my template from scratch. for convenient orientation by $arResult use

<pre>
<?print_r($arResult)?>
</pre>

well, or if var-dumper
<? dump($arResult)?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question