P
P
Paul_Morte2020-04-21 14:56:51
1C-Bitrix
Paul_Morte, 2020-04-21 14:56:51

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.

5e9edf6b86cd7561734189.png
5e9edf73bf407998227463.png

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


What can be wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Paul_Morte, 2020-04-21
@Paul_Morte

Game, in the component settings in the "AJAX mode control" column, the "Enable AJAX mode:" checkbox was not set.

I
Ilya, 2020-04-21
@rpsv

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 question

Ask a Question

731 491 924 answers to any question