Grant7 Posted October 29, 2011 Share Posted October 29, 2011 We have a slight problem with our oscommerce store after installing the Purchase Without Account contribution: http://addons.oscommerce.com/info/355 Everything works fine with the contribution, unless the customer registers as a guest but does not complete the checkout. The contribution assumes that every customer who creates a guest account will complete the checkout, or logout if they don't, hence the temporary "guest account" is deleted from the shop database on checkout_success.php after an order is completed, or on logout.php when the customer logs out. So if the customer registers as a guest, fails to complete the checkout, then logs out, their details are deleted from the database. However, if they don't click "logout" after not completing the checkout, the customer's "guest" details are left in the database. If the customer decides to come back later and complete the checkout, their "session" may be expired, but their details are still in the database, so if they try to checkout as a guest, the shop tells them to login (as their details are already in the database - same email etc), which leaves the customer quite confused. So what we need to happen is that if a customer fails to checkout as a guest, once their session expires, (as it would for a normal customer if they are logged in and they leave the computer for a while), delete the temporary account created in the database for the guest account. This way the customer can return later and create a new "guest account" without receiving any errors. Hopefully someone can assist with this. Cheers! Quote Link to comment Share on other sites More sharing options...
web-project Posted October 30, 2011 Share Posted October 30, 2011 Everything works fine with the contribution, unless the customer registers as a guest but does not complete the checkout. you can modify this, as you can check if customer created order or not, if not simply delete the guest account from the system, very easy to check sort of data. Quote Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you. Link to comment Share on other sites More sharing options...
Grant7 Posted November 1, 2011 Author Share Posted November 1, 2011 That's exactly what we need, any ideas on the code for that and in what file that would be placed? Quote Link to comment Share on other sites More sharing options...
krdito Posted December 25, 2014 Share Posted December 25, 2014 We have this same problem! Guest customer doesn't complete checkout, but comes back later to check out. Because the system has retained the customer info (i.e., not deleted because the customer did not submit an order), the system thinks the customer actually has an account and requires the customer to log in. Customer doesn't have an account, so they don't have a password and password reset doesn't work. Very frustrating for the customer! Daily, we check the database and remove these temporary accounts (easy to identify because password reset key fields says "NULL.") However, the issue is if the customer comes back before we delete their temporary account, they are caught up on the login requirement scenario as described in the first paragraph. Is there a way to fix this? Perhaps there is a way to add code to delete the temporary account if the customer does not submit an order after a certain amount of time? Thanks for any help you can provide! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.