Thread: Address Fields
View Single Post
  #2  
Old 03-03-2005, 01:41 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,052
 

Default

There are probably two ways to approach this normally. One is to edit templates like you are doing, but it is probably more complicated than that and needs the relevant php editing and fields adding to the database.

The other way would normally be to use the User Profile Options under General Settings. But this for some reason, I think only allows you to add an extra field to the bottom of the section, not in the middle or wherever. Is that right?

If so you need a workaround, or to give it its technical term, we need to cheat. So in the absence of any other replies here, this is how I would do it...

Disable the fields below where you want to add the new field.
Then add your additional field.
Then add as additional fields, all the ones you disabled.
Don't forget to make them active, but not the ones you previously disabled.

You then have all the fields you want, in the order you want.

The next problem is that despite them being disabled, they still appear in the emails sent.

So edit the templates, mail/profile_data.tpl (you probably need to do the one in the sub folder "html" as well).
Remove the lines that refer to the fields you disabled. Make sure you remove complete rows, beginning from a <TR> and ending with a </TR>.

Hope this helps, I am sure it will work, just as long as I haven't missed anywhere where these fields might appear, despite them being disabled.

Paul Dodman
e-business consultant
Lumino Internet
luminointernet.co.uk
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote