D
D
Dmitry Grabko2017-10-12 16:55:32
1C-Bitrix
Dmitry Grabko, 2017-10-12 16:55:32

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

1 answer(s)
A
Alexey Emelyanov, 2017-10-12
@babarun

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 question

Ask a Question

731 491 924 answers to any question