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

#   I need to put the product codes in the invoice

##

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

Less More

- Posts: 75
- Thank you received: 0
-
-

10 years 11 months ago -  10 years 11 months ago [\#222707](#222707) by [rober1903](/forum/user/37591-rober1903 "View rober1903's Profile")  *[I need to put the product codes in the invoice](/forum/36-reports-statistics/880835-i-need-to-put-the-product-codes-in-the-invoice#222707 "-- HikaShop version -- : 2.6.0. Bussines -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : all")* was created by *[rober1903](/forum/user/37591-rober1903 "View rober1903's Profile")*

-- HikaShop version -- : 2.6.0. Bussines
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.0
-- Browser(s) name and version -- : all

Last edit: 10 years 11 months ago by [rober1903](/forum/user/37591-rober1903 "View rober1903's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODA4MzUtaS1uZWVkLXRvLXB1dC10aGUtcHJvZHVjdC1jb2Rlcy1pbi10aGUtaW52b2ljZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 11 months ago [\#222710](#222710) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I need to put the product codes in the invoice](/forum/36-reports-statistics/880835-i-need-to-put-the-product-codes-in-the-invoice#222710 "-- HikaShop version -- : 2.6.0. Bussines -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : all")*

Hi,

Turn on the "display product code" setting of your HikaShop configuration and that should do it.

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

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

Less More

- Posts: 75
- Thank you received: 0
-
-

10 years 11 months ago [\#222947](#222947) by [rober1903](/forum/user/37591-rober1903 "View rober1903's Profile")  Replied by *[rober1903](/forum/user/37591-rober1903 "View rober1903's Profile")* on topic *[I need to put the product codes in the invoice](/forum/36-reports-statistics/880835-i-need-to-put-the-product-codes-in-the-invoice#222947 "-- HikaShop version -- : 2.6.0. Bussines -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : all")*

I attached the capture. This enabled see the code, and the bill does not come out. I am attaching the files.

- [ ![codigo.png](/forum/attachment/28176) ](/forum/attachment/28176 "codigo.png") [ ](/forum/attachment/28176?download=1 "codigo.png")
- [ ![codigo&#95;2.png](/forum/attachment/28177) ](/forum/attachment/28177 "codigo&#95;2.png") [ ](/forum/attachment/28177?download=1 "codigo&#95;2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODA4MzUtaS1uZWVkLXRvLXB1dC10aGUtcHJvZHVjdC1jb2Rlcy1pbi10aGUtaW52b2ljZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 11 months ago [\#222969](#222969) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I need to put the product codes in the invoice](/forum/36-reports-statistics/880835-i-need-to-put-the-product-codes-in-the-invoice#222969 "-- HikaShop version -- : 2.6.0. Bussines -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : all")*

Hi,

Ah, you're using the PDF invoice plugin.
In that case, yes the product code is not added.
You need to add the line:
echo ' '.$product-&gt;order_product_code;

after the line:
&lt;?php echo implode('&lt;br/&gt;',$this-&gt;str_split_unicode(strip_tags($product-&gt;order_product_name),50));
in the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php
and that will add the product code.

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

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

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

Less More

- Posts: 75
- Thank you received: 0
-
-

10 years 11 months ago [\#223136](#223136) by [rober1903](/forum/user/37591-rober1903 "View rober1903's Profile")  Replied by *[rober1903](/forum/user/37591-rober1903 "View rober1903's Profile")* on topic *[I need to put the product codes in the invoice](/forum/36-reports-statistics/880835-i-need-to-put-the-product-codes-in-the-invoice#223136 "-- HikaShop version -- : 2.6.0. Bussines -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : all")*

Thank you very much for responding so quickly.
I changed the line, and the bill not visualize the code of the product. I am attaching the file invoice.php (plugins/hikashop/attachinvoice/attachinvoice/invoice.php)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODA4MzUtaS1uZWVkLXRvLXB1dC10aGUtcHJvZHVjdC1jb2Rlcy1pbi10aGUtaW52b2ljZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 11 months ago [\#223440](#223440) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I need to put the product codes in the invoice](/forum/36-reports-statistics/880835-i-need-to-put-the-product-codes-in-the-invoice#223440 "-- HikaShop version -- : 2.6.0. Bussines -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : all")*

Hi,

The solution provided is definitely correct.
Can you do a screenshot of your change and one of an invoice after that change ?
Did you maybe already have an override for the invoice file ?

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

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

Less More

- Posts: 75
- Thank you received: 0
-
-

10 years 11 months ago [\#223967](#223967) by [rober1903](/forum/user/37591-rober1903 "View rober1903's Profile")  Replied by *[rober1903](/forum/user/37591-rober1903 "View rober1903's Profile")* on topic *[I need to put the product codes in the invoice](/forum/36-reports-statistics/880835-i-need-to-put-the-product-codes-in-the-invoice#223967 "-- HikaShop version -- : 2.6.0. Bussines -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : all")*

I performed the operation again and the result is the same. ![:(](/media/kunena/emoticons/22.png ":(")

- [ ![pluggin1&#95;2015-12-12.png](/forum/attachment/28432) ](/forum/attachment/28432 "...2015-12-12.png") [ ](/forum/attachment/28432?download=1 "...2015-12-12.png")
- [ ![pluggin2&#95;2015-12-12.png](/forum/attachment/28433) ](/forum/attachment/28433 "...2015-12-12.png") [ ](/forum/attachment/28433?download=1 "...2015-12-12.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84ODA4MzUtaS1uZWVkLXRvLXB1dC10aGUtcHJvZHVjdC1jb2Rlcy1pbi10aGUtaW52b2ljZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 11 months ago [\#224023](#224023) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I need to put the product codes in the invoice](/forum/36-reports-statistics/880835-i-need-to-put-the-product-codes-in-the-invoice#224023 "-- HikaShop version -- : 2.6.0. Bussines -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : all")*

Maybe the product code is cut off by the HTML 2 PDF library because the product name is too long.
Try using that code instead:
echo '&lt;br/&gt;'.$product-&gt;order_product_code;
that will put it on a second line and should avoid that.

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

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

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

Less More

- Posts: 75
- Thank you received: 0
-
-

10 years 11 months ago [\#224033](#224033) by [rober1903](/forum/user/37591-rober1903 "View rober1903's Profile")  Replied by *[rober1903](/forum/user/37591-rober1903 "View rober1903's Profile")* on topic *[I need to put the product codes in the invoice](/forum/36-reports-statistics/880835-i-need-to-put-the-product-codes-in-the-invoice#224033 "-- HikaShop version -- : 2.6.0. Bussines -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.0 -- Browser(s) name and version -- : all")*

It worked perfectly. Thank you!!

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

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