(2) If+1 and the database is also+1, you need to use ajax. When you are independent, trigger ajax.
$.post("url ",{"id": "product id"}, function(data){
})
Fill in an address in the url and send the product id to the processing page.