A
A
Anton Essential2014-07-27 20:17:50
1C-Bitrix
Anton Essential, 2014-07-27 20:17:50

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?
It turns out that I have a catalog with different sections, in which different properties, by default, all properties are displayed in a cycle for all categories of goods, some kind of headache.
Maybe I'm doing something wrong, I'll describe in more detail what I want to do.
My card design differs from the standard template, in the standard template there is an output of a detailed description of the product, which is displayed in the 'Full description' tab. Above is the output of the properties.
I want to display the properties in one place, make 3 more tabs below , leave 'Full description' in one, 'Specifications' in the second, and 'Packaging' in the third. In fact, it turns out that this whole canoe is displayed in a cycle, let's say I made a conclusion in the tab with characteristics in the layout of the created infoblock property
<? 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.
Tell me what to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxyc webber, 2014-07-28
@AntonEssential

echo(''.print_r($arResult, true)); will show you all that is hidden

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question