Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Personnummer" swedish social security number


apman

Recommended Posts

Follow the directions

----------------------------

 

I have kept some of the install inctructions in swedish:

 

För att få svenska personnummer att fungera smärtfritt behövs följande ändringar göras:

Det två första ändringaran är bara för att få "infotexter" i stället för "label"-texter.

I "catalog\includes\langues\[languages].php" lägg till före avslutande "?>" följande

define('ENTRY_PERSONNUMMER', 'Personnr:');

define('ENTRY_PERSONNUMMER_TEXT', '* (yyyymmdd-XXXX)');

define('ENTRY_PERSONNUMMER_ERROR', 'Your \'personnr\' must contain a minimum of ' . ENTRY_PERSONNUMMER_MIN_LENGTH . ' figures');

 

för catalog\includes\langues\svenska.php blir det:

define('ENTRY_PERSONNUMMER', 'Personnr:');

define('ENTRY_PERSONNUMMER_TEXT', '* (ååååmmdd-XXXX)');

define('ENTRY_PERSONNUMMER_ERROR', '\'personnr\' skall ha minst ' . ENTRY_PERSONNUMMER_MIN_LENGTH . ' siffror.');

//-------------------------------------------

 

You missed the last line

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Lovely, some progress at least:) Now when i register an account i get an error message that says that i need at least 13 figures in my ssn. ssn's in Sweden are 12 figures and i'd guess the last 13th figure is /0 because of MySQL right? it works out if i set the minimum figures required to 0 but if i set it too 1 it doesn't work:(

Link to comment
Share on other sites

The SQL included in the latest download sets the length at 13.

 

Looks as if that's incorrect.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...