V
V
Vladimir Kai2019-06-12 17:28:58
1C-Bitrix
Vladimir Kai, 2019-06-12 17:28:58

How to display orders in the personal account from two sites in Bitrix?

I use the regular component of the user's personal account.
Installed it on the page, set it up.
If the order was placed through the desktop version of the site example.ru, then it is shown only in the personal account on the Desktop.
But we have under the domain m.example.ru
Orders placed through the mobile version are visible in the same way, only in the personal account on this version.
The question is how to show all orders of one client everywhere? Regardless of the version

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2021-01-14
@Logic87

At the moment, not normally. It is necessary to take out the sale.personal.order.list component and edit the prepareFilter() function in class.php, namely $arFilter["LID"] = SITE_ID; to $arFilter["LID"] = $this->arParams['SITE_IDS'];
arParams['SITE_IDS'] - parameter, the list of sites can be entered into the component call parameters (s1, s2, etc.).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question