D
D
Dmitry Grabko2018-10-03 17:50:34
1C-Bitrix
Dmitry Grabko, 2018-10-03 17:50:34

How to count the number of reviews in the bitrix:catalog.comments component?

Product reviews are displayed through the standard bitrix:catalog.comments component with a standard template.
How can I get the number of reviews on a product page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2018-10-03
@gromdron

\CIBlockPropertyTools::CODE_BLOG_COMMENTS_COUNT stores the name of the element's property, which stores the number of comments to it. Those. do a regular getList with this property (PROPERTY_*) and display it on the page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question