Answer the question
In order to leave comments, you need to log in
How can I check if there is a comment on an order?
The bitrix:sale.personal.order.list component displays a list of orders for an authorized user. In bitrix:sale.personal.order.detail I displayed the comment itself from the $arResult array. But on the page with the list of orders, this value is not. How to get this array?
Answer the question
In order to leave comments, you need to log in
What would be in Feng Shui, you need to customize the component, inheriting from
bitrix/components/bitrix/sale.personal.order.list/class.php
and override the method protected function obtainDataOrders
, it contains an array $select
, so add the order comments field to it, then it will be included in the selection.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question