Y
Y
ygen2016-06-15 12:59:57
PHP
ygen, 2016-06-15 12:59:57

How to change the product type in Bitrix?

How to change the product type from "simple" to "set", "set".
I tried to add a set record to the b_catalog_product_sets table. The type is still "simple". How to implement it through code? I did not find it in arResult. Maybe someone knows where the type of goods is indicated?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
Ozimnadius, 2021-08-18
@ygen

https://dev.1c-bitrix.ru/api_help/catalog/classes/... - everything is easier.

S
Sergey, 2016-06-15
@gangstarcj

No way. This is specified when the item is created.
But through the database, you can specify the TYPE field in the b_catalog_product table, where the tsyfarka 1 2 3 are placed. As far as it is right it is better to remain silent.

I
i_general, 2021-03-30
@i_general

If a product has no status at all, then, for example, in order to massively convert products to "simple", you just need to re-index the "Trade catalog" in Settings / Module_settings / Trade_catalog - at the bottom under the main settings there is a separate tab "Service procedures". Perhaps there is a similar solution somewhere for your case.

I
Igor, 2021-09-07
@hurgadan

In this there is no need to change the type of goods.
CCatalogProductSet:add

The method adds a set or bundle. At the time of adding the set, the owner product must be of the Simple type. static method.

Your products are simple.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question