own edit/view for delivery note

  • Posts: 103
  • Thank you received: 8
  • Hikashop Business
17 hours 48 minutes ago #369699

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.1
-- PHP version -- : 8.4

Hi!

I am currently trying to change some aspects of the visual rendering of the delivery note. My goal is to make a few changes: the position of the address, the position and size of the logo image, information directly after the product table, and so on. It is extremely complicated to make changes without affecting the standard display of the invoice (with prices). I find it very inconvenient and risky that both displays are generated from a shared view. Could you please provide a separate view for the delivery note? But, if I'm wrong, please correct me - I assume that the view "invoice.php" is the right view for the delivery note (shipping invoice).

Cheers
Rusty

Last edit: 14 hours 57 minutes ago by Rusty.

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

  • Posts: 84810
  • Thank you received: 13809
  • MODERATOR
10 hours 49 minutes ago #369701

Hi,

You can do that.
First, make an override for the view via the menu Display>Views.
I suppose we're talking about the delivery note available by HikaShop without the PDF invoice plugin installed.
In that case, it's the view file order / invoice.
It will generate a file administrator/atum/html/com_hikashop/order/invoice.php for the override.
Copy this file to the same folder with another name via FTP.
For example administrator/atum/html/com_hikashop/order/delivery_note.php
Then, in your override, you can add at the beginning such code:

<?php
if($this->invoice_type != 'full') {
require __DIR__.'/delivery_note.php';
return;
}
?>
That way, you now have two different override files, one for the invoice, one for the delivery note, and you can modify them independently.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum