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)
-   -   removing multiple customer name entries on register page (https://forum.x-cart.com/showthread.php?t=22188)

Grant 06-01-2006 03:34 AM

removing multiple customer name entries on register page
 
Anybody know how to do this without it causing errors?

jeeya 06-01-2006 03:45 AM

go to profile options and select / de select options.

General setting - profile options

Grant 06-01-2006 03:46 AM

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?

Grant 06-01-2006 03:49 AM

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.

Grant 06-01-2006 04:11 AM

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?

jeeya 06-01-2006 04:18 AM

may be this will do it.

/customer/main/customer_details.tpl

balinor 06-01-2006 04:43 AM

Nope, the templates you are looking for are:

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

Grant 06-01-2006 05:18 AM

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?

Grant 06-01-2006 05:44 AM

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

balinor 06-01-2006 05:46 AM

Ah sorry, thought you were looking how to hide the fields. The whole registration process is controlled by include/register.php

Grant 06-01-2006 06:03 AM

Quote:

Originally Posted by balinor
Ah sorry, thought you were looking how to hide the fields. The whole registration process is controlled by include/register.php


Ideally I was looking at how to hide the fields but that doesn't work - it just brings up incomplete field errors even after adding hidden tags like in the easy checkout mod - which didn't work for me at all.

I'll have a look at register.php ;)

Grant 06-01-2006 06:05 AM

Another quick question...

customer/main/customer_details.tpl

Is this only used to display the info on the last checkout page or is it also used for the order email or anything?

In other words is it safe to totally mod this up without losing functionality anywhere else within the store?

balinor 06-01-2006 06:06 AM

Yep, just the last page of checkout...edit at will :)


All times are GMT -8. The time now is 02:41 AM.

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