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)
-   -   Remove Username and password on Checkout (https://forum.x-cart.com/showthread.php?t=23169)

Pino 07-11-2006 06:34 AM

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

Pino 07-17-2006 02:44 PM

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


All times are GMT -8. The time now is 01:13 PM.

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