V
V
Vladimir2018-03-20 07:54:16
1C-Bitrix
Vladimir, 2018-03-20 07:54:16

Why is the ajax request not being processed?

Hi all. I had such a problem. There are 2 hostings. They have the same PHP versions. There is a site on Bitrix. Combat site and copy. There is a Cart, in which the counter is updated via ajax when a product is added.
So on one hosting - everything is fine, ajax works, without reloading the page, the counter works.
On another hosting, the counter will not be updated until you refresh the page. The sites are exactly the same.
Prompt where to dig and in what there can be a problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
leni_m, 2018-03-20
Portev @Vladimir Portev

Your ajax sends a request to add to the cart and on both sites this part is performed.
But the answer (updating the counter) on one site does not work, well, that's how you need to deal with this part of ajax'a. Or at least throw off the code of this part of ajax'a so that you can be helped here.

I
Ivan, 2018-03-20
@LiguidCool

See browser debugger...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question