(Add to Cart) product button AJAX
I want the user to add the products to the cart with ajax, with my little knowledge of Drupal, i was able to add to the function (commerce_cart_add_to_cart_form) the Form Control #ajax to the submit form in the cart module file, this works as expected, the form is submitted using ajax.
After the calls complete nothing happens, because i haven't added any functions as callback, and if i refresh the page, the cart block gets updated, and the added to cart message appear. so this part is working (but i don't know if this breaks something yet).
The problem comes with the updating of the shopping cart block, i want the newly added product to appear but i haven't bean able to do this.
I think this is very easy to do, but my lack of knowledge is making it a big deal.
If someone could help me with this, i would greatly appreciate it.