A
A
alexander_chn2017-08-23 13:29:15
1C-Bitrix
alexander_chn, 2017-08-23 13:29:15

Where to change the catalog.item component template in Bitrix?

Hello!
The page has a catalog.section component in the template code of which the bitrix:catalog.item component is called
How to change the catalog.item template?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Serov, 2019-02-20
@nodot

There was the same need when I customized bitrix:catalog.top.
We take the contents of the
/bitrix/components/bitrix/catalog.item/templates/.default/ folder
and copy it to
/local/templates/Template_name/components/bitrix/catalog.item/Customized_template_name/
You may have a slightly different path, but I think the meaning will be understandable.
After that, in the template code that calls the bitrix:catalog.item component, you must specify "Customized_template_name".

<?
$APPLICATION->IncludeComponent(
'bitrix:catalog.item',
"catalog_item_top",

A
Alexey Emelyanov, 2017-08-23
@babarun

How to change catalog.item template
In the sense of replacing with another template or editing the one that is connected?

E
eustatos, 2017-08-23
@eustatos

<root>/bitrix/templates/<current template>/components/bitrix/catalog.item/<template>/template.php

or
can be found in the component call code - next to bitrix:catalog.item.
You can copy this folder, rename it, specify a new name in the component call.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question