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

#   Display custom fields (textarea) on invoices

##

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 10 months ago [\#223151](#223151) by [N1G3L](/forum/user/30545-n1g3l "View N1G3L's Profile")  *[Display custom fields (textarea) on invoices](/forum/35-orders-management/880915-display-custom-fields-textarea-on-invoices#223151 "-- HikaShop version -- : 2.7 -- Joomla version -- : 2.5  Hi, I have added a custom field (textarea) for a customer to add Shipping notes during checkout. I want the data from this textarea to show up on the invoices. I have tried adding the code to the invoice template:  order-&gt;shippingnotes; ?&gt;  where 'shippingnotes' is the column name. When I add this to the invoice template it only shows the string 'Shipping Notes:' but does not show the info that the customer filled out.  Any ideas?")* was created by *[N1G3L](/forum/user/30545-n1g3l "View N1G3L's Profile")*

-- HikaShop version -- : 2.7
-- Joomla version -- : 2.5

Hi,
I have added a custom field (textarea) for a customer to add Shipping notes during checkout. I want the data from this textarea to show up on the invoices. I have tried adding the code to the invoice template:

&lt;?php echo "Shipping Notes: ".$this-&gt;order-&gt;shippingnotes; ?&gt;

where 'shippingnotes' is the column name. When I add this to the invoice template it only shows the string 'Shipping Notes:' but does not show the info that the customer filled out.

Any ideas?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MDkxNS1kaXNwbGF5LWN1c3RvbS1maWVsZHMtdGV4dGFyZWEtb24taW52b2ljZXM/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 10 months ago [\#223198](#223198) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display custom fields (textarea) on invoices](/forum/35-orders-management/880915-display-custom-fields-textarea-on-invoices#223198 "-- HikaShop version -- : 2.7 -- Joomla version -- : 2.5  Hi, I have added a custom field (textarea) for a customer to add Shipping notes during checkout. I want the data from this textarea to show up on the invoices. I have tried adding the code to the invoice template:  order-&gt;shippingnotes; ?&gt;  where 'shippingnotes' is the column name. When I add this to the invoice template it only shows the string 'Shipping Notes:' but does not show the info that the customer filled out.  Any ideas?")*

Hi,

In which file exactly are you adding that code ?
Do you use the PDF invoice plugin ?
Could you provide a screenshot of the settings of your custom field ?

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 10 months ago [\#223233](#223233) by [N1G3L](/forum/user/30545-n1g3l "View N1G3L's Profile")  Replied by *[N1G3L](/forum/user/30545-n1g3l "View N1G3L's Profile")* on topic *[Display custom fields (textarea) on invoices](/forum/35-orders-management/880915-display-custom-fields-textarea-on-invoices#223233 "-- HikaShop version -- : 2.7 -- Joomla version -- : 2.5  Hi, I have added a custom field (textarea) for a customer to add Shipping notes during checkout. I want the data from this textarea to show up on the invoices. I have tried adding the code to the invoice template:  order-&gt;shippingnotes; ?&gt;  where 'shippingnotes' is the column name. When I add this to the invoice template it only shows the string 'Shipping Notes:' but does not show the info that the customer filled out.  Any ideas?")*

Hi Nicolas,
I am editing the invoice file under Display&gt;Views. I am not using the PDF invoice plugin

Attached (screenshot.jpg) is an image of how my custom field is set up. And screenshot1.jpg is how it is showing up on the invoice

- [ ![screenshot.jpg](/forum/attachment/28255) ](/forum/attachment/28255 "screenshot.jpg") [ ](/forum/attachment/28255?download=1 "screenshot.jpg")
- [ ![screenshot1.jpg](/forum/attachment/28256) ](/forum/attachment/28256 "screenshot1.jpg") [ ](/forum/attachment/28256?download=1 "screenshot1.jpg")

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

10 years 10 months ago [\#223235](#223235) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display custom fields (textarea) on invoices](/forum/35-orders-management/880915-display-custom-fields-textarea-on-invoices#223235 "-- HikaShop version -- : 2.7 -- Joomla version -- : 2.5  Hi, I have added a custom field (textarea) for a customer to add Shipping notes during checkout. I want the data from this textarea to show up on the invoices. I have tried adding the code to the invoice template:  order-&gt;shippingnotes; ?&gt;  where 'shippingnotes' is the column name. When I add this to the invoice template it only shows the string 'Shipping Notes:' but does not show the info that the customer filled out.  Any ideas?")*

Hi,

Your custom field is an "address" custom field ; so you won't be able to access to the data through " $this-&gt;order-&gt;shippingnotes " because it is not an order custom field.
You should read the content in the shipping address data of the order.

Regards,

---

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

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

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 10 months ago [\#223420](#223420) by [N1G3L](/forum/user/30545-n1g3l "View N1G3L's Profile")  Replied by *[N1G3L](/forum/user/30545-n1g3l "View N1G3L's Profile")* on topic *[Display custom fields (textarea) on invoices](/forum/35-orders-management/880915-display-custom-fields-textarea-on-invoices#223420 "-- HikaShop version -- : 2.7 -- Joomla version -- : 2.5  Hi, I have added a custom field (textarea) for a customer to add Shipping notes during checkout. I want the data from this textarea to show up on the invoices. I have tried adding the code to the invoice template:  order-&gt;shippingnotes; ?&gt;  where 'shippingnotes' is the column name. When I add this to the invoice template it only shows the string 'Shipping Notes:' but does not show the info that the customer filled out.  Any ideas?")*

And how would I go about doing that?
I've tried: &lt;?php echo "Shipping Notes: ".$this-&gt;shipping_address-&gt;shippingnotes; ?&gt;
and : &lt;?php echo "Shipping Notes: ".$this-&gt;address-&gt;shippingnotes; ?&gt;

Am I missing something?

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

10 years 10 months ago [\#223421](#223421) by [N1G3L](/forum/user/30545-n1g3l "View N1G3L's Profile")  Replied by *[N1G3L](/forum/user/30545-n1g3l "View N1G3L's Profile")* on topic *[Display custom fields (textarea) on invoices](/forum/35-orders-management/880915-display-custom-fields-textarea-on-invoices#223421 "-- HikaShop version -- : 2.7 -- Joomla version -- : 2.5  Hi, I have added a custom field (textarea) for a customer to add Shipping notes during checkout. I want the data from this textarea to show up on the invoices. I have tried adding the code to the invoice template:  order-&gt;shippingnotes; ?&gt;  where 'shippingnotes' is the column name. When I add this to the invoice template it only shows the string 'Shipping Notes:' but does not show the info that the customer filled out.  Any ideas?")*

Actually I got it to display by adding {shippingnotes} to the address_template file, but what I really want to do is have it displayed at the bottom of the invoice under Shipping method, Payment method (see attachment)

- [ ![screenshot3.jpg](/forum/attachment/28308) ](/forum/attachment/28308 "screenshot3.jpg") [ ](/forum/attachment/28308?download=1 "screenshot3.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MDkxNS1kaXNwbGF5LWN1c3RvbS1maWVsZHMtdGV4dGFyZWEtb24taW52b2ljZXM/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 10 months ago [\#223455](#223455) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display custom fields (textarea) on invoices](/forum/35-orders-management/880915-display-custom-fields-textarea-on-invoices#223455 "-- HikaShop version -- : 2.7 -- Joomla version -- : 2.5  Hi, I have added a custom field (textarea) for a customer to add Shipping notes during checkout. I want the data from this textarea to show up on the invoices. I have tried adding the code to the invoice template:  order-&gt;shippingnotes; ?&gt;  where 'shippingnotes' is the column name. When I add this to the invoice template it only shows the string 'Shipping Notes:' but does not show the info that the customer filled out.  Any ideas?")*

Hi,

Custom address fields are there to complete the addresses.
If you want fields related to the whole order, then you should instead create custom fields of the table "order" via the menu Display&gt;Custom fields.
The customer will also be able to fill them during the checkout and they will appear where you want on your invoices.

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

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

[](#top)
