Good morning, adding a product to the cart every time you upgrade your browser increases the product by +1. how to prevent this? so you can add it:
//adiciona produto
if(isset($_GET['acao'])){
$id = intval($_GET['id']);
if(!isset($_SESSION['shop'][$id])){
$_SESSION['shop'][$id] = 1;
}else{
$_SESSION['shop'][$id] += 1;
}
}