X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Moving registration page to the front of the store (https://forum.x-cart.com/showthread.php?t=23572)

Deane 07-25-2006 11:13 AM

Moving registration page to the front of the store
 
Store owner wants to move the "registration" screen to the front of the store.

So a user is first asked to login or register.

After registration (or login), user should then be taken to the root category listing.

I can't figure out if this is possible. It strikes me that the login and registration process is tightly tied into checkout, so completing the registration would move the user further along in a (non-existent) check-out process.

Any thoughts?

Deane
X-Cart v4.0.18

balinor 07-25-2006 12:43 PM

Registration/Login can be its own screen, it doesn't need to tie into checkout. What I've done in the past is add the registration to welcome.tpl, but surround it with an {if} statement, so when someone IS logged in they get a welcome message instead of the login screen.

Deane 07-25-2006 12:48 PM

So, I'm assuming I put this into welcome.tpl:

{include file="customer/main/register.tpl"}

Then will they skip that screen during checkout? If it detects they're already logged in, will it bypass?

balinor 07-25-2006 12:55 PM

Actually let me correct that statement...I'd put the LOGIN in welcome.tpl...people who have already registered don't need to see the reg form again. So do something like this:

{if $login eq ""}
{include file="auth.tpl"}
{else}
{$lng.txt_welcome}
{/if}

That will show them a login screen if they aren't logged in, and the welcome text once they are. If they don't have a login, there is a link to the registration form below the login area.

Yes, the cart will skip registration if someone is already logged in.


All times are GMT -8. The time now is 02:02 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.