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

Login from outside of store?

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

Member
  
Join Date: Sep 2003
Posts: 28
 

Default Login from outside of store?

My store is somewhat seperate from my website, so I'll have a webpage that allows members to register an xcart customer account, login to their existing account, and view a preview of my services, all from a webpage outside of xcart. Any idea how I can do this?. I tried to take the code from "auth.tpl" but that obviously doesn't work.

Ryan
Reply With Quote
  #2  
Old 12-05-2003, 01:15 PM
 
ryanf ryanf is offline
 

Member
  
Join Date: Sep 2003
Posts: 28
 

Default

Wild. 3 minutes later I figured it out. lol. Incase anyone else is looking for the same thing, feel free to private message me. I'm not sure what the best way is to post code into the forum.

Ryan
Reply With Quote
  #3  
Old 12-13-2003, 12:23 AM
  leon's Avatar 
leon leon is offline
 

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

Default

Just Copy and Paste thats all.

Regarding your issue all a user has to do is copy a form into a table in any page that references the action to the include/login.php script:

<FORM action="http://yourxcartsite.com/include/login.php" method=post name=authform>
<tr>
<td class=VertMenuItems>
<font class=VertMenuItems>Username</font>

<input type=text name=username size=16>

<font class=VertMenuItems>Password</font>

<input type=password name=password size=16>

<input type=hidden name=mode value=login>
<input type=hidden name=usertype value="C">
<input type=hidden name=redirect value="customer">
</td></tr>
<tr>
<td height=24 class=VertMenuItems>
<font class=VertMenuItems>Login </font><input type=image src='http://yourxcartsite.com/skin1/images/go_menu.gif' width=27 height=14 border=0 align=absmiddle>
</td>
</tr>
<tr>
<td height=24 nowrap class=VertMenuItems>
<font class=VertMenuItems>Register </font>http://yourxcartsite.com/skin1/images/go_menu.gif
</td>
</tr>
<tr>
<td class=VertMenuItems>


<div align=right>
If you have disabled Javascript in your browser click here
</div>
</td>
</tr>
</form>
__________________
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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 06:26 AM.

   

 
X-Cart forums © 2001-2020