Adding more salutations and Name and Surname

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 month 2 weeks ago #165381 by Wynand Louw
Good day Dam

I need to add more salutations to my list of salutations. Where will I be able to add the additional ones without it being over written by updates?

I also need to change the Name to Name and Surname. In South Africa, they only give their name and not their full name which is also different from Name and Surname. 

I have created an additional field for Surname, but that displays under other information. I need it next to the Name field or have to change the Name field to display Name and Surname.

Thanks

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

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 month 2 weeks ago #165382 by Wynand Louw
Replied by Wynand Louw on topic Adding more salutations and Name and Surname
I only now see the update. Thanks for the First name and Surname field.

Would still like to add more Salutations.

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

More
1 month 2 weeks ago #165391 by Mr. Dam
Replied by Mr. Dam on topic Adding more salutations and Name and Surname
Hi Wynand,
Let me know the salutation options that you want to add?
By the way, you want to change First Name and Last Name to Name and Surname, right?
Thanks
Dam

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

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 month 1 week ago #165404 by Wynand Louw
Replied by Wynand Louw on topic Adding more salutations and Name and Surname
I asked for the Name and Surname before I saw afterwards that is was addressed with the update.

List of Titles:

Adv
Br
Fr
Mr
Mrs
Ms
Miss
Dr
Ds
Elder
Pr
Prof
Rev
Sr
Bishop

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

More
1 month 1 week ago #165405 by Mr. Dam
Replied by Mr. Dam on topic Adding more salutations and Name and Surname
Hi Wynand,
Ohh, there are a lot of salutation you want to add. Actually, you can modify source code of OS Services Booking to add those options. But it will be overridden when you install future OSB version. Are you ok to go ahead?
Thanks
Dam

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

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 month 1 week ago #165406 by Wynand Louw
Replied by Wynand Louw on topic Adding more salutations and Name and Surname
Yes, I can do that. I will check that specific file and compare it after the update.

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

More
1 month 1 week ago #165502 by Mr. Dam
Replied by Mr. Dam on topic Adding more salutations and Name and Surname
Hi Wynand,
OK, you can modify file: root -> components -> com_osservicesbooking -> classes -> booking.php
and
root -> administrator -> components -> com_osservicesbooking -> classes -> orders.php
Code:
$optionArr = []; $optionArr[] = HTMLHelper::_('select.option','',Text::_('OS_SALUTATION')); $optionArr[] = HTMLHelper::_('select.option','OS_MR',Text::_('OS_MR')); $optionArr[] = HTMLHelper::_('select.option','OS_MS',Text::_('OS_MS')); $optionArr[] = HTMLHelper::_('select.option','OS_MRS',Text::_('OS_MRS')); $lists['salutation'] = HTMLHelper::_('select.genericlist',$optionArr,'order_salutation','class="'.$mapClass['input-large'].' form-select" ','value','text');

Thanks
Dam
The following user(s) said Thank You: Wynand Louw

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

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 month 18 hours ago #165764 by Wynand Louw
Replied by Wynand Louw on topic Adding more salutations and Name and Surname
Hello Dam

I see on the emails the client receives when they make a booking, that the salutation is included twice. (see attachment).

For example:
Mr.Mr, Dummy


Also in the Admin email received. 

I used Dear {Name} Which gives the result as mentioned above.

So it must somehow incorporate that in the {Name} programming as Mr.Mr. Dummy
 

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

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 weeks 2 days ago - 4 weeks 2 days ago #165794 by Wynand Louw
Replied by Wynand Louw on topic Adding more salutations and Name and Surname
Hello Dam

Since adding the latest customer First Name field only the customer Salutation and Surname are displayed everywhere, even the emails and the invoice even when Form Fileds Show Salutation is switched off in Settings. If it is switched on it indicates Mr.Mr. plus Surname. If the salutation is switched off it indicates Mr. and Surname. Does not matter if it is male or female. I think the new field First Name is not Pulling through because the wrong code was used.

When the client adds a First Name on the front end, it is not saved, when I as admin add a First Name at the Backend it does not save. 

When I look in the tables via PHPAdmin, the First Name field does not exist. 
 
Last edit: 4 weeks 2 days ago by Wynand Louw.

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

Moderators: Mr. Dam