P
P
Prog-Time2021-05-31 10:09:22
1C-Bitrix
Prog-Time, 2021-05-31 10:09:22

How to change the product title in the bitrix product card?

How to change the title of the product in the product card of the catalog bitrix complex component?

The title is set in the SEO settings in the infoblock.
Tried doing the following in result_modifier and component_epilog(catalog.element/catalog/...):
- used

$APPLICATION->SetTitle($arResult['IPROPERTY_VALUES']['ELEMENT_META_TITLE']);

- used
$APPLICATION->SetPageProperty("title", $arResult['IPROPERTY_VALUES']['ELEMENT_META_TITLE']);

What could be the problem? What kind of files can have a header?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IliaMal, 2021-05-31
@IliaMal

The result_modifier does not need to have a header, it is cached.
In component_epilog this is the right move.
You most likely call another component below, which overwrites the header.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question