It is necessary to add a product assessment to the card, found a "solution", add the code to the component template

<?$APPLICATION->IncludeComponent("bitrix:iblock.vote","stars",Array( "IBLOCK_TYPE" => "", "IBLOCK_ID" => $arItem['IBLOCK_ID'], //ID инфоболка "ELEMENT_ID" => $arItem['ID'], //ID товара "ELEMENT_CODE" => $arItem['CODE'], //код товара "MAX_VOTE" => "5", "VOTE_NAMES" => array("0","1","2","3","4"), "SET_STATUS_404" => "N", "MESSAGE_404" => "", "CACHE_TYPE" => "A", "CACHE_TIME" => "3600" ) );?> 

However, the message "Photo not found" is displayed on the card. snapshot

  • and where are you putting it? check if you have a "stars" template and you will see a full example template template.php - Yegor Tregubenko
  • I insert into the product card template. Bring the stars template? Or iblock.vote? - Murad
  • The template of the card itself, where this component is called, what's the "Photo not found"? I do not understand anything - Yegor Tregubenko
  • code inserted at 525 position in the code, before the section "share with friends." PS added a screen to the question text - Murad

0