• Register
Plug-in Tutorial Build an EC-CUBE plug-in

Top Commentators

114

1

EC Mike

SHOGUNSHOGUN

32

2

hrbabu

SAMURAISAMURAI

29

3

Sumant Jha

SAMURAISAMURAI

29

4

justcubed

SAMURAISAMURAI

21

5

Ashok Kafle

SAMURAISAMURAI

21

6

shahith

SAMURAISAMURAI

14

7

Jeemusu

KABUKIKABUKI

14

8

Yangsin

KABUKIKABUKI

9

9

Zaw Hlaing Bwar

GEISYAGEISYA

8

10

Fei Liu

GEISYAGEISYA

Ranking Key

  • FUJISANFUJISAN1,000+ posts
  • SAKURASAKURA500+ posts
  • SHOGUNSHOGUN100+ posts
  • NINJYANINJYA50+ posts
  • SAMURAISAMURAI20+ posts
  • KABUKIKABUKI10+ posts
  • GEISYAGEISYALess than 10 posts

Field Checking of register page

+1 vote

How to remove these checking?

* Do not include spaces, tabs or line breaks in Name (last name). 

* Postal code is blank.

* Telephone number 2 and 3 is blank.

asked 2013-03-02 by Registered user (320 points) KABUKIKABUKI

1 Answer

+1 vote

* Do not include spaces, tabs or line breaks in Name (last name).

Find '$objFormParam->addParam(t('c_Name (last name)_01'), 'name01', STEXT_LEN, 'aKV', array('EXIST_CHECK', 'NO_SPTAB', 'SPTAB_CHECK' ,'MAX_LENGTH_CHECK'));' and remove ‘NO_SPTAB’,‘SPTAB_CHECK’.

* Postal code is blank. 

Find  "$objFormParam->addParam(t('c_Postal code_01'), 'zipcode', ZIPCODE_LEN, 'n', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'NUM_CHECK'));" and remove 'EXIST_CHECK' .

* Telephone number 2 and 3 is blank.

 1.Find '  $objFormParam->addParam(t('c_Telephone number 2_01'), 'tel02', TEL_ITEM_LEN, 'n', array('EXIST_CHECK', 'SPTAB_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));' and '$objFormParam->addParam(t('c_Telephone number 3_01'), 'tel03', TEL_ITEM_LEN, 'n', array('EXIST_CHECK', 'SPTAB_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));',then remove 'EXIST_CHECK'

2.It is not enough until comment out '$objErr->doFunc(array(t('c_Telephone number_01'), 'tel01', 'tel02', 'tel03'),array('TEL_CHECK'));' .

ALL these method are not only in one flie ,you should search them in files,and remove them.

good luck!

 

answered 2013-03-03 by Fei Liu (660 points) GEISYAGEISYA 1 flag
I think the Postal code should not be required. In England ,Hongkong,Vietnam and etc. ,People do not use  Postal code or  use both number and  alphabet . I hope it will be changed in the next version.
Thnkx  Fei Liu, I think so, too.
I posted EC-CUBE Developers Trac, your voice.
http://svn.ec-cube.net/open_trac/ticket/2172
We are looking into it. For some areas of the world it is important to lock the field.  Thank you!
Hi Fei Liu,
Last week, we released a new version of EC-CUBE that handles the postal code issue. It is no longer required.

Please download and use EC-CUBE 2.12.en-p2.
...