marcgaston Posted May 26, 2004 Share Posted May 26, 2004 Hi, for some of my products I want the customer to log in first before they can put it into their shopping cart. When I do this the standard way using snapshot in application_top // customer adds a product from the products page case 'add_product' : //echo 'add product - ' . $HTTP_POST_VARS['products_id'] . '<p>'; if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { //mgz test if ( ! tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); break 2; } all the HTTP_POST_VARS are not restored from the snapshot. Therefore the products_id is set to null as well. When the customer returns from the login he will find an empty shopping cart. How can I fix this problem? Many thanks Marc Link to comment Share on other sites More sharing options...
marcgaston Posted May 27, 2004 Author Share Posted May 27, 2004 Hi folks, please give me some advice on this one. Thanks Marc Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.