D
D
Dmitry Bondarchuk2020-08-07 07:40:52
1C-Bitrix
Dmitry Bondarchuk, 2020-08-07 07:40:52

How to upgrade catalog export to csv?

It is required to export the catalog to csv in such a way that the rests are displayed as follows: 0 - no leftovers, 1 - there are leftovers. However, the rules change for some directory partitions. 0 - if the remainders are from 0 to 10 and 1 - if there are more.

How can the standard Bitrix upload be upgraded, and if not, then in which direction to look?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yaroslav Alexandrov, 2020-08-07
@alexyarik

You will not be able to upgrade the regular export. The expansion of the admin functionality is carried out by writing your own modules.
There are two implementation options:
1) More simple. Unload the type of residues you need in a separate property. Fill in the values ​​of this property using a script that will add 0 or 1 depending on the real balances and the specified sections. The execution of the script is hung up on kroner (scheduler) with large volumes of the catalog.
2) Write your own script for unloading the catalog in csv with the necessary logic

A
Anton, 2020-08-07
@anton99zel

в какую сторону смотреть?
CIBlockElement::GetList with CATALOG_QUANTITY, for exchanging XML instead of CSV (kmk it's simpler and used everywhere).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question