It looks like your add to cart button is set up as a "Static Add" instead of "Add from Recordset".
You should be able to open the server behavior and make the adjustment to add from recordset instead and that should add the missing code to make it add the correct record and not the first record.