Page 1 of 1
S05e03 - Invoice comments QUESTIONS/SUPPORT
Posted: Wed Jan 05, 2022 7:17 am
by admin
Addon:
Allows shopowner to easily add a comment onto Invoice.
Download:
viewtopic.php?f=28&t=1073
--
Questions / Comments / Concerns
Re: S05e03 - Invoice comments QUESTIONS/SUPPORT
Posted: Mon Jan 13, 2025 11:08 am
by martindavinci
Hi Admin,
Can I use module S05e03 in Phoenixcart 1.0.8.19? It works, but I can't get the text in the footer of my invoice. Is there a “workaround” for that? I would really appreciate the answer.
Best regards,
Martin van den Houdt (aka martindavinci)
php 8.0; PC 1.0.8.19;
Re: S05e03 - Invoice comments QUESTIONS/SUPPORT
Posted: Mon Jan 13, 2025 11:29 am
by heatherbell
martindavinci wrote: ↑Mon Jan 13, 2025 11:08 am
Can I use module S05e03 in Phoenixcart 1.0.8.19?
Just tested on a 1.0.8.19 and works as expected.
Exactly what is output on invoice:
Screenshot 2025-01-13 112750.png
Unless you are expecting this Addon to do what this Addon does:
s08e03 - Comments on Invoice
Re: S05e03 - Invoice comments QUESTIONS/SUPPORT
Posted: Mon Jan 13, 2025 1:17 pm
by martindavinci
Hi Heatherbell,
I have it the same way in admin when showing the invoice. But when I want to print it (seems to me standard with customers) the notification is in the middle of the invoice (vertical).
It seems to me that it should actually be in the footer of the -printed- invoice.
Maybe this is a php difference?
Re: S05e03 - Invoice comments QUESTIONS/SUPPORT
Posted: Mon Jan 13, 2025 2:31 pm
by heatherbell
martindavinci wrote: ↑Mon Jan 13, 2025 1:17 pmBut when I want to print it (seems to me standard with customers) the notification is in the middle of the invoice (vertical).
No idea why that occurs for you but for me, CTRL+P gives this:
Screenshot 2025-01-14 061704.png
Re: S05e03 - Invoice comments QUESTIONS/SUPPORT
Posted: Mon Jan 13, 2025 3:24 pm
by martindavinci
Herewith the printout as I get it out of the printer. As you can see the orientation is portrait, and the text has been changed.
Beheer.png-1.png
Re: S05e03 - Invoice comments QUESTIONS/SUPPORT
Posted: Mon Jan 13, 2025 4:38 pm
by heatherbell
martindavinci wrote: ↑Mon Jan 13, 2025 3:24 pm
Herewith the printout as I get it out of the printer. As you can see the orientation is portrait, and the text has been changed.
So that looks as expected. It is not going to be in the 'footer' of the printed page, that is not what the addon does, it appends below whatever output is already there. Consider when the invoice table could be extending to 2 pages.
Re: S05e03 - Invoice comments QUESTIONS/SUPPORT
Posted: Wed Jan 15, 2025 1:07 pm
by martindavinci
I did find another approach that does do what I desire. For this I have put/changed the following lines at the bottom of the invoice.php: (from line 101)
</tbody>
</table>
<?= $admin_hooks->cat('extraComments') ?>
<div class=“footer_invoice”><p style=“text-align:center”>SNS account no. 1111111 in the name of Atelier Davinci, IBAN NL22 SNSB 3333333. -- BETALINGEN BINNEN 14 DAGEN </br>
Al onze prijsopgaven, transacties en leveringen geschieden volgens onze Algemene Voorwaarden. Chamber of Commerce number 888888.</p>
</div>
<!-- body_text_eof //-->
<br />
</body>
</html>
<?php
require 'includes/template_bottom.php';
require 'includes/application_bottom.php';
?>
How I arrived at these rules I don't remember, it's been too long, but all credit to the coder.
It works, a line comes up at the bottom of the invoice which is then printable as well.
To possibly make a module of it I prefer to leave to others if there is interest.
I hope this will help others as well, kind regards,
Martin
Translated with DeepL.com (free version)