[Solved] Reserved room details in PDF invoice plugin

More
9 years 4 months ago - 9 years 1 month ago #4930 by fabrikastyle
Hi, is it possible to include in PDF invoice (/plugins/solidres/invoice/layouts/invoices/invoice_customer_pdf.php) the information with reserved room details, like in customer email template

<?php foreach($displayData->reserved_room_details as $room) : ?>
<?php echo $room->room_type_name ?>
<?php endforeach; ?>

I have empty field when I do something like that.
Thank you!
Last edit: 9 years 1 month ago by fabrikastyle.

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

More
9 years 4 months ago #4933 by vietvh
Hi,

For better performance when generating invoice, we only retrieve a minimum set of reservation data. You can see in the below file

/plugins/solidres/invoice/invoice.php (function onSolidresGenerateInvoice)

If you want to have full reservation details in invoice, you need to edit that function and use JModel to query instead of the current JTable.

You can refer to this file as an example:

/components/com_solidres/controllers/reservation.php (function sendEmail)

Regards,
The following user(s) said Thank You: fabrikastyle

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

More
9 years 4 months ago #4939 by fabrikastyle
Replied by fabrikastyle on topic [Solved] Reserved room details in PDF invoice plugin
Thanks for the information! but unfortunately, I can not understand what should i change :(
Could you please specify what to replace. I am sure that there are a few lines, but I'm confused.

Thank you!!

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

More
9 years 4 months ago #4941 by vietvh
Hi,

It is not a small modification and it requires PHP experience, I'd like to suggest you to:

1) Post it as a new feature request in our forum
2) Hire a Joomla developer to do that for you based on our instruction above
3) Request our Custom Development service

Regards,

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

More
9 years 4 months ago #4945 by fabrikastyle
Replied by fabrikastyle on topic [Solved] Reserved room details in PDF invoice plugin
Ok, Thank you!

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

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?