Answer the question
In order to leave comments, you need to log in
Bitrix, connect different templates for one product depending on the condition?
Guys, there is a task, you need to connect different outputs in the template for the same product, depending on the condition.
But the component should work the same.
Doing checks in the template itself and displaying it differently is not an option, the code turns out to be dirty and very cumbersome. How can I do that.
I found this
$this->IncludeComponentTemplate('имя_файла_нового_шаблона');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question