B
B
Beeshop872022-04-16 16:36:47
1C-Bitrix
Beeshop87, 2022-04-16 16:36:47

How to add an additional property display to the elements in the Bitrix administrative part in the hiload-blok “binding to infoblock elements” property?

There is an infoblock of the main goods "Trade catalog" and an infoblock of trade offers "Trade offers".
Trade offers are generated based on the hiload of the "Suppliers" block. For the purpose of being on the store shelf at the same time several trade offers formed from the same basic product, but delivered at different times by different suppliers. I don't think there are any questions.
Next, I need to provide an opportunity for the future merchandising administrator to indicate in a convenient way for each supplier the goods from the main catalog that he can supply. Here I use the custom property "binding to infoblock elements" and bind by itself to the base directory. Everything is great.
But! Such is the peculiarity of the store that the product does not carry unique information in its name. That is, there can be 6 products "Yogurt", and each with a different pseudo-tag "with passion fruit", "with strawberries" and the like.
The interface only displays product names.
Is there a way to display additional properties of infoblock elements in the same multiple choice interface? Screen is attached.
625ac664e2a5a297430927.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2022-04-18
@winer

See which template of the iblock.field.element component is used to display the property on the page. Copy this component template into the .defaul site template and add the logic you need there.
You can also implement your own property type. documentation .
As a basis, you can take the property that already exists \Bitrix\Iblock\UserField\Types\ElementType (bitrix/modules/iblock/lib/userfield/types/elementtype.php file).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question