Thread: Login Link
View Single Post
  #55  
Old 07-19-2008, 08:43 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Login Link

Quote:
Originally Posted by boomobile
I have 3 separate pages as follows
login = secure_login_form.tpl
registration = register.tpl
recover lost password = change_password.tpl

these all come up on separate pages, I want them all on one.

My home_main.tpl includes this:

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

{elseif $main eq "secure_login_form"}
{include file="customer/main/secure_login_form.tpl"}

{elseif $main eq "change_password"}
{include file="customer/main/change_password.tpl"}

I'm not sure what file I need to modify.

I don't really understand why you would want them all on the same page, particularly since they do different things.

"Register" does just that, registers new customers.
"Secure Login" will login current customers using https.
"Change Password" will allow current customers to change their password, and is part of "modify profile".

"recover lost password = change_password.tpl" as you state is incorrect. "Recover Password" allows a current customer to retrieve their login information via email and has nothing to do with changing their password (unless of course you require them to change it at their next logon).

Anyway, to get more than one template on a page, just call it...

{elseif $main eq "whatever_you_want_to_name_your_page"}
{include file="customer/main/register.tpl"}
{include file="customer/main/secure_login_form.tpl"}
{include file="customer/main/change_password.tpl"}

You need to include the "requires" on "whatever_you_want_to_name_your_page.tpl"
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote