A
A
AndyLarcin2015-11-12 19:18:15
Magento
AndyLarcin, 2015-11-12 19:18:15

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

2 answer(s)
V
Viktor, 2015-11-12
@master2016

Just by clicking on the button, get new data on the basket and push them into it. It's standard, everyone does it.

F
fascinosum, 2015-11-13
@fascinosum

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 question

Ask a Question

731 491 924 answers to any question