JemCraft Posted May 19, 2006 Share Posted May 19, 2006 I have someone logged into my site and I can add items and remove items from their basket. I have just completed a transaction and then realised that I didn't have to log in as myself, when I checked I had managed to complete the transaction (choosing payment method cheque) using her account??!! What is happening? as soon as someone logs in their account is available for anyone to add and remove stuff from their basket??? Please help as I don't even know where to start with this one. Thanks Jemma Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 19, 2006 Share Posted May 19, 2006 I'm not a expert at that. and I have not had that problem but look into your sessions. i think that what is at the end of the day the code will be good Link to comment Share on other sites More sharing options...
ozcsys Posted May 19, 2006 Share Posted May 19, 2006 How and where are you storing your sessions? If you are not already saving them in the database then try doing that and see if that fixes the problem. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
K3D Posted May 19, 2006 Share Posted May 19, 2006 This is happening because you have hard coded osCsid links on your main index.html page. Therefore everyone clicking on one of those links all share the same cart session. Link to comment Share on other sites More sharing options...
JemCraft Posted May 20, 2006 Author Share Posted May 20, 2006 Many thanks for your responses - how might I go about fixing it??? Link to comment Share on other sites More sharing options...
K3D Posted May 20, 2006 Share Posted May 20, 2006 To do it properly (without losing carts of people that have cookies disabled) you will need to make the shop the actual front of your website (php instead of html). You will then need to use tep_href_link in order to link to your products so that osCid is written into the URL when necessary. However I would make sure you remove any hardcoded osCid's as a matter of urgency. Your site is suffering quite badly too from speed issues. Link to comment Share on other sites More sharing options...
JemCraft Posted May 21, 2006 Author Share Posted May 21, 2006 To do it properly (without losing carts of people that have cookies disabled) you will need to make the shop the actual front of your website (php instead of html). You will then need to use tep_href_link in order to link to your products so that osCid is written into the URL when necessary. However I would make sure you remove any hardcoded osCid's as a matter of urgency. Your site is suffering quite badly too from speed issues. Thank you for responding and for your help so far, however I have no idea how to go about what you have suggested! Would you possibly be able to simplify it for me? Also is there any way of not losing the homepage as it stands, as we have spent ages renewing the gallery and were due to launch it shortly :- ( Many thanks in advance Jemma Link to comment Share on other sites More sharing options...
satish Posted May 21, 2006 Share Posted May 21, 2006 Thank you for responding and for your help so far, however I have no idea how to go about what you have suggested! Would you possibly be able to simplify it for me? Also is there any way of not losing the homepage as it stands, as we have spent ages renewing the gallery and were due to launch it shortly :- ( Many thanks in advance Jemma in catalog/includes/configure.php define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' change this to define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' should solve your issue. If not do paste your site URL. Satish Mantri Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
yanarasod Posted May 21, 2006 Share Posted May 21, 2006 hi, i have a drop-down menu, inserted in header.php , using simple html, i havent' used php or tep_href_link, just given a href="" is it going to show any errors. please see this code below: <ul> <li><a href="../index.php?cPath=21" title="Darjeeling Tea">Darjeeling Tea</a></li> <li><a href="../index.php?cPath=26" title="Green Tea">Green Tea</a></li> <li><a href="../index.php?cPath=21" title="Black Tea">Black Tea</a></li> Link to comment Share on other sites More sharing options...
choosealogin Posted May 21, 2006 Share Posted May 21, 2006 You shoud set up the links like this page. Otherwise, yes - you could have session loss. Test it out...disable cookies in your web browser...start shopping in your store...click...click...add something to your cart....there should be a session id in the address bar now. Now click one of your links you made...chances are if it doesn't use tep_href ...when you click the link your cart will empty hi, i have a drop-down menu, inserted in header.php , using simple html, i havent' used php or tep_href_link, just given a href="" is it going to show any errors. please see this code below: <ul> <li><a href="../index.php?cPath=21" title="Darjeeling Tea">Darjeeling Tea</a></li> <li><a href="../index.php?cPath=26" title="Green Tea">Green Tea</a></li> <li><a href="../index.php?cPath=21" title="Black Tea">Black Tea</a></li> Link to comment Share on other sites More sharing options...
yanarasod Posted May 21, 2006 Share Posted May 21, 2006 so i must change all the links to php format, but i noticed one thing, whenever i add a item to cart the item appears in red but after refeshing or even coming back to that page , the cart details don't become red again, is it related to this? Link to comment Share on other sites More sharing options...
yanarasod Posted May 21, 2006 Share Posted May 21, 2006 guess what it just happened i added a few items to cart after disabling cookies and what happened there was actually what you said, my cart became auto-empty, so should i change these links to php now, or i might be running into trouble Link to comment Share on other sites More sharing options...
choosealogin Posted May 21, 2006 Share Posted May 21, 2006 The red text changing to black in the cart box is normal. :) so i must change all the links to php format, but i noticed one thing, whenever i add a item to cart the item appears in red but after refeshing or even coming back to that page , the cart details don't become red again, is it related to this? Link to comment Share on other sites More sharing options...
choosealogin Posted May 21, 2006 Share Posted May 21, 2006 Correct. The php link format shown in the knowlege base will fix that, preserving the session. guess what it just happened i added a few items to cart after disabling cookies and what happened there was actually what you said, my cart became auto-empty, so should i change these links to php now, or i might be running into trouble Link to comment Share on other sites More sharing options...
yanarasod Posted May 21, 2006 Share Posted May 21, 2006 hey can you just convert this piece of code from html to php, i tried but ran into errors, thanks <a class="hide" href="../all_products.php">Our Products</a> <!--[if lte IE 6]> <a href="../all_products.php">Our Products <table><tr><td> <![endif]--> <ul> <li><a href="../index.php?cPath=21" title="Darjeeling Tea">Darjeeling Tea</a></li> <li><a href="../index.php?cPath=26" title="Green Tea">Green Tea</a></li> <li><a href="../index.php?cPath=21" title="Black Tea">Black Tea</a></li> Link to comment Share on other sites More sharing options...
JemCraft Posted May 21, 2006 Author Share Posted May 21, 2006 in catalog/includes/configure.phpdefine('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' change this to define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' should solve your issue. If not do paste your site URL. Satish Mantri Satish, I already have define('STORE_SESSIONS', 'mysql'); in catalog/includes/configure.php website is www.jemcraftmemories.com Thanks Jemma Link to comment Share on other sites More sharing options...
satish Posted May 22, 2006 Share Posted May 22, 2006 Satish, I already have define('STORE_SESSIONS', 'mysql'); in catalog/includes/configure.php website is www.jemcraftmemories.com Thanks Jemma I checked your site By creating an account. Didnt find anything wrong in it. Do give more details. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
yanarasod Posted May 22, 2006 Share Posted May 22, 2006 ok, about my menu, should i define the menu contents in english.php or somewhere else. Link to comment Share on other sites More sharing options...
JemCraft Posted May 25, 2006 Author Share Posted May 25, 2006 I checked your site By creating an account.Didnt find anything wrong in it. Do give more details. Satish Satish, Thanks for doing that (have deleted your order as presumed you didn't really want the stuff!!!) The problem is still occuring, only now it has got worse, as people who have just created accounts cannot log into their accounts, even though they have only just created them. I have a customer who ordered something and went away fromthe site,then she decidedshe wantedsomething else and came back and tried to log in, but it didn't recognise her e-mail or password. She tried to open a new account and also to checkout without creating an account, but it won';t let her as it says the e-mail address is already registered!!! I have hasa similar problemwhere acustmer couldn't remember her password so requested a new one, but the new ones she is being sent still won't let her access her account??? HELP!!! Thanks Jemma Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.