change add.php line 50 from:
$cesta = $_SESSION["cesta"]->cesta;
to
$cesta =& $_SESSION["cesta"]->cesta;
you need to pass it by reference or use
foreach($_SESSION["cesta"]->cesta as $producto)
see php manual for references;
if you dont use a reference (=&) the $_SESSION["cesta"] will change from an object to array after the line 50