N
N
Nadezhda Golovina2020-06-19 04:07:54
1C-Bitrix
Nadezhda Golovina, 2020-06-19 04:07:54

How to display a product image in the contact form on Bitrix?

On Bitrix there is a feedback form "Buy in 1 click". Made through the infoblock.
I added the "String" property "NEED_PRODUCT", and added it in the template. By analogy, I did the same for displaying the announcement image:data-autoload-need_product="<?=$arItem['NAME']?>"

  • "String" property (the rest just doesn't fit) "NEED_PRODUCT_IMG"
  • Code to Template
    data-autoload-need_product_img="<?=$arItem['PREVIEW_PICTURE']['SRC']?>"

  • I also tried this code in the template
    data-autoload-need_product_img="<?=$arItem['PREVIEW_PICTURE']?>"


But the most that adequately turned out was the address of the image in the line.
Tell me what can be added or what type of property should be set to display images from the announcement?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question