Answer the question
In order to leave comments, you need to log in
Refresh ajax cart?
RewriteEngine On
RewriteRule ^cart/prod([0-9]+)/$ /cart.php?id=$1
RewriteRule ^cart/prod([0-9]+)/qty([0-9]+)/$ /cart.php?id=$1&q=$2
RewriteRule ^cart/prod([0-9]+)/qty([0-9]+)/update/$ /cart.php?id=$1&q=$2&update =1
Answer the question
In order to leave comments, you need to log in
Just by clicking on the button, get new data on the basket and push them into it. It's standard, everyone does it.
Why write a bicycle?
You can take a ready-made solution, for example
,
as described above, it makes no sense to update the block without adding the product to the cart.
If you want to write your own, then I recommend starting with an analysis of ready-made solutions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question