Answer the question
In order to leave comments, you need to log in
How to display properties from the information block of the trade catalog in the product card template?
Good evening gentlemen.
Tell me, is it possible to display the properties of the trade catalog in the detailed product card, mmm .. I didn’t put the question correctly. They are displayed by default in a loop in the p tag, in the standard template, this does not quite suit me, since my design is very different, and I would like to output properties separately and in different places as the layout requires.
I have this link here ,
but I'm not really dragging around organizing php structures yet, as I'm junior in this business.
I ask you to organize an example, and according to this example, I will try to draw a conclusion of my properties.
Poked around the bowels and found: a custom property can be obtained in the template from $arResult. Already at least something.
Well, I found something similar:
<? echo $arResult["DISPLAY_PROPERTIES"]["CHAR"]["DISPLAY_VALUE"];?>
Only when I exclude this property in the settings of the detailed view component so that it is not in the general list, after that I try to further organize the output of this property in the place where I want it, it disappears both from the list and from the place where I put it manually, nonsense her! Why do this, what's the point? <? echo $arResult["DISPLAY_PROPERTIES"]["CHAR"]["DISPLAY_VALUE"];?>
everything is cool, it appeared there, but it also exists in the cycle, and if I remove the characteristics through the component settings in the filter, the properties disappear from the cycle from the tab too. Answer the question
In order to leave comments, you need to log in
echo(''.print_r($arResult, true)); will show you all that is hidden
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question