Right, I have an ajax cart and this is my problem. I have a form that submits an id through AJAX. This form is recognised through its class form. See the JS below. Anyway, this works fine for 1 form with class value form, but once there are more than 1 product/form it breaks - the first form will only submit, if i submit other forms, the first one is submitted still.
require_once( '../config.php' );
var inputId = $("#product_id");
var inputAmount = $("#product_amount");
var loading = $("#loading");
var cartContent = $(".box > ul");