Answer the question
In order to leave comments, you need to log in
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
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
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>
<? dump($arResult)?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question