Answer the question
In order to leave comments, you need to log in
How to display the value of a product property in Bitrix?
Hello!
The page has a bitrix:catalog.section component.
How to display valid checked field Promotion prntscr.com/ff2qlv
??
Answer the question
In order to leave comments, you need to log in
First of all, take a look at the component settings - perhaps a filter is set there, which properties to display.
If the filter is not set, and its setting does not help (or even breaks something), then I would go like this:
1) look in the infoblock settings to find out the ID and CODE of this property.
2) in the component template, I did print_r() and saw what exactly for the product was already pulled out of the database.
3) If the required property does not exist, I would write a code in result_modifier.php to extract this property.
Thank you Michael!
I just simply screwed up to set the display of these properties in the settings.
In order to find out if the Promotion property is checked - as in my case, you need to set this property in the component settings so that this property is displayed, and then write in the code in the right place:
Thank you again!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question