Change Title in the confirmation email

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #142971

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

I use HikaShop business - and I am not satisfied with the salutation in the confirmation email. The program specifies that the customer is addressed by their first name. This is not suitable for German customers. Where can I change that the customer with Mr / Ms ... is addressed?

Thanks for your help

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #142982

Hi,

If you use HikaShop business, you can edit the email content in the HikaShop backend (System > Emails).
At this moment, you will be able to change the value used in the email for the customer appellation.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #143006

I have already found out by now, but how do I find the appropriate place in the file, and how is the code for the full name?

Thanks!

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #143020

Hi,

If you can provide us the HikaShop version number you use, it will be easier to explain it to you.
The email system has evolved in the last releases so depending your version, it could be different.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #143029

Hi, Jerome
The versions number is Hikashop Business: 2.2.3

thanks
Hansgünter

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #143036

So you need to edit the preload area of your email and change the line:
'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', $customer_name),

to something like that:
'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', $data->cart->billing_address->address_lastname),

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

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #143189

Hello Jerome!
Thanks for your reply. Sorry, but I cannot find in the preload area

'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', $customer_name),

but in the text area. So Ihave it change this:

'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', $data->cart->billing_address->address_lastname).

Since I was not sure which is the correct e-mail form, I have changed it in the following, but unfortunately this did not lead to success
ORDER_CREATION_NOTIFICATION_SUBJECT
ORDER_NOTIFICATION_SUBJECTot lead to success

Thanks for your help!

Hansguenter

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #143280

Hi,

It's not in the text area but in the preload area that you need to do the change or you won't see any change.
The code has to be in the preload area. I just checked and it is there in the 2.2.3 version.

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

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #143290

Hello,
thanks for your help. Now I have found it, and it worked.
But now is only the last name there (without Mr. ). It should be supplemented with Mr /Mrs. or " hello, first name and last name.
Is that possible?

Thanks
Hansgünter

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #143354

Then you can do like that instead:
'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', $data->cart->billing_address->address_title.' '.$data->cart->billing_address->address_lastname).

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

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #144250

Hello Nicolas!
Thanks for your help.
It worked well - Title and last name be named in the salutation. However, the title appears only in English, although the title in the language file is translated correctly.

Why is that?

Thanks
Hansguenter

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #144281

Then you can do like that instead:
'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', JText::_(strtoupper($data->cart->billing_address->address_title)).' '.$data->cart->billing_address->address_lastname).

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

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #144342

Hello Nicolas!
Thanks! It has unfortunately not changed - only from Mr was MR. The question is why the German translation is not taken over by Mr to "Herr"!

Thanks

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

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #144366

Hi,
Can you make sure that your front-end and back-end default language is set to German ? through "Control Panel->Language Manager"

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

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #144429

Yes, I have registered as German standard - in the backend and in the frontend!

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

  • Posts: 2334
  • Thank you received: 403
10 years 9 months ago #144573

Hi there,

You should check that the translation for HI_CUSTOMER actually exists and is set to the right value in your language file.

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

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #144634

Hello!
The problem is not in the language file that is currently - the translation for Mr. is present, but the title is not translated!

Hansguenter

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 8 months ago #147423

Hi,

The translations in the language file are like that:

HIKA_TITLE_MR
$data->cart->billing_address->address_title will only contain "MR" or "MS", so for the translation the best is to add the begin of the key.
JText::_('HIKA_TITLE_' . strtoupper($data->cart->billing_address->address_title))
It should be better, I think :)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.123 seconds
Powered by Kunena Forum