Editing Invoice Email & PDF

  • Greg Hoyle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 9 months ago #101067 by Greg Hoyle
Editing Invoice Email & PDF was created by Greg Hoyle
Hi,

I can change some items in the invoice email in Configuration / Invoice Setting"

However, some of the items I want to edit are placed in the email using the [DETAILS] tag.

My question is, how can I modify some of these details to display or not display ?

Some I want to remove eg: Country, Upfront

Some I want to add eg: Custom Fields

Normally, I suppose I would do this using component template overrides, but I have read on this forum, that OS Services Bookings does NOT support such overrides ?

Thanks
Greg

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

More
6 years 9 months ago #101069 by Mr. Dam
Replied by Mr. Dam on topic Editing Invoice Email & PDF
Hi,
As you know, one order can contain more than one order items. So we can't add various tags into the Invoice content. Instead of using various tags, we use one main tag: [DETAILS]. So when OS Services Booking process the invoice, it will collect order information to replace that tag. If you want to make the change on the order details. You can modify function: generateOrderPdf in file: root > administrator > components > com_osservicesbooking > helpers > helper.php
Thanks
Dam

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

  • Greg Hoyle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 9 months ago - 6 years 9 months ago #101071 by Greg Hoyle
Replied by Greg Hoyle on topic Editing Invoice Email & PDF
Dam,

Thanks for your reply.

I have now managed to remove what I don't want by editing > administrator > components > com_osservicesbooking > helpers > helper.php

Can you please tell me how I can add some data from Custom Fields into this please.

I believe it will by using something like this:( Which is the code for "City" ) within helper.php
But I want to add data from a custom field please.
Code:
$html .= '<tr>'; $html .= '<td class="key">' . JText::_ ( 'OS_CITY' ) . '</td>'; $html .= '<td>' . $row->order_city . '</td>'; $html .= '</tr>';

There is some very important info in one of my custom fields that MUST be able to be placed into the Invoice.

Thanks.

Greg
Last edit: 6 years 9 months ago by Greg Hoyle.

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

  • Greg Hoyle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 9 months ago #101145 by Greg Hoyle
Replied by Greg Hoyle on topic Editing Invoice Email & PDF
Hi,
Can I politely ask for a reply to this please ?


Thanks
Greg

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

  • Greg Hoyle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 9 months ago #101242 by Greg Hoyle
Replied by Greg Hoyle on topic Editing Invoice Email & PDF
This has been solved.

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

Moderators: Mr. Dam