Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Alter Create Account Page


Get-Wireless 2

Recommended Posts

Posted

I would like to edit the create account page.

What I would like to do is change the order of the address fields and also make the DOB field so its not mandatory.

 

My current address field looks like:

Street

county

post code

city

country

 

I would like it to be

Street

city

county

post code

country

 

Thanks in advance :D

Posted

Open create_account.php in a text editor and (carefully - read the code, its in English) cut and paste the relevant sections in the order you require :)

 

Sonia

Posted
Open create_account.php in a text editor and (carefully - read the code, its in English) cut and paste the relevant sections in the order you require :)

 

Sonia

 

Thank You very much Sonia,

 

Can anyone now help me stop the BOD field being set as mandatory field please?

Posted

Go into admin "configuration", "customer details" and set "date of birth" to 'false' :)

 

 

Sonia

Posted
Go into admin "configuration", "customer details" and set "date of birth" to 'false' :)

Sonia

 

 

That just removes the whole entry. I would still like the DOB field to be there just not a mandatory field.

Like the company details one.

 

Regards

Shaun

Posted

1) Go into catalog/create_account.php.

 

Find the field you wanna make not required. Like if it's the DOB, you'll see a field similar to this:

<td class="main"><?php echo tep_draw_input_field('dob') . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>

 

The ENTRY_DATE_OF_BIRTH_TEXT is pointing to catalog/includes/languages/english.php, where you'll find this:

define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');

 

Get rid of the *.

 

This will only take care of that red mark.

 

2) Now you have to go into your host's cpanel, phpmyadmin, and go into your database. In the table "Customers", find customers_dob

 

Set this field to NULL / NO. This will make it so it's not required.

 

Good luck.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Posted
1) Go into catalog/create_account.php.

 

Find the field you wanna make not required. Like if it's the DOB, you'll see a field similar to this:

<td class="main"><?php echo tep_draw_input_field('dob') . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>

 

The ENTRY_DATE_OF_BIRTH_TEXT is pointing to catalog/includes/languages/english.php, where you'll find this:

define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');

 

Get rid of the *.

 

This will only take care of that red mark.

 

2) Now you have to go into your host's cpanel, phpmyadmin, and go into your database. In the table "Customers", find customers_dob

 

Set this field to NULL / NO. This will make it so it's not required.

 

Good luck.

 

Thanks for taking the time to help, However I am sure there is just a php file I can edit to stop it being a required field. I am sure I did via a php file a long time ago?

Posted

I know OSC pretty well. I'm telling you ... the only way I have ever heard of making a field not required is to alter the database in the way I suggested. You can also go to your admin tool and set the minimum value to 0.

 

Read this: http://www.oscommerce.com/forums/index.php?showtopic=58527

 

Good luck.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Archived

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

×
×
  • Create New...