I didn't notice on the ecommerce part, but the extension must be ``.json`` and the quantity in the query string. Also the ajax url must be retrieve from the product response (the product Id might change)