Skip to main content

PDF plugin questions

More
14 years 1 week ago #66835 by csymmonds
When the billing and shipping address are both printed, they're not aligned. The shipping address to the right is a little above the billing address. How can I align them?

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.

More
14 years 1 week ago #67088 by nicolas
Replied by nicolas on topic Re: PDF plugin questions
We don't have alignment problem on the billing/shipping address on our end.

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.

More
14 years 1 week ago #67233 by csymmonds
Replied by csymmonds on topic Re: PDF plugin questions
Sample invoice attached.

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

More
14 years 1 week ago #67252 by nicolas
Replied by nicolas on topic Re: PDF plugin questions
Please try to change the code:

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.

More
14 years 1 week ago - 14 years 1 week ago #67369 by csymmonds
Replied by csymmonds on topic Re: PDF plugin questions
Edit made, but it did not fix the alignment.
Last edit: 14 years 1 week ago by csymmonds.

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

More
14 years 1 week ago - 14 years 1 week ago #67382 by nicolas
Replied by nicolas on topic Re: PDF plugin questions
It works fine for us. Can you please provide the whole code you have now in the invoice.php file ?
Last edit: 14 years 1 week ago by nicolas.

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

More
14 years 1 week ago #67405 by csymmonds
Replied by csymmonds on topic Re: PDF plugin questions
Attached, renamed to .txt extension

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

More
14 years 6 days ago #67654 by nicolas
Replied by nicolas on topic Re: PDF plugin questions
Mmm. I don't see why you would have that problem with that code.

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.

More
14 years 5 days ago - 14 years 5 days ago #67827 by csymmonds
Replied by csymmonds on topic Re: PDF plugin questions
That didn't fix the alignment either.

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?
Last edit: 14 years 5 days ago by csymmonds.

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

More
14 years 4 days ago #67929 by nicolas
Replied by nicolas on topic Re: PDF plugin questions
I'm out of ideas on the alignment of the addresses on your PDF.

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:
Code:
<?php if(!empty($order->$oneAddress->address_company)) echo $order->$oneAddress->address_company.'<br/>'; echo $order->$oneAddress->address_title.' '.$order->$oneAddress->address_firstname.' '.$order->$oneAddress->address_lastname.'<br/>'; echo $order->$oneAddress->address_street.'<br/>'; echo $order->$oneAddress->address_post_code.' '.$order->$oneAddress->address_city.' '.$order->$oneAddress->address_state.'<br/>'; echo $order->$oneAddress->address_country.'<br/>'; if(!empty($order->$oneAddress->address_telephone)) echo JText::sprintf('TELEPHONE_IN_ADDRESS',$order->$oneAddress->address_telephone).'<br/>'; if(!empty($order->$oneAddress->address_vat)) echo JText::_('VAT_NUMBER').' : '.$order->$oneAddress->address_vat.'<br/>'; ?>
The following user(s) said Thank You: csymmonds

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

More
14 years 3 days ago #67948 by csymmonds
Replied by csymmonds on topic Re: PDF plugin questions
Strange...commenting out the country fixed the alignment.

// echo $order->$oneAddress->address_country.'<br/>';
The following user(s) said Thank You: nicolas

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

More
12 years 11 months ago - 12 years 11 months ago #130758 by oxheadproductions
Joomla - 2.5
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.
Last edit: 12 years 11 months ago by oxheadproductions.

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

More
12 years 11 months ago #130781 by csymmonds
Replied by csymmonds on topic Re: PDF plugin questions
Try reducing the padding for .addresses, e.g.

change....
.addresses td{padding-left:50px;}
to:
.addresses td{padding-left:25px;}
The following user(s) said Thank You: nicolas, oxheadproductions

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

More
12 years 10 months ago #130878 by oxheadproductions
thanks for the reply... however I can't find the file to edit.

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

More
12 years 10 months ago #130907 by Xavier
Replied by Xavier on topic Re: PDF plugin questions
Hi,

The file to edit is: plugins/hikashop/attachinvoice/attachinvoice/invoice.php
You have to edit the css code at the top of the file.
The following user(s) said Thank You: oxheadproductions

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

More
12 years 10 months ago #130908 by oxheadproductions
BINGO... thanks again for the excellent support. Works great.

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

Time to create page: 0.330 seconds
Powered by Kunena Forum