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)
-   -   My Account (https://forum.x-cart.com/showthread.php?t=14001)

GTXPC 05-13-2005 11:55 PM

My Account
 
Hi I create this because I look all over and none of the mod that I found are 100% working, so I create this this work like this.

1) Create a static page = Embedded, Name the Page My Account

2) paste this code to the page that you just created, then just make a link to that page thats it.

Code:

<TABLE border="0">
  {if $config.General.use_https_login eq "Y" and $usertype eq "C"} {assign var="form_url" value=$https_location} {else} {assign var="form_url" value=$current_location} {/if}
  <FORM action="{$form_url}/include/login.php" method="post" name=errorform>
    <TR>
      <TD height="10" width="78" class="FormButton">{$lng.lbl_login}</TD>
      <TD width="10" height="10"><FONT class="Star">*</FONT></TD>
      <TD width="282" height="10">
        <INPUT type="text" name="username" size="30">
      </TD>
    </TR>
    <TR>
      <TD height="10" width="78" class="FormButton">{$lng.lbl_password}</TD>
      <TD width="10" height="10"><FONT class="Star">*</FONT></TD>
      <TD width="282" height="10">
        <INPUT type="password" name="password" size="30">
        {if $active_modules.Simple_Mode ne "" and $usertype ne "C" and $usertype ne "B"}
        <INPUT type="hidden" name="usertype" value="P">
        {else}
        <INPUT type="hidden" name="usertype" value="{$usertype}">
        {/if}
        <INPUT type="hidden" name="redirect" value="{$redirect}">
        <INPUT type="hidden" name="mode" value="login">
      </TD>
    </TR>
    <TR>
      <TD height="10" width="78" class="FormButton"></TD>
      <TD width="10" height="10"></TD>
      <TD width="282" height="10" class="ErrorMessage"> { if $main eq "login_incorrect"} {$lng.err_invalid_login} {/if} </TD>
    </TR>
    <TR>
      <TD height="10" width="78" class="FormButton"></TD>
      <TD width="10" height="10" class="FormButton"></TD>
      <TD width="282" height="10"> {if $js_enabled} {include file="buttons/submit.tpl" href="javascript:document.errorform.submit()" js_to_href="Y"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_submit} {/if} </TD>
    </TR>
  </FORM>
</TABLE>


Online Michael 05-14-2005 04:30 AM

Sorry GTXPC, but does this 'mod' do exactly?

pengrus 05-14-2005 05:44 AM

Just what I am looking for. Do you have a demo site? I registered at your site on signature, but the login on My Account page did not work....

Thanks!

perryl7 01-09-2006 07:28 AM

The mod is what I am looking for and I created the static page but when I try and display it the smarty templates are not displaying correctly. The actual code is showing. Why is this? Here is a link to the page:

https://store.naaleads.com/pages.php?pageid=1

Thanks.

balinor 01-09-2006 07:31 AM

Might want to try this mod instead, it is a bit more involved but also a bit more flexible:

http://forum.x-cart.com/viewtopic.php?t=14069

perryl7 01-09-2006 10:25 AM

Thanks again balinor. That worked


All times are GMT -8. The time now is 09:33 AM.

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