Errors Values Registration Form only in English

  • Posts: 66
  • Thank you received: 3
12 years 3 weeks ago #71042

At the front end during check out and when fields are left empty I get only English error messages like "Name" in this example where it should be "Naam"
These values are not stored in the Dutch Language file I believe (at least I have not found them). How to get them all correctly in Dutch?

Attachments:
Last edit: 12 years 3 weeks ago by didero.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 3 weeks ago #71356

Hi,

It has been corrected on our end and will be available in the next release.

You can edit it in the file: "yourSite\components\com_hikashop\views\user\view.html.php".
and add the following code in the function "registration()":

		foreach($main as $field){
			$this->requiredFields['register'][] = $field;
			if($field=='name')$field = 'HIKA_USER_NAME';
			if($field=='username')$field = 'HIKA_USERNAME';
			if($field=='email')$field = 'HIKA_EMAIL';
			if($field=='password')$field = 'HIKA_PASSWORD';
			if($field=='password2')$field = 'HIKA_PASSWORD2';
			$this->validMessages['register'][] = addslashes(JText::sprintf('FIELD_VALID',$fieldsClass->trans($field)));
		}

Just before:
$fieldsClass->addJS($this->requiredFields,$this->validMessages,array('register','user','address'));

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 3
12 years 3 weeks ago #71609

Xavier, thanks for your help but unfortunately that doesn't work. I still get the same error (tested with different browsers).

1) If I turn off JavaScript in Firefox I get the correct warning/error message in Dutch. But then at the top of the page for the second field Username (Gebruikersnaam).





2) If I rename the hikashop.js file (in media/com_hikashop/js/) and open the shop in IE I get for the first field (if left blank) the partial English warning "Vul aub een waarde voor name in", which should be "Vul aub een waarde voor Naam in".

For the second field "Gebruikersnaam" (username in English) the warning message appears again correct in Dutch at the top of the page.

So I guess these fields (name,username etc.) are (partially) checked from within the Hikashop Javascript file?
Furthermore I see that in the Dutch language file the variable %s is filled with the English word name.

;field interface
FIELD_VALID="Vul aub een waarde voor %s in"

To overcome this for now I could change it in a general Warning Message in the language file (?) if a field is left blank but when I look at another shop I've done in the past with an older version of Hikashop I don't have these errors.

ADDITIONAL:
Now I'm checking all fields it seems that the fourth field (email-confirmation) is not checked at all when left blank.
Changing the Warning message in the language file will cause the other fields not have the right error message when left blank. Will leave it for what it is right now.

Attachments:
Last edit: 12 years 3 weeks ago by didero.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 3 weeks ago #71763

Hi,

This problem has been corrected and the correction will be available in the next release of HikaShop, which will come before the end of the month.

The following user(s) said Thank You: didero

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 3
12 years 3 weeks ago #71866

Thank you for your most valued support. This is my second Hikashop (Business Edition) and is almost running. The owners are filling the shop now.
I might come back with one or two suggestions/questions.

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum