E
E
Evgeny Nikolaev2019-05-24 13:26:04
1C-Bitrix
Evgeny Nikolaev, 2019-05-24 13:26:04

Product SKU in Bitrix. Where is it located in the infoblock and what is the name of its code?

It is required to display the article of the product, but first you need to understand where it is set in the admin panel?
Can I have a screenshot if someone is not far away from the admin panel?
I found code examples on the forum where the article in the Bitrix product was set as the CML2_ARTICLE property. Is the article really required to be sold through it?
If so, do you need to create it with your hands somehow or is it already somewhere in the system?
The Bitrix version is fresh (at the date the question was created).
And the second question is, is there a method by which, knowing the Id of the product, get the Article, despite the fact that other data is not required to be received. What is the shortest way to do this in code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Nikolaev, 2019-05-24
@nikolaevevge

Alexey Volkov from the Bitrix forum helped resolve the issue (link to Alexey's profile https://dev.1c-bitrix.ru/community/webdev/user/44828/ )
Me: Sorry to ask again. Maybe you can tell something about the Article [link to the current question]
Alexey: The Article is just a property of the info block, by default it is nowhere to be found. the property code of the article CML2_ARTICLE is when they set up an exchange with 1C, from there it comes with such a code. Like
So if there is no integration with 1C, then you can call it whatever you like. The value of the article is usually selected in the component template, either through the settings of which properties to display at all or by an additional selection.
Me: That is, if I didn’t upload from 1s and didn’t put demo data in such cases, I need to manually create the CML2_ARTICLE
property
right now it is not, but it is desirable to provide for the case of integration so that the fields are called standard. Aleksey: you can not
CML2_ARTICLE, but whatever you like, you just need to know that articles will be stored in this property in case they are there so that they are immediately unloaded where they need to be.
Me: If I call CML2_ARTICLE, will they be unloaded from 1s? Will they be replaced if they don't match or what?
Aleksey: if the external code matches, then there will be no problems, no matter how the property is named simply when the initial integration is done before the directory exists, it’s easier
Me: Ok, once again thank you for your help!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question