M
M
Maksim862019-10-21 23:30:54
AJAX
Maksim86, 2019-10-21 23:30:54

How to change the quantity of a given product in the view using ajax?

Good day to all? I want to make in the product window the ability to change the quantity of this product in the form using ajax, but I don’t know how to do it. More precisely, I can do this by redirecting to the controller and already performing an action (increment or decrement) in it, followed by sending it to the view, but I would still like to use ajax or how it is generally done correctly. Maybe someone can give me a link, but I couldn't find it myself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maksim86, 2019-10-22
@Maksim86

No, you don't need to pull. About ajax, this is apparently superfluous, rather js is needed. I just don't know how to implement it. Then you need to send the result to the controller

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question