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

#   Re: Automatic attaching invoices

##

- **[Magiweb](/forum/user/10291-magiweb "View Magiweb's Profile")**
- [![Magiweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10291-magiweb "View Magiweb's Profile")
- [ Offline](/forum/user/10291-magiweb)

Less More

- Posts: 5
- Thank you received: 0
-
-

13 years 4 months ago [\#109481](#109481) by [Magiweb](/forum/user/10291-magiweb "View Magiweb's Profile")  Replied by *[Magiweb](/forum/user/10291-magiweb "View Magiweb's Profile")* on topic *[Re: Automatic attaching invoices](/forum/2-general-talk-about-hikashop/61642-re-automatic-attaching-invoices?start=20#109481 "Hi,  is there a possibility to send out the invoice as a PDF upon order creation without any manual adjustment of the order? I already tried changing the default order status to paid, but it just send out the email without the attachment.  Cheers,  JJ")*

I did try a relative file path. I even tried the complete file path from root on the server. Nothing worked. I had to enable allow_url_fopen and use http://.

What can I say - no idea how they setup this server for my client...

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

- **[erix](/forum/user/4328-erix "View erix's Profile")**
- [![erix's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4328.jpg)](/forum/user/4328-erix "View erix's Profile")
- [ Offline](/forum/user/4328-erix)

Less More

- Posts: 78
- Thank you received: 5
-
-
-
- [](http://www.agerix.fr)
-

13 years 4 months ago -  13 years 4 months ago [\#109953](#109953) by [erix](/forum/user/4328-erix "View erix's Profile")  Replied by *[erix](/forum/user/4328-erix "View erix's Profile")* on topic *[Re: Automatic attaching invoices](/forum/2-general-talk-about-hikashop/61642-re-automatic-attaching-invoices?start=20#109953 "Hi,  is there a possibility to send out the invoice as a PDF upon order creation without any manual adjustment of the order? I already tried changing the default order status to paid, but it just send out the email without the attachment.  Cheers,  JJ")*

Hi,

> Xavier wrote: Hi,
>
> To edit the template of the invoice, you have to edit the file "attachinvoice/invoice.php" in the plugin hikashop &gt; attachinvoice.
>
> You can also create a view override: "media/com\_hikashop/plugins/invoice.php".
>
> Regards,

I'm not really an expert of override so excuse me if my question is stupid but if I add my modified file invoice.php in media/com_hikashop/plugins/ in my template folder it will be enought to replace the file "attachinvoice/invoice.php" in the plugin hikashop &gt; attachinvoice ?

Thx for answer

\[EDIT\] answer is here : [ www.hikashop.com/en/forum/4-how-to/82783...question.html#108230](http://www.hikashop.com/en/forum/4-how-to/82783-probably-a-stupic-question.html#108230) ![;)](/media/kunena/emoticons/24.png ";)")

---

Adishatz, erix
[ www.agerix.fr](http://www.agerix.fr)

Last edit: 13 years 4 months ago by [erix](/forum/user/4328-erix "View erix's Profile"). Reason: found by myself

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

- **[erix](/forum/user/4328-erix "View erix's Profile")**
- [![erix's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4328.jpg)](/forum/user/4328-erix "View erix's Profile")
- [ Offline](/forum/user/4328-erix)

Less More

- Posts: 78
- Thank you received: 5
-
-
-
- [](http://www.agerix.fr)
-

13 years 4 months ago [\#109956](#109956) by [erix](/forum/user/4328-erix "View erix's Profile")  Replied by *[erix](/forum/user/4328-erix "View erix's Profile")* on topic *[Re: Automatic attaching invoices](/forum/2-general-talk-about-hikashop/61642-re-automatic-attaching-invoices?start=20#109956 "Hi,  is there a possibility to send out the invoice as a PDF upon order creation without any manual adjustment of the order? I already tried changing the default order status to paid, but it just send out the email without the attachment.  Cheers,  JJ")*

Hi,

> Jerome wrote: Hi
>
> Code:
>
> $mailer-&gt;AddAttachment($invoiceFolder.DS.$invoiceFile,JText::_('INVOICE').str_pad($order-&gt;invoice_id, 4, "0", STR_PAD_LEFT).'.pdf');

And if I want a name like that : firstname_lastname__myowntext_date_commandID ?

note: myowntext will be facture+coorporate acronyme

Thx for answer

---

Adishatz, erix
[ www.agerix.fr](http://www.agerix.fr)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzYxNjQyLXJlLWF1dG9tYXRpYy1hdHRhY2hpbmctaW52b2ljZXM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86560
- Thank you received: 14307
-
-

13 years 4 months ago [\#109963](#109963) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Automatic attaching invoices](/forum/2-general-talk-about-hikashop/61642-re-automatic-attaching-invoices?start=20#109963 "Hi,  is there a possibility to send out the invoice as a PDF upon order creation without any manual adjustment of the order? I already tried changing the default order status to paid, but it just send out the email without the attachment.  Cheers,  JJ")*

Then like that: Code:

$mailer-&gt;AddAttachment($invoiceFolder.DS.$invoiceFile,$order-&gt;billing_address-&gt;address_firstname.'_'.$order-&gt;billing_address-&gt;address_lastname.'__myowntext_'.date("Y-m-d").'_'.$order-&gt;order_id.'.pdf');

The following user(s) said Thank You: [erix](/forum/user/4328-erix "View erix's Profile")

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

- **[Zafer](/forum/user/30740-zafer "View Zafer's Profile")**
- [![Zafer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30740.png)](/forum/user/30740-zafer "View Zafer's Profile")
- [ Offline](/forum/user/30740-zafer)

Less More

- Posts: 29
- Thank you received: 0
-
-
-

12 years 8 months ago [\#146842](#146842) by [Zafer](/forum/user/30740-zafer "View Zafer's Profile")  Replied by *[Zafer](/forum/user/30740-zafer "View Zafer's Profile")* on topic *[Re: Automatic attaching invoices](/forum/2-general-talk-about-hikashop/61642-re-automatic-attaching-invoices?start=20#146842 "Hi,  is there a possibility to send out the invoice as a PDF upon order creation without any manual adjustment of the order? I already tried changing the default order status to paid, but it just send out the email without the attachment.  Cheers,  JJ")*

Hi Jerome,

can you please describe in few steps how to add a company Logo to the attached PDF invoice above the Company address.

Thank you very much

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#146978](#146978) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Re: Automatic attaching invoices](/forum/2-general-talk-about-hikashop/61642-re-automatic-attaching-invoices?start=20#146978 "Hi,  is there a possibility to send out the invoice as a PDF upon order creation without any manual adjustment of the order? I already tried changing the default order status to paid, but it just send out the email without the attachment.  Cheers,  JJ")*

Hi there,

I think this has been explained multiple times: [ www.hikashop.com/forum/install-update/86...a-editer.html#142085](http://www.hikashop.com/forum/install-update/865485-facture-a-editer.html#142085)
If you really can't do this we'll help you but it's very easy ![;)](/media/kunena/emoticons/24.png ";)")

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

- **[Zafer](/forum/user/30740-zafer "View Zafer's Profile")**
- [![Zafer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30740.png)](/forum/user/30740-zafer "View Zafer's Profile")
- [ Offline](/forum/user/30740-zafer)

Less More

- Posts: 29
- Thank you received: 0
-
-
-

12 years 8 months ago [\#147103](#147103) by [Zafer](/forum/user/30740-zafer "View Zafer's Profile")  Replied by *[Zafer](/forum/user/30740-zafer "View Zafer's Profile")* on topic *[Re: Automatic attaching invoices](/forum/2-general-talk-about-hikashop/61642-re-automatic-attaching-invoices?start=20#147103 "Hi,  is there a possibility to send out the invoice as a PDF upon order creation without any manual adjustment of the order? I already tried changing the default order status to paid, but it just send out the email without the attachment.  Cheers,  JJ")*

Hi Eliot,

my french is not the best but the google translator helps me to translate. I can only modify for backend template in views .. but nothing change.
[ ![ha8da1aa.png](/forum/attachment/15828) ](/forum/attachment/15828 "ha8da1aa.png")

[ ![ha808877.png](/forum/attachment/15829) ](/forum/attachment/15829 "ha808877.png")

- [ ![ha8da1aa.png](/forum/attachment/15828) ](/forum/attachment/15828 "ha8da1aa.png") [ ](/forum/attachment/15828?download=1 "ha8da1aa.png")
- [ ![ha808877.png](/forum/attachment/15829) ](/forum/attachment/15829 "ha808877.png") [ ](/forum/attachment/15829?download=1 "ha808877.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzYxNjQyLXJlLWF1dG9tYXRpYy1hdHRhY2hpbmctaW52b2ljZXM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#147108](#147108) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Automatic attaching invoices](/forum/2-general-talk-about-hikashop/61642-re-automatic-attaching-invoices?start=20#147108 "Hi,  is there a possibility to send out the invoice as a PDF upon order creation without any manual adjustment of the order? I already tried changing the default order status to paid, but it just send out the email without the attachment.  Cheers,  JJ")*

Hi Zafer,

Please put your HTML content in the HTML part.
You put it into the PHP part and I guess that it will generate some errors.

Regards,

---

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

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

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