Die Datei, die die Funktion macht:
Vielleicht funktioniert ja $HTTP_GET_VARS nicht?
PHP-Code:
if (isset($HTTP_GET_VARS['delete']))
{
$delete = $HTTP_GET_VARS['delete'];
$itemno = $HTTP_GET_VARS['itemid'];
} else {
$delete = 0;
}
if (isset($HTTP_GET_VARS['additem']))
{
$additem = $HTTP_GET_VARS['additem'];
$itemid = $HTTP_GET_VARS['itemid'];
$qty = $HTTP_GET_VARS['qty'];
$product = $HTTP_GET_VARS['product'];
$price = $HTTP_GET_VARS['price'];
} else {
$additem = 0;
}
if (isset($HTTP_GET_VARS['clear']))
{
$clear = $HTTP_GET_VARS['clear'];
} else {
$clear = 0;
}
if ($delete == "1")
{
$user_cart->delete_item($itemno);
header("Location: " . $current_url); /* Redirect browser */
exit; /* Make sure that code below does not get executed when we redirect. */
}
if ($additem == "1")
{
$user_cart->add_item($itemid, $qty, $product, $price);
header("Location: " . $viewcart); /* Redirect browser */
exit; /* Make sure that code below does not get executed when we redirect. */
}
if ($clear == "1")
{
$user_cart->clear();
header("Location: " . $viewcart); /* Redirect browser */
exit; /* Make sure that code below does not get executed when we redirect. */
}
?>