×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Get a middle name into MAT_BOOKING_NAME

Get a middle name into MAT_BOOKING_NAME 9 years 8 months ago #30573

  • Ralph
  • Ralph's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi Yves,

I have been looking, but couldn't find it. Where can I make sure that a middle name (as an extra booking field) can be added to the code MAT_BOOKING_NAME? Would be very useful for my invoices and e-mails.

Regards Ralph

Get a middle name into MAT_BOOKING_NAME 9 years 8 months ago #30576

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Ralph,

no that's hardcoded (where should Matukio know that from?) - what you can do is using

MAT_BOOKING_FIRSTNAME MAT_BOOKING_MIDDLENAME MAT_BOOKING_LASTNAME

instead of

MAT_BOOKING_NAME

(wille give the same result + the middle name).

Kind regards,

Yves

Get a middle name into MAT_BOOKING_NAME 9 years 8 months ago #30579

  • Ralph
  • Ralph's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi Yves,
It's something typically Dutch, like the German 'von' version. I will use the option you just gave. Thanks.

best wishes
Ralph

Get a middle name into MAT_BOOKING_NAME 9 years 8 months ago #30602

  • Ralph
  • Ralph's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi Yves,

I am trying to get MAT_BOOKING_MIDDLENAME into the invoice and e-mail layout. Unfortunately, I don't get it to work. The booking field is named COM_MATUKIO_FIELDS_MIDDLENAME but I also tried to make it MAT_BOOKING_MIDDLENAME. But still, it only show the code itself, but not the real middlename.
What do I do wrong. All other things work perfect.

Hope you can help me again.

Best wishes, Ralph

Get a middle name into MAT_BOOKING_NAME 9 years 8 months ago #30603

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Ralph,

why did you name (we are talking about the fieldname - not the label do we? Like firstname for the COM_MATUKIO_FIELDS_FIRSTNAME field) it COM_MATUKIO_FIELDS_MIDDLENAME?

The field-name for that would be:

MAT_BOOKING_ COM_MATUKIO_FIELDS_MIDDLENAME

It's always MAT_BOOKING_ + FIELDNAME

e.g. just set the fieldname to middlename

and then use:

MAT_BOOKING_MIDDLENAME in the template :-)

Yves
  • Page:
  • 1
Time to create page: 0.098 seconds