require_once '/home/nmaxx/public_html/marketingNet/libs.php'; $stock = new TempMaxCompra(); $expiredShoppingCart = $stock->getExpiredShoppingCard(); $shoppingCart = new ShoppingCart(); if (!empty($expiredShoppingCart)) { foreach ($expiredShoppingCart as $k => $v) { $type = $shoppingCart->getType($v->talle, $v->color); $user = $v->idUsuario; $id = $v->intContador; $stock->storeRemains($type); if (isset($type)) { switch ($type) { case '1': try { $x = new TempStock(); $x->liberarStockTalle($id, $user); } catch (Exception $e) { echo $e->getMessage(); } break; case '2': try { $x = new TempStock(); $x->liberarStockColor($id, $user); } catch (Exception $e) { echo $e->getMessage(); } break; case '3': try { $x = new TempStock();
require_once 'libs.php'; if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = ""; $MM_donotCheckaccess = "true"; // require_once('/control/resources/pdo.php'); require_once 'control/productos/classes/class.tallesColores.php'; $cond = isset($_GET['recordID']) && !empty($_GET['recordID']) && !isset($_GET['talle_colores']); $tempMaxCompra = new TempMaxCompra(); if (isset($_GET['require'])) { switch ($_GET['require']) { case '1': try { $x = new TempStock(); $x->liberarStockTalle($_GET['recordID'], $_SESSION['MM_IdUsuario']); $tempMaxCompra->storeRemains($_GET['recordID']); } catch (Exception $e) { echo $e->getMessage(); } break; case '2': try { $x = new TempStock(); $x->liberarStockColor($_GET['recordID'], $_SESSION['MM_IdUsuario']); $tempMaxCompra->storeRemains($_GET['recordID']); } catch (Exception $e) { echo $e->getMessage(); } break; case '3':