Hi, I would like to add the potions returned by the for, it is not with count ()
if (isset($_SESSION['carrito'])){
$datos = $_SESSION['carrito'];
for ($i=0; $i<count($datos); $i++) {
echo count($datos);
}
}
?>
In fact I want to add what the variable $ i brings me. It is a cart and not what I need to know are the total of the products that the user is agreagndo. know the total of the positions do not add the positions. of 0,1,2,3, = 4 positions.