[Skip to main content](#vessel-content)

#   Attach invoice template issue

##

- **[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")**
- [![issa.mouawad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile") Topic Author
- [ Offline](/forum/user/38443-issa-mouawad)

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 6 months ago [\#240411](#240411) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  *[Attach invoice template issue](/forum/35-orders-management/884578-attach-invoice-template-issue#240411 "-- 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")* was created by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")*

-- 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:

&lt;table style="width:100%!important"&gt; &lt;tr&gt; &lt;td align="left"&gt; Logo here&lt;/td&gt; &lt;td align="right"&gt; some content here&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NDU3OC1hdHRhY2gtaW52b2ljZS10ZW1wbGF0ZS1pc3N1ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 6 months ago [\#240415](#240415) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Attach invoice template issue](/forum/35-orders-management/884578-attach-invoice-template-issue#240415 "-- 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")*

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](http://stackoverflow.com/questions/3404095/tcpdf-not-render-all-css-properties/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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NDU3OC1hdHRhY2gtaW52b2ljZS10ZW1wbGF0ZS1pc3N1ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")**
- [![issa.mouawad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile") Topic Author
- [ Offline](/forum/user/38443-issa-mouawad)

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 6 months ago [\#240618](#240618) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  Replied by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")* on topic *[Attach invoice template issue](/forum/35-orders-management/884578-attach-invoice-template-issue#240618 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NDU3OC1hdHRhY2gtaW52b2ljZS10ZW1wbGF0ZS1pc3N1ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 6 months ago [\#240621](#240621) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Attach invoice template issue](/forum/35-orders-management/884578-attach-invoice-template-issue#240621 "-- 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")*

Hi,

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

You can add the code: Code:

&lt;?php JPluginHelper::importPlugin('hikashop'); JPluginHelper::importPlugin('hikashopshipping'); JPluginHelper::importPlugin('hikashoppayment'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onAfterOrderProductsListingDisplay', array(&amp;$order, 'order_front_show')); ?&gt;

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](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NDU3OC1hdHRhY2gtaW52b2ljZS10ZW1wbGF0ZS1pc3N1ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
