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

#   How to create and email a generated pdf

##

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

Less More

- Posts: 92
- Thank you received: 3
-
-

6 months 2 weeks ago -  6 months 2 weeks ago [\#371529](#371529) by [ezomerdijk](/forum/user/38681-ezomerdijk "View ezomerdijk's Profile")  *[How to create and email a generated pdf](/forum/32-content-creation/910454-how-to-create-and-email-a-generated-pdf#371529 "-- HikaShop version -- : 6.4.0 -- Joomla version -- : 5.4.3  Hi, I have been thinking about this for a while, I would like to be able so sent an email with a generated (from different articles and information from the order) pdf.  Kind of like an invoice, but with additional information about the trip someone booked.  I have made some articles with some basic info that's important for all pdf's, but there will be articles with different information (or maybe it is better to put that info in some custom fields or???). I would like to combine that in some way....  Just typing this, I think of a sollution like one of the emails allready on hikashop, but I think it is more practical if it could be an attached pdf.  Anyway, what would be the best approach for this?  Hope I am making sense.")* was created by *[ezomerdijk](/forum/user/38681-ezomerdijk "View ezomerdijk's Profile")*

-- HikaShop version -- : 6.4.0
-- Joomla version -- : 5.4.3

Hi, I have been thinking about this for a while, I would like to be able so sent an email with a generated (from different articles and information from the order) pdf.

Kind of like an invoice, but with additional information about the trip someone booked.

I have made some articles with some basic info that's important for all pdf's, but there will be articles with different information (or maybe it is better to put that info in some custom fields or???). I would like to combine that in some way....

Just typing this, I think of a sollution like one of the emails allready on hikashop, but I think it is more practical if it could be an attached pdf.

Anyway, what would be the best approach for this?

Hope I am making sense.

Last edit: 6 months 2 weeks ago by [ezomerdijk](/forum/user/38681-ezomerdijk "View ezomerdijk's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTEwNDU0LWhvdy10by1jcmVhdGUtYW5kLWVtYWlsLWEtZ2VuZXJhdGVkLXBkZj90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

6 months 2 weeks ago [\#371530](#371530) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to create and email a generated pdf](/forum/32-content-creation/910454-how-to-create-and-email-a-generated-pdf#371530 "-- HikaShop version -- : 6.4.0 -- Joomla version -- : 5.4.3  Hi, I have been thinking about this for a while, I would like to be able so sent an email with a generated (from different articles and information from the order) pdf.  Kind of like an invoice, but with additional information about the trip someone booked.  I have made some articles with some basic info that's important for all pdf's, but there will be articles with different information (or maybe it is better to put that info in some custom fields or???). I would like to combine that in some way....  Just typing this, I think of a sollution like one of the emails allready on hikashop, but I think it is more practical if it could be an attached pdf.  Anyway, what would be the best approach for this?  Hope I am making sense.")*

Hi,

Here is what I would do:
- I would download the zip of the install package of the PDF invoice plugin ( [ www.hikashop.com/marketplace/product/18-plugin-pdf.html](https://www.hikashop.com/marketplace/product/18-plugin-pdf.html) ).
- I would extract that zip in a folder
- I would ask an AI like claude code or openai codex to look at the folder content, and tell it what you want to do.
- It should normally propose to build a plugin implementing a similar event ( onBeforeMailSend ) and the HTML2PDF library in the plugin with extra code to get data from the order (usually in $data) to generate the PDFs like you need (you'll have to provide template PDFs or something).
[ www.hikashop.com/support/documentation/6...tml#onBeforeMailSend](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onBeforeMailSend)
Of course, you'll probably need some back and forth with the AI, testing, and maybe a bit of manual development.

A more traditional approach could be to try using HikaSerial:
[ www.hikashop.com/component/hikashop/product/17-hikaserial.html](https://www.hikashop.com/component/hikashop/product/17-hikaserial.html)
It has an attach serial plugin to generate an image with text taken from custom fields:
[ www.hikashop.com/support/documentation/1...ns-attachserial.html](https://www.hikashop.com/support/documentation/152-hikaserial-plugins-attachserial.html)
And there is a similar plugin included in it for PDF files.

The first approach is something I would do as a developer. The second approach doesn't involve code but is more restrictive in what you can do and requires fiddling with the settings.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTEwNDU0LWhvdy10by1jcmVhdGUtYW5kLWVtYWlsLWEtZ2VuZXJhdGVkLXBkZj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 92
- Thank you received: 3
-
-

5 months 6 days ago [\#372091](#372091) by [ezomerdijk](/forum/user/38681-ezomerdijk "View ezomerdijk's Profile")  Replied by *[ezomerdijk](/forum/user/38681-ezomerdijk "View ezomerdijk's Profile")* on topic *[How to create and email a generated pdf](/forum/32-content-creation/910454-how-to-create-and-email-a-generated-pdf#372091 "-- HikaShop version -- : 6.4.0 -- Joomla version -- : 5.4.3  Hi, I have been thinking about this for a while, I would like to be able so sent an email with a generated (from different articles and information from the order) pdf.  Kind of like an invoice, but with additional information about the trip someone booked.  I have made some articles with some basic info that's important for all pdf's, but there will be articles with different information (or maybe it is better to put that info in some custom fields or???). I would like to combine that in some way....  Just typing this, I think of a sollution like one of the emails allready on hikashop, but I think it is more practical if it could be an attached pdf.  Anyway, what would be the best approach for this?  Hope I am making sense.")*

OK, I have this working for the biggest part.

But it automatically sends the pdf with the "confirmed" orders. But I want to turn that off.

I thought I would disable that in the statusses configuration for invoice or print invoice, but that is not the case.

The help in the plugin says: "By default, the PDF invoice is attached only to the notification email when the order is getting confirmed (based on the setting in the configuration). You can configure here one or several statuses (separated by a comma) so that it overrides the status of the configuration. ".

But I cannot find out, where to change the configuration. And I cannot find any other support for this.

Kind regards

- [ ![Scherm­afbeelding 2026-05-29 om 13.43.13.png](/forum/attachment/63204) ](/forum/attachment/63204 "...om 13.43.13.pn") [ ](/forum/attachment/63204?download=1 "...om 13.43.13.pn")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTEwNDU0LWhvdy10by1jcmVhdGUtYW5kLWVtYWlsLWEtZ2VuZXJhdGVkLXBkZj90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

5 months 6 days ago [\#372092](#372092) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to create and email a generated pdf](/forum/32-content-creation/910454-how-to-create-and-email-a-generated-pdf#372092 "-- HikaShop version -- : 6.4.0 -- Joomla version -- : 5.4.3  Hi, I have been thinking about this for a while, I would like to be able so sent an email with a generated (from different articles and information from the order) pdf.  Kind of like an invoice, but with additional information about the trip someone booked.  I have made some articles with some basic info that's important for all pdf's, but there will be articles with different information (or maybe it is better to put that info in some custom fields or???). I would like to combine that in some way....  Just typing this, I think of a sollution like one of the emails allready on hikashop, but I think it is more practical if it could be an attached pdf.  Anyway, what would be the best approach for this?  Hope I am making sense.")*

Hi,

First, please note that there are two different things:
- The "order status notification" email is sent by HikaShop when the order is confirmed by a payment plugin.
It is also sent each time you change the status of an order in the backend and you check the notify user checkbox.
If you don't want that email to be sent, you can unpublish it via the System&gt;Emails menu.
- The plugin will attach the PDF to this "order status notification" email based on the status of the order and what you configured in the plugin or the "invoice" column on your screenshot.

All this means that even with all the statuses disabled for invoice, and even with the PDF invoice plugin disabled, the order status notification email will be sent to the user as long as it is published and the payment plugin changes the order status to confirmed.

If you still want that email to be sent but you don't want the PDF invoice to be attached by the plugin, then you can keep the email published and enter a status name different from "confirmed" in the order status setting of the plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTEwNDU0LWhvdy10by1jcmVhdGUtYW5kLWVtYWlsLWEtZ2VuZXJhdGVkLXBkZj90bXBsPW1hcmtkb3du) or [Create an account](/register) 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)
