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)
-   -   Problems Removing Username/Password Section (https://forum.x-cart.com/showthread.php?t=45214)

mike@eternitywebdev.com 01-30-2009 08:41 AM

Problems Removing Username/Password Section
 
Hi All,

I've tried commenting out the username and password section of the registration form, and it does effectively take it away, but the problem is that on the page directly after the personal info page (verify order) if you click the modify button and try to save a change it spits out the "Access Denied your are not allowed to access that resource error id #36" error message. I definitely have anon checkout enabled - it seems like some sort of a session error or something as if it doesn't think it's the same person that just filled in the information.

I'm sure there must be a way to remove the username and password portion of the form, so if anyone has a tip on how to avoid this error that would be great! Thanks!

JWait 02-01-2009 01:37 PM

Re: Problems Removing Username/Password Section
 
I'm not sure why you are doing this but it sounds like you are setting your store up so that "anonymous" only orders are accepted.
Anonymous users don't have a "account". Since you are hiding the username/password so the customer can not create a account why not just hide anything to do with a "account" also? This would include "modify profile", "delete profile", and "order history"... and also any references to "recover password"

mike@eternitywebdev.com 02-02-2009 05:32 AM

Re: Problems Removing Username/Password Section
 
Hi JWait,

I actually just figured out how to effectively hide the username/pasword section but still allow people to modify their address info if they made a mistake:

In include/register.php, replace this:

Code:

# Hide section 'Username & Password' when anonymous customer updates his profile
if ($current_area == "C" && $userinfo["status"] == "A" && !empty($login)) {
    $smarty->assign("hide_account_section", "Y");
}


with this:

Code:

# Hide section 'Username & Password' for ALL REGISTRANTS

    $smarty->assign("hide_account_section", "Y");


By taking the if statement out of the code it removes it all of the time but does not spit out the error when trying to modify address info.


All times are GMT -8. The time now is 12:44 AM.

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