include("sys_configuration.php"); include("sources.php"); if (!isset($_SESSION['ramo'])) { $ramoSession = $_GET['ramo']; $_SESSION['ramo']=$ramoSession; } $ramo=$_SESSION['ramo']; $auxPer = new Persistent(); if ($_POST["act"] == "clear_cart") { $_SESSION["cart"] = NULL; } if (isset($_GET["deleteme"])) { $delete = $_GET["deleteme"]; if ($delete==1) { if (isset($_GET["codProduct"])) { $codProduct = $_GET["codProduct"]; $_SESSION["cart"]->borrarProduct($codProduct); } } } //Activar desactivar if (isset($_GET["deleteme"])) { $delete = $_GET["deleteme"]; if ($delete=="des") { if (isset($_GET["codProduct"])) { $codDelete = $_GET["codProduct"]; $_SESSION["cart"]->colProducts[$codDelete]->mStatus = 0; } } } $colProducts = $_SESSION["cart"]->colProducts; ?>