- Posts: 113
- Thank you received: 18
PDF plugin questions
Is there any way, or are there plans to include product images in the invoice?
Any easy way to modify the appearance of the PDF invoice?
Please Log in or Create an account to join the conversation.
Could you give a PDF ?
Did you change something in the invoice code ?
There is no plan yet to include images for now.
But we can add that to the todo list.
If you want to change the PDF file appearance, you need to edit the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
if(empty($order->$oneAddress)) continue; ?>
<td>
to:
if(empty($order->$oneAddress)) continue; ?>
<td valign="top">
in the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php and that should help for the alignment
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Maybe you could try to change the line:
<td valign="top">
to:
<td valign="top"><br/>
but I don't have much ideas...
Please Log in or Create an account to join the conversation.
Unrelated - I edited the address_template (front-end and backend templates), but the PDF address doesn't match the template.
Is there someplace else I need to edit the address format for the PDF to use the correct format?
Please Log in or Create an account to join the conversation.
The PDF invoice cannot user the address_template view file.
So you need to change it in the same file plugins/hikashop/attachinvoice/attachinvoice/invoice.php
It's that block of code:
Please Log in or Create an account to join the conversation.
// echo $order->$oneAddress->address_country.'<br/>';
Please Log in or Create an account to join the conversation.
- Posts: 47
- Thank you received: 0
HikaShop - 2.2.2.
I have a similar problem... The Billing and Shipping addresses on the invoices do not align with quest registrations... however they do with Registered Users to the site. I have tried the tips on the thread with no success.
FYI... I have the "Add Invoice Plugin" installed and I am using the "Quest/ Registered switch" at checkout.
Please Log in or Create an account to join the conversation.
change....
.addresses td{padding-left:50px;}
to:
.addresses td{padding-left:25px;}
Please Log in or Create an account to join the conversation.
- Posts: 47
- Thank you received: 0
Please Log in or Create an account to join the conversation.
The file to edit is: plugins/hikashop/attachinvoice/attachinvoice/invoice.php
You have to edit the css code at the top of the file.
Please Log in or Create an account to join the conversation.
- Posts: 47
- Thank you received: 0
Please Log in or Create an account to join the conversation.