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

#   pdf invoice plugin - an existing problem

##

- **[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")**
- [![innovoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23953.jpg)](/forum/user/23953-innovoweb "View innovoweb's Profile") Topic Author
- [ Offline](/forum/user/23953-innovoweb)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 1 month ago [\#124042](#124042) by [innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")  *[pdf invoice plugin - an existing problem](/forum/2-general-talk-about-hikashop/862117-pdf-invoice-plugin-an-existing-problem#124042 "If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?  This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.  Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?")* was created by *[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")*

If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?

This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.

Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#124084](#124084) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[pdf invoice plugin - an existing problem](/forum/2-general-talk-about-hikashop/862117-pdf-invoice-plugin-an-existing-problem#124084 "If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?  This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.  Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?")*

Hi,

You have to edit the file "attacinvoice/invoice.php" in the plugin attachinvoice, the pdf invoice template is in that file.

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

- **[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")**
- [![innovoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23953.jpg)](/forum/user/23953-innovoweb "View innovoweb's Profile") Topic Author
- [ Offline](/forum/user/23953-innovoweb)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 1 month ago [\#124464](#124464) by [innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")  Replied by *[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")* on topic *[pdf invoice plugin - an existing problem](/forum/2-general-talk-about-hikashop/862117-pdf-invoice-plugin-an-existing-problem#124464 "If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?  This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.  Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?")*

Hi,

I know where I need to make the change, but it does not work! See also the link to the forum, I have changed the same way, no chance ...

[ www.hikashop.com/forum/4-how-to/66835-pd...questions.html#66835](http://www.hikashop.com/forum/4-how-to/66835-pdf-plugin-questions.html#66835)

Regard Esther

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago -  13 years 1 month ago [\#124507](#124507) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[pdf invoice plugin - an existing problem](/forum/2-general-talk-about-hikashop/862117-pdf-invoice-plugin-an-existing-problem#124507 "If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?  This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.  Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?")*

Hi
Code:

if(file_exists(HIKASHOP_MEDIA.'plugins'.DS.'invoice.php')){ $file = HIKASHOP_MEDIA.'plugins'.DS.'invoice.php'; }else{ $file = dirname(__FILE__).DS.'attachinvoice'.DS.'invoice.php'; }

The plugin checks the file "invoice.php" in the "media/com_hikashop/plugins/" folder and if there is no file, it will use the default "invoice.php" in the sub folder "attachinvoice" (in the plugin folder).

By modifying the file which is used by the plugin, you will change the result of the new generated PDF.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 13 years 1 month ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

- **[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")**
- [![innovoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23953.jpg)](/forum/user/23953-innovoweb "View innovoweb's Profile") Topic Author
- [ Offline](/forum/user/23953-innovoweb)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 1 month ago [\#124538](#124538) by [innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")  Replied by *[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")* on topic *[pdf invoice plugin - an existing problem](/forum/2-general-talk-about-hikashop/862117-pdf-invoice-plugin-an-existing-problem#124538 "If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?  This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.  Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?")*

Hi,

Thanks for your answer. Sorry, but I think we are not talking about the same thing. The problem I have is the same as that described in this link [ www.hikashop.com/forum/4-how-to/66835-pd...questions.html#66835](http://www.hikashop.com/forum/4-how-to/66835-pdf-plugin-questions.html#66835), (see also attachment)

I've followed all the suggestions for change, but unfortunately without success. Also **commenting out the country fixed**, does not work.

Regards

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#124668](#124668) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[pdf invoice plugin - an existing problem](/forum/2-general-talk-about-hikashop/862117-pdf-invoice-plugin-an-existing-problem#124668 "If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?  This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.  Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?")*

Hi,

Thanks to tell us exactly which file you are editing, and the modifications done.
We are talking about the same thing, and we are giving the same solution as the topic you gave.

So I think that there is something that is not done as it should.

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

- **[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")**
- [![innovoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23953.jpg)](/forum/user/23953-innovoweb "View innovoweb's Profile") Topic Author
- [ Offline](/forum/user/23953-innovoweb)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 1 month ago [\#125038](#125038) by [innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")  Replied by *[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")* on topic *[pdf invoice plugin - an existing problem](/forum/2-general-talk-about-hikashop/862117-pdf-invoice-plugin-an-existing-problem#125038 "If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?  This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.  Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?")*

Hi,

I have changed in the ivoice.php at addressess td (padding-left), the number of 50 to 10 px. The two address fields are now on the same line.

I have also changed the attachinvoice.php so the PDF is sent to the first mail. This works, but now the invoice number is not displayed.

Where is the problem?

Regards

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#125060](#125060) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[pdf invoice plugin - an existing problem](/forum/2-general-talk-about-hikashop/862117-pdf-invoice-plugin-an-existing-problem#125060 "If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?  This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.  Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?")*

It probably come from the changes made, can you give us the edited parts ?
Thanks to put them between the tags [ code] ... [/code] (without spaces).

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

- **[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")**
- [![innovoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23953.jpg)](/forum/user/23953-innovoweb "View innovoweb's Profile") Topic Author
- [ Offline](/forum/user/23953-innovoweb)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 1 month ago -  13 years 1 month ago [\#125077](#125077) by [innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")  Replied by *[innovoweb](/forum/user/23953-innovoweb "View innovoweb's Profile")* on topic *[pdf invoice plugin - an existing problem](/forum/2-general-talk-about-hikashop/862117-pdf-invoice-plugin-an-existing-problem#125077 "If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?  This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.  Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?")*

Hi,

I replaced this line: Code:

if(empty($data-&gt;mail_name) &#124;&#124; empty($data-&gt;data-&gt;order_status) &#124;&#124; $data-&gt;mail_name != 'order_status_notification' &#124;&#124; $data-&gt;data-&gt;order_status != 'confirmed') return;

by the line: Code:

if(empty($data-&gt;mail_name) &#124;&#124; empty($data-&gt;data-&gt;order_status) &#124;&#124; !in_array($data-&gt;mail_name,array('order_status_notification','order_creation_notification'))) return;

Regards

Last edit: 13 years 1 month ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: adding [code] for code.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#125131](#125131) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[pdf invoice plugin - an existing problem](/forum/2-general-talk-about-hikashop/862117-pdf-invoice-plugin-an-existing-problem#125131 "If the billing and shipping address printed both, they are not aligned. The delivery address on the right side is a little above the billing address. How can I change this please?  This problem has been discussed more than a year ago. I bought the PDF invoice plugin now, and the problem is still present.  Then another question: The amounts below are centrally aligned, which is not very nice, can I change this so that the amounts are aligned to the right?")*

Hi,

The invoice number is generated when the order_status is "confirmed" or "shipped".
You can change this value in the HikaShop configuration. If you add the order status "created", the invoice number will be generate during the order creation (and will be displayed in the first email).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MjExNy1wZGYtaW52b2ljZS1wbHVnaW4tYW4tZXhpc3RpbmctcHJvYmxlbT90bXBsPW1hcmtkb3du) 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.121 seconds

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

[](#top)
