Latest News: (loading..)

Archived

This topic is now archived and is closed to further replies.

cloud4607

Editing create_account.php fields

5 posts in this topic

Hi all, i need help on how to edit 2 fields in the create_account.php file...

I need to modify the Name field and also the company name field (only the name, like a traduction), i've checked all the create_account files, but the form isn't in these files...

Now, where could it be?

 

PS: Sorry for my english, i'm from italy :)

Share this post


Link to post
Share on other sites

@@cloud4607

 

The form IS in the /create_account.php file, but the language is found in the /includes/languages/english/create_account.php

 

 

 

 

Chris

Share this post


Link to post
Share on other sites

Well, maybe i'm doing something wrong, but when i search for the tag <form action etc... there isn't on any create_account...

Share this post


Link to post
Share on other sites

Forms in osCommerce are created using the tep_draw_form() function, in create_account.php this is

<?php echo tep_draw_form('create_account', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"', true) . tep_draw_hidden_field('action', 'process'); ?>

 

However, to change the text labels of the fields, you need to modify the file as @@DunWeb suggested

Share this post


Link to post
Share on other sites

Thanks :D

On the localization tough, the strings for everything are in the <language>.php (on my version, 2.3.1) so i only edited that file and all done :)

Share this post


Link to post
Share on other sites