Answer the question
In order to leave comments, you need to log in
Why don't the buy buttons on Bitrix work?
We made some modifications to the layout of the site, passed it, everything worked correctly. After some time, the client writes that the buttons for changing the quantity of goods and adding to the cart do not work. And so it happened. but for some reason, the button for adding a product only works in the catalog and when displaying cards in the form of a block, as well as in the product detail itself. When asked what work they did, they said that only tests were standard from Bitrix.
I checked the data-entity of the elements, id classes like everything is ok. I ran through the scripts like everything is available Where to look further xs. There are options?
The site https://sibiroboi.ru/catalog/wallpaper/ps
noticed that there are no events for changing the quantity and purchase on the buttons, which should be hung at the very beginning.
Answer the question
In order to leave comments, you need to log in
This script /bitrix/templates/report/components/bitrix/catalog.item/bootstrap_v4_list/script.js
contains the following code:
It checks the image object. If it is not there, then this.errorCode = -2;
And then the code checks for the absence of errors this.errorCode === 0:
Since there is an error, the event handler for clicking on the "Buy" button is not attached.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question