if (isset($_POST['delfile'])) { if (isset($_POST['oid'])) { $order = new OrderCore($_POST['oid']); if ($order->id_customer == $cookie->id_customer) { $orderfiles->photodelete($_POST['fid'], $cookie->id_customer); } } } if (isset($_POST['delcartfile'])) { if (isset($_POST['fid'])) { $orderfiles->cartfiledelete($_POST['fid']); } } if (isset($_POST['delproductfile'])) { if (isset($_POST['fid'])) { $orderfiles->productfiledelete($_POST['fid']); } } if (isset($_POST['oid'])) { $order = new OrderCore($_POST['oid']); if ($order->id_customer == $cookie->id_customer) { global $smarty; $smarty->assign('this_path', __PS_BASE_URI__ . 'modules/' . $orderfiles->name . '/'); $smarty->assign('mod', $orderfiles); $smarty->assign('setup', $setup); $smarty->assign('order', $order); $smarty->assign('idorder', $_POST['oid']); $smarty->assign('files', $orderfiles->get_files($_POST['oid'], $cookie->id_customer)); /** $this->context->smarty->assign(array( 'mod' => $this,