osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Post Code not required

This is a discussion on Post Code not required within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello, I do not need the Post Code field to be required, as I am based in Ireland and Post ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-01-2003, 07:39 AM
Lurker
 
Join Date: Jan 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
danny
Default Post Code not required

Hello,
I do not need the Post Code field to be required, as I am based in Ireland and Post Codes are only used in some areas. Anybody know how to disable the javascript error for the Post Code field? I know I can change the field definition on the db via phpMyAdmin, but I'm not sure how to get rid of the javascript error message.
Any help would be greatly appreciated.

Danny O'Grady
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-03-2003, 08:37 AM
Member
 
Join Date: Nov 2002
Location: Pennsylvania
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
|3ackdraft
Default

Danny,

To remove the javascript alert for the Post Code.

Open 'includes/form_check.js.php'

around line 111 you will see this:
Code:
  if (document.account_edit.elements['postcode'].type != "hidden") {
    if (postcode == '' || postcode.length < <?php echo ENTRY_POSTCODE_MIN_LENGTH; ?>) {
      error_message = error_message + "<?php echo JS_POST_CODE; ?>";
      error = 1;
    }
  }
just remove this section.

hth
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-03-2003, 11:14 PM
Lurker
 
Join Date: Jan 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
danny
Default

Mike,
Thank you so much for your help, its well appreciated.

Regards
Danny
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Help required - product is a code stored in a database melfalcon15 osCommerce 2.2 Modification Help 0 09-29-2005 09:33 AM
Please I need help with post install an error MeGaHeRtZ osCommerce 2.2 Installation Help 1 06-26-2003 09:22 AM
Post Installation Erros harken osCommerce 2.2 Installation Help 1 02-20-2003 07:47 AM


All times are GMT -8. The time now is 10:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax