Tsuri Japan Posted December 11, 2006 Posted December 11, 2006 Can someone tell me how to fix my sessions, here's what happens. If you add a product and continue to shop everything is ok. But if you hit "TOP" in the top left of the breadcrumb you loose your cart weather you were in your account or didn't have one. Here's my site if you need to test or something........ My Webpage I have no clue what the problem is and would love some help on this matter. Thanks very much, Nigelman
Tsuri Japan Posted December 12, 2006 Author Posted December 12, 2006 well what about just deleting the breadcrumb's TOP link then? I can't have this not working especially if people are loosing everything in their cart after hitting TOP....... I have no idea why it's doing this, how do you confiugure sessions for this to work? Any help would be great. Nigelman :thumbsup:
boxtel Posted December 12, 2006 Posted December 12, 2006 well what about just deleting the breadcrumb's TOP link then? I can't have this not working especially if people are loosing everything in their cart after hitting TOP....... I have no idea why it's doing this, how do you confiugure sessions for this to work? Any help would be great. Nigelman :thumbsup: well, you are probably moving out of your cookie domain when clicking "top" or out of osc altogether. That would cost you the session. Treasurer MFC
Guest Posted December 12, 2006 Posted December 12, 2006 In includes/application_top.php around line 466 change this: $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); to this: //$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); The_Bear
jdvb Posted December 12, 2006 Posted December 12, 2006 or if you do like the top link, but want to keep your cart: $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT));
Tsuri Japan Posted December 12, 2006 Author Posted December 12, 2006 or if you do like the top link, but want to keep your cart: $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT)); awesome worked like a charm JDVB!!!! Now when someone hits top while shopping they won't loose their cart contents. Why was mine reseting to zero, I never really edited that before and my friends shop has no problems regarding this and his was fine? Once again cheers and I really appreciate your help, beers on me :thumbsup: Nigelman :D
jdvb Posted December 12, 2006 Posted December 12, 2006 1st of all things depend on wether or not cookies are set correctly, if so, all links will be without a session id (after the cookie was set) do note that I also changed to where the link points, instead of the HTTP_SERVER it now points to oscommerce itself. If the oscommerce instalation is in the root of the site, my solution is best. If the e-comerce part is not your entire site, this solution might not be the best, in that case you might want to edit it a bit further so that the top link does direct to the root of your site, does include the session id, and the rest of your site appends the osCsid to the all urls when it was set in &_GET['osCsid']
Tsuri Japan Posted December 12, 2006 Author Posted December 12, 2006 It's in my root of my server so it's all good! Thanks for your explanation into this matter and it's great to know there are people like you who know their stuff to help us who are not as good at the techie stuff. Nigelman :thumbsup:
varanus9 Posted January 30, 2007 Posted January 30, 2007 I was looking all over for this - thanks for the solution! Regards, Varanus9
Recommended Posts
Archived
This topic is now archived and is closed to further replies.