I
I
itemashabanov2021-01-22 20:29:49
1C-Bitrix
itemashabanov, 2021-01-22 20:29:49

How to create an additional page for a product?

Good evening.
On the product detail page with the URL "site.ru/catalog/prod_name" there is a button "Show questions" and when you click on it, a separate page with the URL "site.ru/catalog/prod_name/question" should open.
Please tell me how to implement this in Bitrix so that for each product there is a separate page with questions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PetrPo, 2021-01-22
@itemashabanov

add your rule question

"SEF_URL_TEMPLATES" => array(
  "sections"=>"",
  "section"=>"section/#SECTION_CODE#/",
  "element"=>"kkm/#ELEMENT_CODE#/",
  "compare"=>"compare/",
  "smart_filter"=>"section/#SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/apply/",
  "question" => "kkm/#ELEMENT_CODE#/question/"
)

Then add the question.php file in the catalog component template, place the news-list in it with the output of the necessary information

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question