G
G
Gosling_ne_ya2020-10-29 11:47:13
1C-Bitrix
Gosling_ne_ya, 2020-10-29 11:47:13

How can I prevent products marked for deletion from being uploaded to the site?

There is a nomenclature in 1c marked for deletion, it is difficult and long to delete it, because there are a lot of dependencies and in general it can still come in handy. How to make it so that when it is marked, it is not loaded onto a site running 1c Bitrix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2020-10-30
@anton99zel

Do you want an easy way?
Add an attribute to the product and a similar property in Bitrix, for example, INDELETE with the value Y.
On the 1c side, start processing that will fill in the attribute - according to the "Deletion Mark" feature.
In Init.php, add the event "After adding an element" - if it contains a filled new property, then delete it in Bitrix or deactivate the product.
Second way:
Add something like this to the BeforeUpload handler in 1s
Отказ=Источник.ПометкаУдаления;
Third way:
Go here /bitrix/admin/1c_admin.php?lang=ru
and just select the option you need)
5f9b38d79ea19168902595.jpeg
After all, if you have a regular exchange module, then in xml you should to fall FlagRemoval
If all else fails, then you really have to use the services of a specialist, as some advise here as usual.

A
AntoShik, 2020-11-06
@AntoShik

You need to add a selection according to the Nomenclature in the exchange settings with the site, in 1s it has the deletion mark property. Set it to 5fa4b8a9843a2756390563.pngfalse.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question