Answer the question
In order to leave comments, you need to log in
Why does the add to cart button hang on the bitrix site?
All ajax buttons of the online store "add to cart" after clicking on them hang with the text "add". Endless loading. What is in the teasers of the goods, what is in the product cards is the same.
However, after refreshing the page, items still appear in the cart.
Console throws an error
Cannot add to cart
http://sitename.ru/bitrix/cache/js/s1/styleshop/template_d9b9ecc0102b73142a34be0517635e4a/template_d9b9ecc0102b73142a34be0517635e4a_v1.js?1587467022345551
Answer the question
In order to leave comments, you need to log in
Game, in the component settings in the "AJAX mode control" column, the "Enable AJAX mode:" checkbox was not set.
1. Check if the request is leaving (F12, Network tab);
2. Check the correctness of the request and response;
3. Check the file itself where the console is pointed to (check where the data comes from, whether they are filled, etc.)
Try to dig at least a little further than the console and everything will be fine;)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question