Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Creating a Login Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 12-12-2003, 01:54 PM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default Creating a Login Page

Hi,

I am wondering how I might go about implementing a 'login' page. There is a page that does have this functionality "customer/error_message.php?login_incorrect", but I was thinking that a designated login page might be more suitable.

All I need to know if what needs to be included in a new .php page to make the login functional, chiefly to keep it consistent with other pages within the website.

thanks

*** I HAVE POSTED THIS IN THE WRONG PLACE ***
Reply With Quote
  #2  
Old 12-12-2003, 04:47 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

All you have to do is duplicate the tpl page and create a menu item to call it.

But, I wouldnt recommend this, just so you think about it, cause currently the site already has a login on every single page created, that eases user navigation and gives the user posibility to login whenever they want to. If you create an additional seperate page they have to click on something else that might not be so visible (extra menu item), and users are lazy most of the time, they just want you to give them the easiest way to navigate your site (which is done currently).
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #3  
Old 02-25-2004, 03:24 PM
 
oziris oziris is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 94
 

Default

Can you please tell me what tpl file would have to be duplicated? Solution in the other thread doesn't work on mine 3.5.4 Gold.

Predrag
__________________
X-Cart version 4.0.12 Gold
PHP 4.3.8
MySQL 3.23.58
Reply With Quote
  #4  
Old 02-25-2004, 07:14 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

auth.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 02-25-2004, 08:05 PM
 
oziris oziris is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 94
 

Default

And how do I make a link to it? TPL files can only be used as include right?

Predrag
__________________
X-Cart version 4.0.12 Gold
PHP 4.3.8
MySQL 3.23.58
Reply With Quote
  #6  
Old 02-25-2004, 08:50 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Or just simply copy the <form> to </form> in the view source of your page and copy this into a static page in the admin.

__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #7  
Old 02-25-2004, 08:53 PM
 
oziris oziris is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 94
 

Default

Best solution yet. I am kinda embarrased I didn't think of it myself since I used the same procedure to add products on static pages.

Thanks,
Predrag
__________________
X-Cart version 4.0.12 Gold
PHP 4.3.8
MySQL 3.23.58
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020