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

Remove Username and password on Checkout

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-11-2006, 06:34 AM
 
Pino Pino is offline
 

Newbie
  
Join Date: Mar 2006
Posts: 5
 

Default Remove Username and password on Checkout

Hi folks,
on my store can access only the registrated users by myself. But,unfortunately, at first checkout the users can modify username and password.
In order to remove the section at the bottom of the checkout page where it allows you to pick a username and password, I inserted on \skin1\customer\main\register.tpl this condition :
{if $usertype ne "C"}
{include file="main/register_account.tpl" userinfo=$userinfo} {/if}.
So, this modification is OK, but when the user needs to modify the others fields as shipping address, or others allowed fields, on to Profile details, he receive this error message

Access denied !
You are not allowed to access that resource!
Error ID: 36

I'm looking for way to allow to users to modify only limitated information on Profile.
Thanks for your support.
Bye
__________________
x-Cart Pro Version 4.0.18
X-AOM
X-FancyCategories
Windows
Reply With Quote
  #2  
Old 07-17-2006, 02:44 PM
 
Pino Pino is offline
 

Newbie
  
Join Date: Mar 2006
Posts: 5
 

Default

Hi folks,
I resolved myself the problem.I restored the original "\skin1\customer\main\register.tpl " and i changed,instead, the code on \main\register_account.tpl
FROM :
<TD nowrap><INPUT type="password" id="passwd1" name="passwd1" size="32" maxlength="32" value="{$userinfo.passwd1}">
TO :
{if $usertype ne "C"}
<TD nowrap><INPUT type="password" id="passwd1" name="passwd1" size="32" maxlength="32" value="{$userinfo.passwd1}">
{else}
<TD nowrap><INPUT type="password" id="passwd1" name="passwd1" size="32" maxlength="32" value="{$userinfo.passwd1}"readonly>{/if}
This modification is to do also on confirm_password.
It's simple and works.
Bye
__________________
x-Cart Pro Version 4.0.18
X-AOM
X-FancyCategories
Windows
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 01:56 PM.

   

 
X-Cart forums © 2001-2020