Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Checkout AND Create Account at the same time?


Recommended Posts

I looked at contribs and searched but couldn't find anything like this...


PWA contrib will checkout without an account but I think new customers should be able to click checkout then add their shipping and billing details, account information ie user/pass then continue straight to the credit card payment section which will create their account aswell as allow them to continue the checkout process without bouncing back to login forms, create account forms, or account pages...


Does anyone know if there is anything like this?



Edited by Vince76
Link to comment
Share on other sites

OK! I figured it out... You don't need fancy mods like PWA and other purchase without account contribs and have to edit 20 files..


2 Simple changes in two files will create this checkout process


Checkout -----> Create Account -----> Checkout Shipping -----> Checkout Payment


Open checkout_shipping.php


Change this code:

// if the customer is not logged on, redirect them to the login page
 if (!tep_session_is_registered('customer_id')) {
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));


To this:

// if the customer is not logged on, redirect them to the create account page
 if (!tep_session_is_registered('customer_id')) {
   tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));


Open create_account.php


Find this:

      tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));


Replace with this:

      tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));


Good luck with it...

Link to comment
Share on other sites

Yup. Thats about what I've done as well. You might want to also put a link at the top of the create_account page for users that have purchased before to be able to log in, and send that link to the login page.


NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

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.

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