Guest Posted February 8, 2009 Share Posted February 8, 2009 hi guy's my problem is not realy the same as priyeshrawal report but i think will help him if someone can solve this problem. i don't have any problem with my shopping cart by adding product until: i made an box located in my lef column. in this box i put some link to file i made ( not from Osc. ) i locate them in my catalog directory. BUT when i call them i lost all the content of the cart. the only things i can see it's because OSC start a new session. MY QUESTION IS: How ( or witch code i have to put in my new file & where putting them) to get the existing session instead to start a new one. yours sebastien Link to comment Share on other sites More sharing options...
germ Posted February 8, 2009 Share Posted February 8, 2009 i made an box located in my lef column. in this box i put some link to file i made ( not from Osc. ) i locate them in my catalog directory. BUT when i call them i lost all the content of the cart. Did you use the osC function tep_href_link or did you use just plain HTML code for the link? :unsure: Using plain HTML can cause session loss, and if the page you link to isn't a PHP page, just plain HTML, that can cause session loss as well. And the new PHP page must have this code at the top: require('includes/application_top.php'); to retain the osC session. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2009 Share Posted February 9, 2009 Did you use the osC function tep_href_link or did you use just plain HTML code for the link?:unsure: Using plain HTML can cause session loss, and if the page you link to isn't a PHP page, just plain HTML, that can cause session loss as well. And the new PHP page must have this code at the top: require('includes/application_top.php'); to retain the osC session. oops yes i use plain html.. for my link ( DUuuuuuuu ) newbi error. but this is what i do. for the file. i took the index.php file , rename it for my needs and replace the body of the file by the body of my html file. so the require('includes/application_top.php') code is still at the top of the file. what will be the right code for.. to link my page. your help is appreciate yours sebastien Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2009 Share Posted February 9, 2009 OK.. i found how to use the tep_ref function and you know what... it's work... HOURA.. thank you for the info. yours sebastien CASE CLOSE Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.