News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Modification delivery note

Started by AlfredJK, November 29, 2024, 17:02:52 PM

Previous topic - Next topic

AlfredJK

Hi,

I have installed version VM 4.2.18 11050.  I would like to add an image at the end of the delivery note but despite a long search I cannot find the place where I could arrange that.

Can anyone tell me where I can do the modification?

Thanks in advance for the response.

PRO

WHERE?  the email? user order? backend?


AlfredJK

#2
In the backend where you create the delivery PDF note for an order

AlfredJK

Is there anyone who can answer my question? Is more information needed?


Jumbo!

You need to override and customise this layout file - components/com_virtuemart/views/invoice/tmpl/invoice.php

This layout file is used for invoices and delivery notes. Using the following logic, you can place your custom code for delivery notes in the layout.

<?php if ($this->doctype === 'deliverynote') : ?>
    Your custom codes goes here
<?php endif; ?>

The changes will not be reflected on the delivery notes you generated earlier. You must generate new delivery notes to see the changes.

AlfredJK

Hi Jumbo,

thank you for replying! Unfortunately no change in the situation.

I moved the invoice.php file from components/com_virtuemart/views/invoice/tmpl/invoice.php to my templates directory (path: templates/<template>/html/com_virtuemart/invoice
Placed debug statements in that file to see if that's where it lands when I create a delivery note from the backend. Unfortunately, I don't land in that file. Renamed it and renamed invoice.php in the virtuemart components root as well. The delivery note is just generating.

Maybe I'm doing something really stupid, but I don't see it.

Do you have any additional ideas?

Thanks in advance!