Denna modul gör så att kunderna måste ange sitt personnummer, funkar ungefär som date of birth, Fast med svenskt personnummer. Inställningar fixas i admin panelen som DOB. Detta är en BETA verision har inte testat den på en live shop ännu men det borde inte vara nån större skillnad.
THIS IS BETA AND ONLY IN SWEDISH.
Legend: 
Download

Report
OK Folks, this is a new update. I have had several people come to me and say the contribution is a little difficult to install. I would agree with this. So I have changed the install instructions, put everything into an 'install.txt' file instead of you having to use a compare programme like winmerge.
Good luck!
I have noticed 2 important errors in the admin/customers.php file, dating back to quite a while ago. These should be fixed, especially if you are using the SPPC contribution.
Read the attached file. Not a full contribution.
forget the last upload, there was an error in the account_edit.php file.
Take this one instead!
I have not included the 'Om personnumer existerar' contribution of 6th May 2006, as this doesnt seem to work.
This version simply enhances the personnr contribution, so that on the create_account.php screeen the customer can easily enter their details. Its a drop-down menu for year, month and day, plus a text box for the four last numbers (fyra siffror).
I am sorry this is not in swedish, but I am an english guy. I live here in Sweden and have a shop here, but I am terrible at writing swedish :-(.
A screenshot is included!!!
Paketet innehåller hela Svenska Personnummer v1.0 BETA
samt Om personnummer existerar.
Om personnummer existerar kollar om det angivna person-
numret existerar i databasen. Om det gör det så kan
inte kontot skapas.
OBS!
Denna addon är inte testad live.
Istället för att förklara för kuden hur man ska ange personnummret ex (ÅÅMMDDXXXX) så kändes det bättre att formatera om det som kunden skriver in.
--
I catalog/create_account.php runt rad 38
Byt ut:
if (ACCOUNT_PERSONNUMMER == 'true') $personnummer = tep_db_prepare_input($HTTP_POST_VARS['personnummer']);
Med:
if (ACCOUNT_PERSONNUMMER == 'true') {
if (strlen(tep_db_prepare_input($HTTP_POST_VARS['personnummer'])) > 10) {
$personnummer = str_replace(' ','',str_replace('-','',tep_db_prepare_input($HTTP_POST_VARS['personnummer'])));
if (strlen($personnummer) > 10) $personnummer = ltrim($personnummer,'19');
}
else {
$personnummer = tep_db_prepare_input($HTTP_POST_VARS['personnummer']);
}
}
*****
Först kontrolleras om personnummret har fler än 10 tecken. i sånt fall plockas alla bindestreck och mellanslag bort.
Om resultatet fortfarande har mer än 10 tecken plockas de första "19" bort.
Det är inte idiotsäkert, men en bit på vägen..
Zip is empty
Har uppdaterat bl.a. SQL och vissa anda saker. Beskrivs i update.txt
"Paketet" bör vara komplett jmfr med tidigare.
Använd denna sql fil till svenska person nummer. Tack till redbridge.se
There is a bug in the sql file, the ´true´ and ´false´ should be 'true' and 'false' for displaying the personal number.
Denna modul gör så att kunderna måste ange sitt personnummer, funkar ungefär som date of birth, Fast med svenskt personnummer. Inställningar fixas i admin panelen som DOB. Detta är en BETA verision har inte testat den på en live shop ännu men det borde inte vara nån större skillnad.
THIS IS BETA AND ONLY IN SWEDISH.