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

#   Custom Invoice number with pdf plugin

##

- **[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")**
- [![rkuiper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/28454-rkuiper "View rkuiper's Profile") Topic Author
- [ Offline](/forum/user/28454-rkuiper)

Less More

- Posts: 79
- Thank you received: 2
-
-

12 years 2 days ago -  12 years 2 days ago [\#179041](#179041) by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")  *[Custom Invoice number with pdf plugin](/forum/4-how-to/872914-custom-invoice-number-with-pdf-plugin#179041 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 2.5.18  Hi, I have a problem with the pdf plugin which attaches the invoice in pdf to the order email. In the configuration i setup a custom invoice and order number as follows:  order number: W0{date format=&quot;my&quot;}-{id size=&quot;5&quot;} invoice number: WI0{date format=&quot;my&quot;}-{order&#95;id size=&quot;5&quot;}  Now in the emails it will show the right format. Also on the website under orders it will show the right format. on front end if customer wants to print the invoice it will show like it shows on the attachement. Also the pdf attachement will show the same thing. Its like it processes the first tag, but skips the second one.  Any help would be appreciated. Thanks, Roger  ps. i did a quick test with invoice number: WI0{date format=&quot;my&quot;}-{order&#95;id} but then it will not show the 5 digit number just the 2 digit number.")* was created by *[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 2.5.18

Hi,
I have a problem with the pdf plugin which attaches the invoice in pdf to the order email.
In the configuration i setup a custom invoice and order number as follows:

order number: W0{date format="my"}-{id size="5"}
invoice number: WI0{date format="my"}-{order_id size="5"}

Now in the emails it will show the right format. Also on the website under orders it will show the right format.
on front end if customer wants to print the invoice it will show like it shows on the attachement.
Also the pdf attachement will show the same thing.
Its like it processes the first tag, but skips the second one.

[ ![hikaproblem&#95;001.jpg](/forum/attachment/20622) ](/forum/attachment/20622 "...roblem&#95;001.jpg")

Any help would be appreciated.
Thanks,
Roger

ps. i did a quick test with invoice number: WI0{date format="my"}-{order_id} but then it will not show the 5 digit number just the 2 digit number.

- [ ![hikaproblem&#95;001.jpg](/forum/attachment/20622) ](/forum/attachment/20622 "...roblem&#95;001.jpg") [ ](/forum/attachment/20622?download=1 "...roblem&#95;001.jpg")

Last edit: 12 years 2 days ago by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3MjkxNC1jdXN0b20taW52b2ljZS1udW1iZXItd2l0aC1wZGYtcGx1Z2luP3RtcGw9bWFya2Rvd24=) 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: 4078
-
- [](http://obsi.dev)
-

12 years 1 day ago [\#179084](#179084) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom Invoice number with pdf plugin](/forum/4-how-to/872914-custom-invoice-number-with-pdf-plugin#179084 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 2.5.18  Hi, I have a problem with the pdf plugin which attaches the invoice in pdf to the order email. In the configuration i setup a custom invoice and order number as follows:  order number: W0{date format=&quot;my&quot;}-{id size=&quot;5&quot;} invoice number: WI0{date format=&quot;my&quot;}-{order&#95;id size=&quot;5&quot;}  Now in the emails it will show the right format. Also on the website under orders it will show the right format. on front end if customer wants to print the invoice it will show like it shows on the attachement. Also the pdf attachement will show the same thing. Its like it processes the first tag, but skips the second one.  Any help would be appreciated. Thanks, Roger  ps. i did a quick test with invoice number: WI0{date format=&quot;my&quot;}-{order&#95;id} but then it will not show the 5 digit number just the 2 digit number.")*

Hi,

I check the code of the "attach invoice" plugin and I don't see any code which generate the invoice number ; it just read it from the database.
So I don't understand how you can have a right invoice number in the emails and have a wrong one in the invoice pdf.
When did you download the PDF invoice plugin ?

Regards,

---

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

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

- **[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")**
- [![rkuiper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/28454-rkuiper "View rkuiper's Profile") Topic Author
- [ Offline](/forum/user/28454-rkuiper)

Less More

- Posts: 79
- Thank you received: 2
-
-

12 years 1 day ago [\#179104](#179104) by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")  Replied by *[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")* on topic *[Custom Invoice number with pdf plugin](/forum/4-how-to/872914-custom-invoice-number-with-pdf-plugin#179104 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 2.5.18  Hi, I have a problem with the pdf plugin which attaches the invoice in pdf to the order email. In the configuration i setup a custom invoice and order number as follows:  order number: W0{date format=&quot;my&quot;}-{id size=&quot;5&quot;} invoice number: WI0{date format=&quot;my&quot;}-{order&#95;id size=&quot;5&quot;}  Now in the emails it will show the right format. Also on the website under orders it will show the right format. on front end if customer wants to print the invoice it will show like it shows on the attachement. Also the pdf attachement will show the same thing. Its like it processes the first tag, but skips the second one.  Any help would be appreciated. Thanks, Roger  ps. i did a quick test with invoice number: WI0{date format=&quot;my&quot;}-{order&#95;id} but then it will not show the 5 digit number just the 2 digit number.")*

Hi Jerome,
I got the plugin on october 21st, 2014.
I am not for sure why its not showing it with the 5 digits in the PDF.
In Hikashop Configuration i setup the order and invoice code like i showed below.
When i opened the PDF it showed it like it shows in the attach picture in previous post.
I did how ever do a test where in the configuration i put WI0{date format="my"}-{order_id} instead of {order_id size="5"} for the invoice code. This will generate the invoice PDF correctly but will only show the invoice number like 24 instead of 00024.

Roger

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3MjkxNC1jdXN0b20taW52b2ljZS1udW1iZXItd2l0aC1wZGYtcGx1Z2luP3RtcGw9bWFya2Rvd24=) 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: 86540
- Thank you received: 14299
-
-

12 years 1 day ago [\#179169](#179169) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Invoice number with pdf plugin](/forum/4-how-to/872914-custom-invoice-number-with-pdf-plugin#179169 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 2.5.18  Hi, I have a problem with the pdf plugin which attaches the invoice in pdf to the order email. In the configuration i setup a custom invoice and order number as follows:  order number: W0{date format=&quot;my&quot;}-{id size=&quot;5&quot;} invoice number: WI0{date format=&quot;my&quot;}-{order&#95;id size=&quot;5&quot;}  Now in the emails it will show the right format. Also on the website under orders it will show the right format. on front end if customer wants to print the invoice it will show like it shows on the attachement. Also the pdf attachement will show the same thing. Its like it processes the first tag, but skips the second one.  Any help would be appreciated. Thanks, Roger  ps. i did a quick test with invoice number: WI0{date format=&quot;my&quot;}-{order&#95;id} but then it will not show the 5 digit number just the 2 digit number.")*

Hi,

the size parameter for the order_id field is not yet supported but will be in next version.
In the mean time you need to modify the code of HikaShop to be able to do that:
[ www.hikashop.com/forum/orders-management...e-number-format.html](http://www.hikashop.com/forum/orders-management/871966-order-id-tag-in-invoice-number-format.html)

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

- **[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")**
- [![rkuiper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/28454-rkuiper "View rkuiper's Profile") Topic Author
- [ Offline](/forum/user/28454-rkuiper)

Less More

- Posts: 79
- Thank you received: 2
-
-

12 years 13 hours ago [\#179322](#179322) by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")  Replied by *[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")* on topic *[Custom Invoice number with pdf plugin](/forum/4-how-to/872914-custom-invoice-number-with-pdf-plugin#179322 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 2.5.18  Hi, I have a problem with the pdf plugin which attaches the invoice in pdf to the order email. In the configuration i setup a custom invoice and order number as follows:  order number: W0{date format=&quot;my&quot;}-{id size=&quot;5&quot;} invoice number: WI0{date format=&quot;my&quot;}-{order&#95;id size=&quot;5&quot;}  Now in the emails it will show the right format. Also on the website under orders it will show the right format. on front end if customer wants to print the invoice it will show like it shows on the attachement. Also the pdf attachement will show the same thing. Its like it processes the first tag, but skips the second one.  Any help would be appreciated. Thanks, Roger  ps. i did a quick test with invoice number: WI0{date format=&quot;my&quot;}-{order&#95;id} but then it will not show the 5 digit number just the 2 digit number.")*

Hi Nicolas,

That worked perfectly.
thank you for the quick response ![:)](/media/kunena/emoticons/3.png ":)")

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

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