// customer remove a product from shopping cart or postpone cart case 'remove_product': if ($HTTP_GET_VARS['from'] == 'postpone') { $postpone_cart->remove($HTTP_GET_VARS['products_id']); } elseif ($HTTP_GET_VARS['from'] == 'foreign') { $foreign_cart->remove($HTTP_GET_VARS['products_id']); } else { $cart->remove($HTTP_GET_VARS['products_id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), $ssl_params) . ($HTTP_GET_VARS['from'] != '' ? '#' . $HTTP_GET_VARS['from'] : '')); break; // customer remove a product from shopping cart or postpone cart // customer remove a product from shopping cart or postpone cart case 'notify': if (tep_session_is_registered('customer_id')) { $postpone_cart->change_notification($HTTP_GET_VARS['products_id'], $HTTP_GET_VARS['notify']); } else { $messageStack->add_session('header', POSTPONE_CART_NOTIFICATION_ERROR); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters), $ssl_params) . '#postpone'); break; // customer adds a product from the products page // customer adds a product from the products page case 'add_product': if (ALLOW_GUEST_TO_ADD_CART == 'true' || tep_session_is_registered('customer_id') || $HTTP_GET_VARS['link'] == 'mail') { if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id']) || isset($HTTP_GET_VARS['products_id']) && is_numeric($HTTP_GET_VARS['products_id'])) { $quantity = (int) $HTTP_POST_VARS['quantity']; if (isset($HTTP_GET_VARS['products_id'])) { $products_id = $HTTP_GET_VARS['products_id']; } else { $products_id = $HTTP_POST_VARS['products_id'];