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

removing multiple customer name entries on register page

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

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default removing multiple customer name entries on register page

Anybody know how to do this without it causing errors?
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #2  
Old 06-01-2006, 03:45 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

go to profile options and select / de select options.

General setting - profile options
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #3  
Old 06-01-2006, 03:46 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

Or better still can somebody tell me all of the relevant files that I will need to edit so I can do it myself?

For instance what file is calling the 'required' fields?
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #4  
Old 06-01-2006, 03:49 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

Quote:
Originally Posted by raxitpatel
go to profile options and select / de select options.

General setting - profile options

No I don't want to delete customers - sorry maybe I worded it wrongly.

I'm trying to get rid of the stupid triple name entry on the customer registration form. Where they have to enter their name 3 times.

Once for details, and then again for shipping and billing address'.

Edit. ahh you edited so I shall too

That doesn't work. I've done that so they are not required but it still leaves the boxes there.
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #5  
Old 06-01-2006, 04:11 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

Go this is tedious, nothing works unless I select the name fields as 'un required' in the back end.

Where are the required fields being called from so I can hard code them out?
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #6  
Old 06-01-2006, 04:18 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

may be this will do it.

/customer/main/customer_details.tpl
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #7  
Old 06-01-2006, 04:43 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Nope, the templates you are looking for are:

main/register_billing_address.tpl
main/register_shipping_address.tpl
main/register_personal_info.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 06-01-2006, 05:18 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

Quote:
Originally Posted by balinor
Nope, the templates you are looking for are:

main/register_billing_address.tpl
main/register_shipping_address.tpl
main/register_personal_info.tpl


Thats the kiddies...

Ok now how do I code out the required bit?

Quote:
{if $default_fields.lastname.avail eq 'Y'}
<TR>
<TD align="right">{$lng.lbl_last_name}</TD>
<TD>{if $default_fields.lastname.required eq 'Y'}<FONT class="Star">*</FONT>{else}{/if}</TD>
<TD nowrap>
<INPUT type="text" name="b_lastname" size="32" maxlength="32" value="{$userinfo.b_lastname}">
{if $reg_error ne "" and $userinfo.b_lastname eq "" && $default_fields.lastname.required eq 'Y'}<FONT class="Star">&lt;&lt;</FONT>{/if}
</TD>
</TR>
{/if}

Which parts do I lose or comment out?
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #9  
Old 06-01-2006, 05:44 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

After looking at this code I can't see how these templates have anything to do with the required fields apart from adding a red asterisk next to the field.

I need to find the code that actually lablels the fields as required and returns errors when they are not completed
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #10  
Old 06-01-2006, 05:46 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Ah sorry, thought you were looking how to hide the fields. The whole registration process is controlled by include/register.php
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:53 AM.

   

 
X-Cart forums © 2001-2020