VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: AlfredJK on November 29, 2024, 17:02:52 PM

Title: Modification delivery note
Post by: AlfredJK on November 29, 2024, 17:02:52 PM
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.
Title: Re: Modification delivery note
Post by: PRO on November 29, 2024, 18:07:04 PM
WHERE?  the email? user order? backend?

Title: Re: Modification delivery note
Post by: AlfredJK on November 29, 2024, 18:30:42 PM
In the backend where you create the delivery PDF note for an order
Title: Re: Modification delivery note
Post by: AlfredJK on December 02, 2024, 19:43:11 PM
Is there anyone who can answer my question? Is more information needed?
Title: Re: Modification delivery note
Post by: AlfredJK on December 03, 2024, 19:47:47 PM
no one??
Title: Re: Modification delivery note
Post by: Jumbo! on December 03, 2024, 20:52:49 PM
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.
Title: Re: Modification delivery note
Post by: AlfredJK on December 04, 2024, 18:42:24 PM
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!
Title: Re: Modification delivery note
Post by: PRO on December 10, 2024, 17:15:44 PM
He gave you the front end file. I do not knwo the backend file to edit, I dont use that feature