- Posts: 25
- Home
- Forum
- Community Forum
- Report bugs
[Solved] Reserved room details in PDF invoice plugin
- fabrikastyle
- Topic Author
- Offline
Less
More
9 years 5 months ago - 9 years 3 months ago #4930
by fabrikastyle
[Solved] Reserved room details in PDF invoice plugin was created 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!
<?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 3 months ago by fabrikastyle.
Please Log in or Create an account to join the conversation.
- vietvh
- Offline
Less
More
- Posts: 1553
9 years 5 months ago #4933
by vietvh
Replied by vietvh on topic [Solved] Reserved room details in PDF invoice plugin
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,
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.
- fabrikastyle
- Topic Author
- Offline
Less
More
- Posts: 25
9 years 5 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!!
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.
- vietvh
- Offline
Less
More
- Posts: 1553
9 years 5 months ago #4941
by vietvh
Replied by vietvh on topic [Solved] Reserved room details in PDF invoice plugin
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,
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.
- fabrikastyle
- Topic Author
- Offline
Less
More
- Posts: 25
9 years 5 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