Answer the question
In order to leave comments, you need to log in
How to fix adding to comparison?
Hello.
I’m setting up the layout for an online store on Bitrix, I’ve already completed 60% of the percent and faced such a problem as the inoperability of the link to add a product to comparison.
Comparison in the settings of the "Catalogue" component is enabled.
There is a link in the product card template:
<a href="?action=ADD_TO_COMPARE_LIST&id=<?=$arResult['ID']?>">Сравнить</a>
\bitrix\templates\my_template\components\bitrix\catalog\template1\bitrix\catalog.element\.default\template.php
Answer the question
In order to leave comments, you need to log in
Do you want to add a product to comparison on the product page?
Then in the file \bitrix\templates\my_template\components\bitrix\catalog\template1\element.php there should be a call to the catalog.compare.list component
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question