Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Purchase Without Account problem


Grant7

Recommended Posts

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!

Link to comment
Share on other sites

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.

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

  • 3 years later...

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...