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

#   Add column in invoice product list?

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 5 months ago [\#54436](#54436) by [glemon](/forum/user/7410-glemon "View glemon's Profile")  *[Add column in invoice product list?](/forum/4-how-to/54436-add-column-in-invoice-product-list#54436 "I have a custom field in product that i would like to show on the shipping invoice. How can I show this custom field?")* was created by *[glemon](/forum/user/7410-glemon "View glemon's Profile")*

I have a custom field in product that i would like to show on the shipping invoice. How can I show this custom field?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU0NDM2LWFkZC1jb2x1bW4taW4taW52b2ljZS1wcm9kdWN0LWxpc3Q/dG1wbD1tYXJrZG93bg==) 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: 86575
- Thank you received: 14318
-
-

14 years 5 months ago [\#54484](#54484) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add column in invoice product list?](/forum/4-how-to/54436-add-column-in-invoice-product-list#54484 "I have a custom field in product that i would like to show on the shipping invoice. How can I show this custom field?")*

You will have to edit the file "invoice" of the view "order" for your back end template via the menu Display-&gt;Views and add your code there to add the custom field column.

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 5 months ago [\#54552](#54552) by [glemon](/forum/user/7410-glemon "View glemon's Profile")  Replied by *[glemon](/forum/user/7410-glemon "View glemon's Profile")* on topic *[Re: Add column in invoice product list?](/forum/4-how-to/54436-add-column-in-invoice-product-list#54552 "I have a custom field in product that i would like to show on the shipping invoice. How can I show this custom field?")*

I have tried, as described in this thread: [ www.hikashop.com/en/forum/2-general-talk...g-invoice.html#38726](http://www.hikashop.com/en/forum/2-general-talk-about-hikashop/38726-custom-fields-in-shipping-invoice.html#38726)

But i don't know where to insert the code. My PHP-skills are not good, but I made an extra column in the product list, but it will not show the values of my custom field. The column I insert is blank. The heading is ok.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU0NDM2LWFkZC1jb2x1bW4taW4taW52b2ljZS1wcm9kdWN0LWxpc3Q/dG1wbD1tYXJrZG93bg==) 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: 86575
- Thank you received: 14318
-
-

14 years 5 months ago [\#54576](#54576) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add column in invoice product list?](/forum/4-how-to/54436-add-column-in-invoice-product-list#54576 "I have a custom field in product that i would like to show on the shipping invoice. How can I show this custom field?")*

Please give more information so that we can help you.
What code did you add so far ?
What custom field are you trying to display (could you do a screenshot of its options?) ?

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 1 week ago [\#75121](#75121) by [glemon](/forum/user/7410-glemon "View glemon's Profile")  Replied by *[glemon](/forum/user/7410-glemon "View glemon's Profile")* on topic *[Re: Add column in invoice product list?](/forum/4-how-to/54436-add-column-in-invoice-product-list#75121 "I have a custom field in product that i would like to show on the shipping invoice. How can I show this custom field?")*

I have a custum field called "Lokasjon" in the product table. I want to show this field in the invoice.
I know i should insert the code in the file "invoice" of the view "order".
But I cannot understand where to insert, and what code to add.

In the product list in the invoice I want this field "Lokasjon" to be before or after the excisting field "Product".

This is my settings for the field "Lokasjon":

[ ![Bilde1.png](/forum/attachment/6774) ](/forum/attachment/6774 "Bilde1.png")

- [ ![Bilde1.png](/forum/attachment/6774) ](/forum/attachment/6774 "Bilde1.png") [ ](/forum/attachment/6774?download=1 "Bilde1.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU0NDM2LWFkZC1jb2x1bW4taW4taW52b2ljZS1wcm9kdWN0LWxpc3Q/dG1wbD1tYXJrZG93bg==) 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: 86575
- Thank you received: 14318
-
-

14 years 1 week ago -  14 years 1 week ago [\#75456](#75456) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add column in invoice product list?](/forum/4-how-to/54436-add-column-in-invoice-product-list#75456 "I have a custom field in product that i would like to show on the shipping invoice. How can I show this custom field?")*

The product name is displayed by this line in the invoice:
&lt;?php echo $product-&gt;order_product_name.' '.$product-&gt;order_product_code;?&gt;

just add after it the code:
&lt;?php $productClass = hikashop_get('class.product');
$productData = $productClass-&gt;get($product-&gt;product_id);
echo $productData -&gt;lokasjon; ?&gt;

Last edit: 14 years 1 week ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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