lochie Posted November 24, 2004 Posted November 24, 2004 Should I lose my products in my basket when I leave the shop (but stay on the same site) and then return to the shop? As an example.. my domain is domain.com and my cart is at domain.com/shop. If I pick up a few items at domain.com/shop and click a link back to just domain.com then go back to the shop later (even within seconds) all my items are gone. It never used to do this I don't think. Is there any way I can keep these items until the user decides to buy or remove them? Domain: musicandleisure.co.uk/shop Thanks in advance Lee Kind Regards :) Lee McLachlan -------------------------------------------------------
koie Posted November 24, 2004 Posted November 24, 2004 It might be something to do with your sessions. Try looking at the knowledge base or forum and search for sessions. Make sure you store your sessions in the database. The session_ids are needed for storing products in the baskets. If you can't find it let me know..
koie Posted November 24, 2004 Posted November 24, 2004 Also with every visit the session id changes so that is why your are loosing your contents..
lochie Posted November 24, 2004 Author Posted November 24, 2004 It might be something to do with your sessions. Try looking at the knowledge base or forum and search for sessions. Make sure you store your sessions in the database. The session_ids are needed for storing products in the baskets. If you can't find it let me know.. <{POST_SNAPBACK}> Thanks for your fast reply, I have kind of sorted part of my problem.. now I think the rest of it is cookie based maybe.. What I have done is changed ALL links on the entire site to have '?osCsid=<?php echo $_GET['osCsid']; ?>' at the end of it. So if I link back to the home page (away from the cart) I use ../index.php?osCsid=<?php echo $_GET['osCsid']; ?> This seems to do the job. But now I want to take it a step further... If I was to accidently close the site down (close IE)... is there anyway I can store the items in the cart for an hour or so, so that when I return, I still have them in my cart without having to redo the order? or is this still session related problems? Thanks again Kind Regards :) Lee McLachlan -------------------------------------------------------
koie Posted November 24, 2004 Posted November 24, 2004 This is a standard OSC feature. Try adding a fabric in the cart at my shop and then leave. When you come back you'll notice it is still there. De Stoffenstunter
koie Posted November 24, 2004 Posted November 24, 2004 This is a standard OSC feature. Try adding a fabric in the cart at my shop and then leave. When you come back you'll notice it is still there. De Stoffenstunter <{POST_SNAPBACK}> :blush: :blush: :blush: OK I am blushing here... This used to work... :blush: :blush: hmmm.. Let me look into it...
lochie Posted November 24, 2004 Author Posted November 24, 2004 :blush: :blush: :blush: OK I am blushing here... This used to work... :blush: :blush: hmmm.. Let me look into it... <{POST_SNAPBACK}> once again... thanks for your efforts in helping me. I really do appreciate it. :) Kind Regards :) Lee McLachlan -------------------------------------------------------
lochie Posted November 24, 2004 Author Posted November 24, 2004 Actually it looks like I was wrong too. My fix of the sessions doesn't work as well as I thought. It only works if you visit the shop before you go to the mail site. Because the main site doens't give a session id, but it tries to pass one over anyway. All I managed to do is pass the session id from the cart to the main files. But it looks like I need the main site to be able to create same sort of session id. Any idea how I would do this? Here is the URL and errors I get: URL: www.musicandleisure.co.uk Warning: session_start(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /home/httpd/vhosts/musicandleisure.co.uk/httpdocs/shop/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/musicandleisure.co.uk/httpdocs/shop/includes/functions/sessions.php:67) in /home/httpd/vhosts/musicandleisure.co.uk/httpdocs/shop/includes/functions/sessions.php on line 67 Kind Regards :) Lee McLachlan -------------------------------------------------------
koie Posted November 24, 2004 Posted November 24, 2004 The odd thing is that in my test shop it does work. I need to check what the differences are. Unfortunately today I do not have enough time for this.
koie Posted November 24, 2004 Posted November 24, 2004 I have tried all kinds of things like cookies on/off sessions in files or mysql etc...I can't figure it out.. Sorry..perhaps I was mistaken.
lochie Posted November 25, 2004 Author Posted November 25, 2004 I have tried all kinds of things like cookies on/off sessions in files or mysql etc...I can't figure it out.. Sorry..perhaps I was mistaken. <{POST_SNAPBACK}> I sorted out my problems. I had my links set to www.domain.com but the config was just domain.com These problems are away now, but now I have a login problem with clients. They can't log back in anymore. :blush: Kind Regards :) Lee McLachlan -------------------------------------------------------
Recommended Posts
Archived
This topic is now archived and is closed to further replies.