V
V
vyacheslavdmitrievich792019-12-20 14:38:33
1C-Bitrix
vyacheslavdmitrievich79, 2019-12-20 14:38:33

How to display a detailed product card template in Bitrix?

Hello!
On the CMS Bitrix website , in my template, I copied the catalog templates and product cards, changed the appearance of the main catalog.
But when you click on the product card , for a detailed view, the url changes, but the same main catalog is displayed , because of what could this be?
Even when you click on a certain category from the menu, the main catalog with all products is displayed, how can I make it so that only products of a certain category are displayed ?
Here is the component call in the /catalog/ folder:

<?$APPLICATION->IncludeComponent("bitrix:catalog", "specpricep", array(
  "IBLOCK_TYPE" => "catalog",
  "IBLOCK_ID" => "2",
  "TEMPLATE_THEME" => "site",
  "HIDE_NOT_AVAILABLE" => "N",
  "BASKET_URL" => "/personal/cart/",
  "ACTION_VARIABLE" => "action",
  "PRODUCT_ID_VARIABLE" => "id",
  "SECTION_ID_VARIABLE" => "SECTION_ID",
  "PRODUCT_QUANTITY_VARIABLE" => "quantity",
  "PRODUCT_PROPS_VARIABLE" => "prop",
  "SEF_MODE" => "Y",
  "SEF_FOLDER" => "/catalog/",
        .... "и  другие параметры"

In the catalog template, I call the component to display all products of all categories:
$APPLICATION->IncludeComponent(
    "bitrix:catalog.section",
    "specpricep",
    array(
        "IBLOCK_ID" => 2,
        "SECTION_ID" => 0,
        "SHOW_ALL_WO_SECTION" => "Y",
    ),
    $component
);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Alexandrov, 2019-12-20
@vyacheslavdmitrievich79

Information block page URL: #SITE_DIR#/catalog/
Section page URL #SITE_DIR#/catalog/#SECTION_CODE#/
Detail view page URL #SITE_DIR#/catalog/#SECTION_CODE#/#ELEMENT_CODE#/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question