D
D
DeeUs2018-07-30 09:44:14
1C-Bitrix
DeeUs, 2018-07-30 09:44:14

How to display a block in the footer for product cards only?

Hello!
I include the file in the footer like this:

the code
$APPLICATION->IncludeComponent("bitrix:main.include", "", 
                    array(
                        "AREA_FILE_SHOW" => "file", 
                        "PATH" => SITE_DIR."include/popup_delivery_text.php"), 
                        false
                );


How to make the block appear only on the product card?
theme: elektro_flat by Altop

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2018-07-30
@Rema1ns

check the url with a regular expression and if it matches, include the area.

M
Maxim, 2018-07-30
@Tomio

1. You can check $_REQUEST['ELEMENT_CODE'] or $_REQUEST['ELEMENT_ID'] . If these keys are present, then this is most likely a detailed page.
2. You can also do this through ShowViewContent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question