How to make different Buy button for sections Bitrix?

There are 2 sections on the main site sections. Need for the first partition to make the product list section and subsections button to purchase a led inside the item card, and the second section was added to your shopping cart.

How is this implemented?
June 3rd 19 at 20:19
1 answer
June 3rd 19 at 20:21
How is this implemented?
Do not quite understand the issue.
Add a condition: if one section then click on the button causes a redirect to a detailed product card, otherwise add item to your cart.
it is necessary that in the child partitions, this condition matched - Clair_Armstrong commented on June 3rd 19 at 20:24
duck regularly a check or using strpos the presence of the main section of the url, unless the url is formed using SECTION_CODE_PATH - Bell_Anders commented on June 3rd 19 at 20:27

Find more questions by tags 1C-Bitrix