Skip to main content

Attach invoice template issue

More
10 years 4 months ago #240411 by issa.mouawad
-- HikaShop version -- : 2.6.8

Hi,
I am using Attach pdf invoice plugin with Hikashop Business
I am trying to customize the pdf invoice , but I am facing some issues
I am using basic constructs (such as setting float right of the div or align = right to a td) but its not being applied correctly
I am pretty sure I am writing correct HTML I have tested it in multiple ways, but somehow it's not displayed correctly in the pdf,
could it be a bug with the plugin while converting from html to pdf?
the main issue is that I am not able to add content that is displayed on the right of the file
for example
Code:
<table style="width:100%!important"> <tr> <td align="left"> Logo here</td> <td align="right"> some content here</td> </tr> </table>

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

More
10 years 4 months ago #240415 by nicolas
Hi,

Well, rather than a bug, the conversion library we're using is limited in what it can do:
stackoverflow.com/questions/3404095/tcpd...ties/3404236#3404236
So there are ways to approach what you want but you won't be able to use all the power of CSS/HTML with it.
We've done right align like that:
div.date{text-align:right;color:#333;}
As you can see for the date display.

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

More
10 years 4 months ago #240618 by issa.mouawad
thanks , it makes the layout a lot more tricky ,
on a slightly related topic
the "Additional Information" section is not being filled even when Additional fields are present,
I am using Hikaserials and the correct information is being added to the email , but not to the attached invoice ,
so is that section meant to display "Other" additional information?

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

More
10 years 4 months ago #240621 by nicolas
Hi,

The "additional information" area is only filled with custom fields of the table "order".

You can add the code:
Code:
<?php JPluginHelper::importPlugin('hikashop'); JPluginHelper::importPlugin('hikashopshipping'); JPluginHelper::importPlugin('hikashoppayment'); $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onAfterOrderProductsListingDisplay', array(&$order, 'order_front_show')); ?>
in the invoice.php file of the plugin and then other components like HikaSerial should be able to add their own data to the PDF invoices.
The following user(s) said Thank You: issa.mouawad

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

Time to create page: 0.157 seconds
Powered by Kunena Forum