Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

lose products when leaving cart


lochie

Recommended Posts

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

-------------------------------------------------------

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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..

 

 

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

-------------------------------------------------------

Link to comment
Share on other sites

:blush:  :blush:  :blush:  OK I am blushing here... This used to work... :blush:  :blush:

hmmm.. Let me look into it...

 

once again... thanks for your efforts in helping me. I really do appreciate it. :)

Kind Regards :)

 

Lee McLachlan

-------------------------------------------------------

Link to comment
Share on other sites

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

-------------------------------------------------------

Link to comment
Share on other sites

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.

 

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

-------------------------------------------------------

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...