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

#   Custom Product Field in the Invoice

##

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

Less More

- Posts: 103
- Thank you received: 0
-
-

13 years 11 months ago [\#77908](#77908) by [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")  *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#77908 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")* was created by *[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")*

Hi Guys,

In the orders there is an "Additional Information" bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.

Thoughts? Hmm I bet it's in one of the Display Views.

Thanks!

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#77924](#77924) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#77924 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")*

Hi,

To add the product custom field in the order, you will have to edit the view "order / show".
And display the values wanted in the foreach.

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

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

Less More

- Posts: 103
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#78373](#78373) by [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")  Replied by *[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")* on topic *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#78373 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")*

Hi Xavier,

I have added the following lines in both order/show and order/invoice Code:

&lt;span class="hikashop_product_code_order"&gt;&lt;?php echo $product-&gt;order_product_code; ?&gt;&lt;/span&gt; /* NEW LINES ADDED BELOW */ &lt;?php $class=hikashop_get('class.product'); $prod = $class-&gt;get($product-&gt;product_id); echo $prod-&gt;fundstocharity; ?&gt;

where "fundstocharity" is my column name in my table product. (text field) also I have enabled backend listing but I still can't see it when I click on existing orders or when I click on the invoice button.. and I even created a new order worrying that maybe it dodn't fix it to existing ones. Thoughts? My PHP skills are less-than-standard.

THANKS!

Last edit: 13 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

13 years 11 months ago [\#78392](#78392) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#78392 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")*

Hi,

You code looks good.
Are you sure that you have edit the view for the right backend template ?
You can check it by writing Code:

echo 'Funds to charity: ' . $prod-&gt;fundstocharity;

Regards,

---

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

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

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

Less More

- Posts: 103
- Thank you received: 0
-
-

13 years 11 months ago [\#78473](#78473) by [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")  Replied by *[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")* on topic *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#78473 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")*

Hi Jerome,

Tried that.. can't see it printed anywhere.. double checked I have the correct column name.. took the column bit out and just tried to echo 'Funds to Charity'; no luck

Here is a screen print of what views I customized with the code.. you can see I have it on my ju_joomla template trying it in both order/show and order/invoice.. (did different)..

Hmmmm

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

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

13 years 11 months ago [\#78477](#78477) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#78477 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")*

Hi,

I don't know for your frontend template but your backend template is "bluestork".

Regards,

---

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

The following user(s) said Thank You: [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")

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

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

Less More

- Posts: 103
- Thank you received: 0
-
-

13 years 11 months ago [\#78479](#78479) by [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")  Replied by *[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")* on topic *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#78479 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")*

THANK YOU! I started editing after I thought about your hint about the correct template.. I have never edited a display that was "back end" before. Didn't really think it had a different template.

All I can add to this is "DUH"

THANK YOU THANK YOU

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

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

Less More

- Posts: 103
- Thank you received: 0
-
-

13 years 11 months ago [\#78617](#78617) by [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")  Replied by *[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")* on topic *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#78617 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")*

Ok, obviously I haven't learned my lesson...

I have it working.. I KNOW I am editing the right template. But I am trying to do the right thing and put the title in the LANGUAGE file.

Entry in language looks like this:

FUNDS="Donation"

and the echo entry in my code is:

echo JText::_('FUNDS') . $prod-&gt;fundstocharity;

but in my invoice it just reads FUNDS $3.00 etc.. it isn't using the language file to translate?

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

13 years 11 months ago [\#78621](#78621) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#78621 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")*

Hi,

Do your modify the language file or do you use the "override" section ?
The "override" part could not be loaded by Joomla sometimes, it is a limitation that we are trying to bypass.
Which Joomla version are you using ? It would help us for our tests.

Regards,

---

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

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

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

Less More

- Posts: 103
- Thank you received: 0
-
-

13 years 11 months ago [\#78622](#78622) by [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")  Replied by *[SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")* on topic *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#78622 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")*

Hi,

I am using the Override section. I have had success with this in other areas on other templates. I can put the words in for now.. just was wondering what I was missing. I am using the last latest version (prior to the upgrade a couple of weeks ago, 2.5 sounds right but that could be Joomla) Business Edition. I just got it all working so I am afraid to upgrade!! ![;)](/media/kunena/emoticons/11.png ";)")

Cheers

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

13 years 11 months ago [\#78624](#78624) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom Product Field in the Invoice](/forum/2-general-talk-about-hikashop/76009-custom-product-field-in-the-invoice#78624 "Hi Guys,  In the orders there is an &quot;Additional Information&quot; bit I can see one of my custom fields for the order.. but I can't see how to put on a custom field that I've attached to each product.  Thoughts? Hmm I bet it's in one of the Display Views.  Thanks!")*

Hi,

Please try to add your translation in the "language" part.
As I said, the "override" part would not work everywhere, specially in emails (due a language context switch).

Regards,

---

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

The following user(s) said Thank You: [SuzyBGood](/forum/user/8544-suzybgood "View SuzyBGood's Profile")

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

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

[](#top)
