Yessimonmlewis wrote:I take it the "URL" part is the path to the PHP file that runs all the database query code?
The item and quantity of said item being added to the cart. Just a pseudo-code example, though. These would be the inputs being passed to your PHP functions.simonmlewis wrote:What is the "item_id: item, quantity: qty"?
You're sending a request to a URL. Whatever response is returned from that request is what gets passed to the success callback. In the discussion above, you were returning the new number of items in the cart, which is what I mocked up. In practice, it could be anything.simonmlewis wrote:How is that taking information from the query, as I think I see that then going into the next success: part of the function.