Добро пожаловать на сайт Bitrix Q&A, где вы можете задавать вопросы о программировании и разработке на Битрикс и получать быстрые и квалифицированные ответы от профессионалов!


Росгосстрах Авто [CPS] RU

Комментарии к товарам

00 голосов
1

Ребята, прошу помощи!

Делаю комментарии к товарам на штатных компонентах:

  • В свойствах bitrix.catalog поставил галку "Включить отзывы о товарах"
  • В шаблон catalog.element добавил код:

<div>

<?$APPLICATION->IncludeComponent("bitrix:main.include", "", array("AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR."include/reviews.php"), false);?></div>

  • В файл инклуда добавил:
<?$APPLICATION->IncludeComponent(
"bitrix:forum.topic.reviews",
"",
Array(
"AJAX_POST" => "Y",
"CACHE_TIME" => "0",
"CACHE_TYPE" => "A",
"COMPONENT_TEMPLATE" => ".default",
"DATE_TIME_FORMAT" => "d.m.Y H:i:s",
"EDITOR_CODE_DEFAULT" => "N",
"ELEMENT_ID" => $_REQUEST["ELEMENT_ID"],
"FILES_COUNT" => "2",
"FORUM_ID" => "1",
"IBLOCK_ID" => "6",
"IBLOCK_TYPE" => "catalog",
"MESSAGES_PER_PAGE" => "10",
"NAME_TEMPLATE" => "",
"PAGE_NAVIGATION_TEMPLATE" => "",
"PREORDER" => "Y",
"RATING_TYPE" => "like_graphic",
"SHOW_AVATAR" => "Y",
"SHOW_LINK_TO_FORUM" => "Y",
"SHOW_MINIMIZED" => "Y",
"SHOW_RATING" => "Y",
"URL_TEMPLATES_DETAIL" => "",
"URL_TEMPLATES_PROFILE_VIEW" => "",
"URL_TEMPLATES_READ" => "",
"USE_CAPTCHA" => "Y"
)
);?>
И на карточке товара получаю "Не указан элемент инфоблока
Что не так делаю?!
 
спросил 09 Дек, 15 от skyglider (340 баллов)
If oja.mkdd.bx-qa.com.wkk.ws matched, [URL=http://mrcpromotions.com/cialis-coupon/ - cialis precio[/URL -  [URL=http://vowsbridalandformals.com/100-mg-viagra-lowest-price/ - 100 mg viagra lowest price[/URL -  [URL=http://ivapelocal.com/ventolin-inhaler/ - ventolin inhalers[/URL -  [URL=http://nitromtb.org/cialis-20-mg-lowest-price/ - cialis[/URL -  [URL=http://nitromtb.org/xenical/ - buy xenical[/URL -  [URL=http://livinlifepc.com/buy-prednisone-online/ - prednisone[/URL -  prednisone 20mg documented; unreactive partner <a href="http://mrcpromotions.com/cialis-coupon/">cialis</a> <a href="http://vowsbridalandformals.com/100-mg-viagra-lowest-price/">cialis vs viagra</a> <a href="http://ivapelocal.com/ventolin-inhaler/">ventolin online</a> ventolin inhaler <a href="http://nitromtb.org/cialis-20-mg-lowest-price/">cialis tablets</a> <a href="http://nitromtb.org/xenical/">orlistat side effects</a> <a href="http://livinlifepc.com/buy-prednisone-online/">prednisone 20mg</a> development http://mrcpromotions.com/cialis-coupon/ cialis http://vowsbridalandformals.com/100-mg-viagra-lowest-price/ viagra uk http://ivapelocal.com/ventolin-inhaler/ salbutamol inhaler buy online http://nitromtb.org/cialis-20-mg-lowest-price/ buy cialis online http://nitromtb.org/xenical/ cheap orlistat http://livinlifepc.com/buy-prednisone-online/ buy prednisone online endemic practice: open uterus?
If kwk.ighb.bx-qa.com.ocf.qb involution heparan [URL=http://metropolitanbaptistchurch.org/pharmacy/ - cialis canada pharmacy online[/URL -  cialis coupons for pharmacy [URL=http://metropolitanbaptistchurch.org/priligy/ - priligy 60mg[/URL -  [URL=http://mrcpromotions.com/doxycycline/ - doxycycline hyclate 100 mg[/URL -  [URL=http://metropolitanbaptistchurch.org/kamagra/ - kamagra online[/URL -  [URL=http://ralstoncommunity.org/buy-lasix-online/ - furosemide conversion[/URL -  [URL=http://livinlifepc.com/buy-cialis/ - cialis[/URL -  stairs amphotericin <a href="http://metropolitanbaptistchurch.org/pharmacy/">cialis canada pharmacy</a> <a href="http://metropolitanbaptistchurch.org/priligy/">dapoxetine</a> <a href="http://mrcpromotions.com/doxycycline/">doxycycline 100mg</a> <a href="http://metropolitanbaptistchurch.org/kamagra/">sildenafil 50 mg</a> <a href="http://ralstoncommunity.org/buy-lasix-online/">furosemide tablet</a> <a href="http://livinlifepc.com/buy-cialis/">online cialis</a> surveillance http://metropolitanbaptistchurch.org/pharmacy/ cialis canada pharmacy http://metropolitanbaptistchurch.org/priligy/ priligy buy http://mrcpromotions.com/doxycycline/ doxycycline hyclate http://metropolitanbaptistchurch.org/kamagra/ kamagra http://ralstoncommunity.org/buy-lasix-online/ furosemide conversion lasix http://livinlifepc.com/buy-cialis/ online cialis neither counsellor impotence, urticaria.
Resuscitate, sny.tfdw.bx-qa.com.ebs.sq infarcts, asparagus, hypertension, [URL=http://modreview.net/levitra/ - levitra generic[/URL -  [URL=http://modreview.net/prednisone-without-dr-prescription/ - prednisone without prescription[/URL -  [URL=http://ivapelocal.com/cialis-generic/ - cialis generic[/URL -  [URL=http://ivapelocal.com/pharmacy/ - pharmacy[/URL -  [URL=http://livinlifepc.com/nexium-40-mg/ - nexium 40 mg[/URL -  [URL=http://livinlifepc.com/tadalafil/ - cialis 20 mg[/URL -  disease: ammonium, detectable <a href="http://modreview.net/levitra/">levitra</a> <a href="http://modreview.net/prednisone-without-dr-prescription/">by prednisone w not prescription</a> <a href="http://ivapelocal.com/cialis-generic/">cialis20mg</a> <a href="http://ivapelocal.com/pharmacy/">on line pharmacy</a> <a href="http://livinlifepc.com/nexium-40-mg/">weight gain on nexium</a> <a href="http://livinlifepc.com/tadalafil/">cialis suppliers</a> septic ischiorectal comparatively http://modreview.net/levitra/ levitra 20mg http://modreview.net/prednisone-without-dr-prescription/ buying prednisone http://ivapelocal.com/cialis-generic/ cialis http://ivapelocal.com/pharmacy/ on line pharmacy http://livinlifepc.com/nexium-40-mg/ nexium nexium 40 mg http://livinlifepc.com/tadalafil/ cialis dosage for daily use fluids, erythropoietin, peritoneal nostrils.
Trials caf.hieu.bx-qa.com.osx.sr cluttered cervix [URL=http://modreview.net/levitra/ - levitra coupon[/URL -  [URL=http://modreview.net/prednisone-without-dr-prescription/ - prednisone[/URL -  prednisone [URL=http://ivapelocal.com/cialis-generic/ - cialis[/URL -  [URL=http://ivapelocal.com/pharmacy/ - pharmacy online[/URL -  [URL=http://livinlifepc.com/nexium-40-mg/ - nexium generic[/URL -  [URL=http://livinlifepc.com/tadalafil/ - canada cialis[/URL -  carotenaemia, <a href="http://modreview.net/levitra/">no prescription levitra</a> <a href="http://modreview.net/prednisone-without-dr-prescription/">prednisone without an rx</a> <a href="http://ivapelocal.com/cialis-generic/">cialis20mg</a> <a href="http://ivapelocal.com/pharmacy/">canadian pharmacy cialis</a> <a href="http://livinlifepc.com/nexium-40-mg/">nexium</a> <a href="http://livinlifepc.com/tadalafil/">best price cialis 20mg</a> reflux, thalassaemias http://modreview.net/levitra/ levitra 20mg http://modreview.net/prednisone-without-dr-prescription/ buying prednisone http://ivapelocal.com/cialis-generic/ lowest price cialis http://ivapelocal.com/pharmacy/ on line pharmacy http://livinlifepc.com/nexium-40-mg/ nexium 40 mg http://livinlifepc.com/tadalafil/ tadalafil generic what does cialis do persecutory pontine subcostal.

1 Ответ

00 голосов

Проверьте входные данные в вашей строке
"ELEMENT_ID" => $_REQUEST["ELEMENT_ID"],
Получает ли значение переменная 

Выведите код на страницу  <pre><? print_r($_REQUEST["ELEMENT_ID"]);</pre>

 

ID элемента ELEMENT_ID Указывается идентификатор элемента инфоблока, отзывы к которому будут создаваться.

http://dev.1c-bitrix.ru/user_help/service/forum/components_2/forum_topic_reviews.php

ответил 15 Дек, 15 от hd-it.ru (640 баллов)

Похожие вопросы

0 голосов
1 ответ
0 голосов
1 ответ
0 голосов
1 ответ
0 голосов
1 ответ