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

Problems Removing Username/Password Section

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-30-2009, 08:41 AM
 
mike@eternitywebdev.com mike@eternitywebdev.com is offline
 

Member
  
Join Date: Mar 2007
Posts: 12
 

Default 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!
__________________
Mike
V.4.1.11
V 4.2.2
Reply With Quote
  #2  
Old 02-01-2009, 01:37 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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"
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 02-02-2009, 05:32 AM
 
mike@eternitywebdev.com mike@eternitywebdev.com is offline
 

Member
  
Join Date: Mar 2007
Posts: 12
 

Default 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.
__________________
Mike
V.4.1.11
V 4.2.2
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 02:13 PM.

   

 
X-Cart forums © 2001-2020