B
B
BarneyGumble2020-08-26 09:14:35
1C-Bitrix
BarneyGumble, 2020-08-26 09:14:35

How to organize the export of elements in the user's personal account in Bitrix?

There is a b2b site, which is a product catalog and a store. Clients are our dealers.

The task is to provide dealers with the opportunity to download the catalog for subsequent download to their online stores. Those. ideally, I see it like this - the dealer enters his personal account in the "Uploads" section, selects the upload format (CSV, XLS, XML), selects the sections (T-shirts, Outerwear, Accessories), selects the fields to be included in the upload (name, small_pic, main_pic, description, category, date_created), press "Create upload" and get the resulting file, which we can then import into our online store.

I assume that the task is quite popular, has anyone seen solutions in the marketplace to implement this? All export modules that I saw,

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-08-26
@anton99zel

A predefined form consisting of getlista, in the filter of which there is a binding to the user and sections. We write the result as dom objects and save it in xml.
https://dev.1c-bitrix.ru/api_help/iblock/classes/c...
And https://www.php.net/manual/ru/example.xmlwriter-si...


All modules

Writing for two hours for an experienced bitrixoid

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question