Jump to content

Checkout as guest


vinpkl

Recommended Posts

Hi

I have an old ecommerce website in which all queries are based on LOGIN ID.

select * from user_table where user login id = '$loginid'

Now i have a requirement of creating "CHECKOUT AS GUEST" feature.

So should I create TWO separate database tables for Member and Guest.

OR Single table for both.

And Then on what basis shall i do the queries.

So that my queries should work in both case, whether user is a MEMBER or a GUEST.

Thanks
Vineet
 
Link to comment
Share on other sites

To add to mac's answer, your user table should allow for several different types of users ('member', 'guest') and at that point all you have to focus on is the differences in things like login/logout and checkout behavior between the types, and methods to convert guests to members.

 

You will find that you generate many basically empty guest accounts, but a cron job that looks for accounts with incomplete orders older than a certain age, which then deletes the cart and guest account is easy enough to code.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.