Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing "Create Account" page


Guest

Recommended Posts

Hi,

 

I've never used Ocommerce before and I can't for the life of me change the acount fields in the create account page, I want to remove the * next to Phone Number and put one next to Suburb.

 

Any help would be greatly appreciated.

Link to comment
Share on other sites

You will have to do some code changes...there is no database setting to

control the '*' which means required...I can point you to the code that

controls and defines the '*' but if you read carefully and look at the code

you should be able to change it.

1rst path/program \catalog\Includes\languages\

english.php

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

you can change '*' to ''

 

2nd path/program \catalog\templetes\content

create_account.tpl.php

(tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td>

 

the test for empty field tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT)

and class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?> need to be removed...

This same form of code needs to be added to the sub field to make it a

required entry...

do a scan for this ENTRY_TELEPHONE_NUMBER_TEXT and you should find all the programs that uses the field...

 

The other field will be ENTRY_SUBURB_TEXT do a scan also on this to find all the programs using this field....This sould get you started

Link to comment
Share on other sites

Thanks dittones :)

 

All that looks very familar I just have no idea what to change..well I didn't anyway...I DO NOW :)

 

Also when you say to do a scan on the file...what how do i do that? Im using Cpanel and I think Version 2.2 Oscommerce.

 

Thanks Again

 

You will have to do some code changes...there is no database setting to

control the '*' which means required...I can point you to the code that

controls and defines the '*' but if you read carefully and look at the code

you should be able to change it.

1rst  path/program  \catalog\Includes\languages\

    english.php

      define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

you can change '*' to ''

   

2nd path/program \catalog\templetes\content

    create_account.tpl.php

      (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td>

 

the test for empty field tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT)

and class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?> need to be removed...

This same form of code needs to be added to the sub field to make it a

required entry...

do a scan for this ENTRY_TELEPHONE_NUMBER_TEXT and you should find all the programs that uses the field...

 

The other field will be ENTRY_SUBURB_TEXT do a scan also on this to find all the programs using this field....This sould get you started

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...