Part number generator in Bitrix24
At first, I only had an online store on Bitrix. It has a module that generates an article number of goods, adding a specified number to the ID. Thus, when creating each new product, a unique numeric article is automatically generated for it.
Then CRM Bitrix24 was added to the online store.
It is necessary to make sure that when creating a product through CRM, the article is also generated, so that it does not matter where you create the product from.
The module generates a product article by adding a specified number to the ID. Thus, when creating each new product, a unique numeric article is automatically generated for it.
Nothing can be written in the ARTICLE field. Any manual input should be ignored and, when the product card is saved, replaced by a number calculated by the formula "ID number specified in the module".
If someone tries to change an already created article manually, then this change should also be ignored and when saving the product after changing the article, a number calculated by the formula "ID number specified in the module" should fall into the ARTICLE field.
In the module settings you can:
- select the product catalog in which the Article field will be used
- set the number that is added to the product ID (a preliminary result of the new article will be displayed next to it)
- click the REPLACE ALL ARTICLES button in the catalog with a tick to select only active products. Accordingly, you can either replace all the articles or only the articles of the active goods by pressing the button.
06.09.2022 19:32