- Posts: 217
- Thank you received: 4
Custom shipping invoice
- FilipHradil
-
Topic Author
- Offline
Less
More
8 years 10 months ago #283036
by FilipHradil
Custom shipping invoice was created by FilipHradil
-- HikaShop version -- : 3.2.1
Hello,
I would like to ask, if is possible to make "Shipping invoice" custom. My problem is that if I change shipping_invoice.php of view order it does not appear and my shipping invoice is still similar to normal invoice, just without price and so on.
Please, is there any way to have stanalone template for shipping invoice too??
Thank you,
Filip
Hello,
I would like to ask, if is possible to make "Shipping invoice" custom. My problem is that if I change shipping_invoice.php of view order it does not appear and my shipping invoice is still similar to normal invoice, just without price and so on.
Please, is there any way to have stanalone template for shipping invoice too??
Thank you,
Filip
Please Log in or Create an account to join the conversation.
8 years 10 months ago #283040
by nicolas
Replied by nicolas on topic Custom shipping invoice
Hi,
Activate the "Display view files" setting of the HikaShop configuration and you'll see which view file is used where, so you'll know which one to edit.
You can have a standalone template for the shipping invoice, separated from the invoice. Just add such code at the beginning if the order/invoice.php view file :
Activate the "Display view files" setting of the HikaShop configuration and you'll see which view file is used where, so you'll know which one to edit.
You can have a standalone template for the shipping invoice, separated from the invoice. Just add such code at the beginning if the order/invoice.php view file :
Code:
if($this->invoice_type!='full'){
require_once("PATH TO YOUR shipping invoice.php file");
return;
}
Please Log in or Create an account to join the conversation.
Time to create page: 0.138 seconds