A
A
Alexey Blagorodov2022-03-04 11:08:05
1C-Bitrix
Alexey Blagorodov, 2022-03-04 11:08:05

How to display a specific property of a trade offer in Bitrix?

I have goods. All products have properties that change when options are selected . Above the heading, the article of the first trade offer is displayed, which does not change when an option is selected. How can this be fixed?

6221c822574eb448909031.jpeg

The article above the title is displayed using the following code:

<div class="pr-articul product-edit-art">Арт. <?=$actualItem['PROPERTIES']['ARTICUL']['VALUE'];?></div>


Below you can notice 1 more article, which is set through the product properties and displayed through an array, and the article below changes. Can you suggest how to extract the article from this array and display it on top ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Blagorodov, 2022-03-11
@zeeoff

Issue resolved. Added the articul-pr-block-info class for the function of displaying a list with articles here:
622b4860e6812968768058.jpeg
Then I went to the scripts and added the following:
622b488957ab6283206911.jpeg
Well, accordingly, in the template itself, I added a span with the appropriate class, in which the text will be replaced
622b49411b6a5874403227.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question