A
A
Alexander2020-07-22 20:20:10
1C-Bitrix
Alexander, 2020-07-22 20:20:10

How to upload the purchase history in Bitrix?

In the user's personal account, can I implement the unloading of purchased goods in Excel, let the user download this file? Who faced such task?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Technique102, 2020-07-22
@Technique102

What is your difficulty?
1. Display the download button.
2. We make an Ajax request to the handler file.
3. We get all orders in the processing file.
2. Next, we get a basket from these orders, and goods from the basket.
3 We form an excel file.
4. We save and let the user download.
5. Done.
It is fashionable to arrange in a component for ease of support and use.
About Ajax in Bitrix components here - https://verstaem.com/ajax/new-bitrix-ajax/
Here are examples of working with orders and a basket - https://dev.1c-bitrix.ru/api_d7/bitrix/sale/techni ...
Here is a library for Excel - https://github.com/PHPOffice/PhpSpreadsheet
Or do you need a turnkey solution? Or some other difficulty?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question