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

#   Custom Field Data in Invoice/Orders

##

- **[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")**
- [![ichimonban's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30985.png)](/forum/user/30985-ichimonban "View ichimonban's Profile") Topic Author
- [ Offline](/forum/user/30985-ichimonban)

Less More

- Posts: 31
- Thank you received: 1
-
-
- [](http://www.michford.com)
-

12 years 8 months ago [\#146939](#146939) by [ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")  *[Custom Field Data in Invoice/Orders](/forum/35-orders-management/866397-custom-field-data-in-invoice-orders#146939 "-- url of the page with the problem -- :   rhinorush.com  -- HikaShop version -- : 2.2.3 Business -- Joomla version -- : 3.2.2 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome, 33.0.750 -- Error-message(debug-mod must be tuned on) -- : NA  I need to add data from custom fields, and I cannot locate documentation as to accomplish this task. I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.  I've got additional data fileds in user, address, and info  As well why is there now means to appy an existing address for a client as the shipping address")* was created by *[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")*

-- url of the page with the problem -- : [ rhinorush.com](http://rhinorush.com)
-- HikaShop version -- : 2.2.3 Business
-- Joomla version -- : 3.2.2
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : Chrome, 33.0.750
-- Error-message(debug-mod must be tuned on) -- : NA

I need to add data from custom fields, and I cannot locate documentation as to accomplish this task.
I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.

I've got additional data fileds in user, address, and info

As well why is there now means to appy an existing address for a client as the shipping address

---

MicahFord.com
VOLT2.com \| KLEANALL.com \| GRAVITYMedia.co

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#146971](#146971) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Custom Field Data in Invoice/Orders](/forum/35-orders-management/866397-custom-field-data-in-invoice-orders#146971 "-- url of the page with the problem -- :   rhinorush.com  -- HikaShop version -- : 2.2.3 Business -- Joomla version -- : 3.2.2 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome, 33.0.750 -- Error-message(debug-mod must be tuned on) -- : NA  I need to add data from custom fields, and I cannot locate documentation as to accomplish this task. I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.  I've got additional data fileds in user, address, and info  As well why is there now means to appy an existing address for a client as the shipping address")*

Hello,

I'm sorry but I really don't understand what you mean by "add data from custom fields". What do you want to add these data to?
Pleas be a bit more specific so we can help you with this ![:)](/media/kunena/emoticons/3.png ":)")

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

- **[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")**
- [![ichimonban's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30985.png)](/forum/user/30985-ichimonban "View ichimonban's Profile") Topic Author
- [ Offline](/forum/user/30985-ichimonban)

Less More

- Posts: 31
- Thank you received: 1
-
-
- [](http://www.michford.com)
-

12 years 8 months ago [\#146999](#146999) by [ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")  Replied by *[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")* on topic *[Custom Field Data in Invoice/Orders](/forum/35-orders-management/866397-custom-field-data-in-invoice-orders#146999 "-- url of the page with the problem -- :   rhinorush.com  -- HikaShop version -- : 2.2.3 Business -- Joomla version -- : 3.2.2 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome, 33.0.750 -- Error-message(debug-mod must be tuned on) -- : NA  I need to add data from custom fields, and I cannot locate documentation as to accomplish this task. I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.  I've got additional data fileds in user, address, and info  As well why is there now means to appy an existing address for a client as the shipping address")*

I need to add data that's entered into CUSTOM FIELDS by my sales staff.
These are a few of the custome fields I've added.
terms of service / user_terms
company name / user_company
Order Notes (for client) / order_notes
Rep / user_rep &amp; address_ rep.

I am using Hikashop as part of CRM solution, so my Sales team can create invoices for clients etc.

I've been trying to modify the "Views" ie "invoice" etc to bring the data from these fields into the invoices that are sent to the clients after an order is created.

I've tried to ass using "this-&gt;order-&gt;column_name" etc in a few variations that I've located in the forum but they aren't working. And I don't see any documents detailing how to get this functionality working.

---

MicahFord.com
VOLT2.com \| KLEANALL.com \| GRAVITYMedia.co

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

12 years 8 months ago [\#147170](#147170) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom Field Data in Invoice/Orders](/forum/35-orders-management/866397-custom-field-data-in-invoice-orders#147170 "-- url of the page with the problem -- :   rhinorush.com  -- HikaShop version -- : 2.2.3 Business -- Joomla version -- : 3.2.2 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome, 33.0.750 -- Error-message(debug-mod must be tuned on) -- : NA  I need to add data from custom fields, and I cannot locate documentation as to accomplish this task. I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.  I've got additional data fileds in user, address, and info  As well why is there now means to appy an existing address for a client as the shipping address")*

Hi,

All depend on the type of custom field.
The order custom field can be read directly in the order object. For the user custom field, you have to read them in the "order-&gt;user".

Displaying a custom field might require the hikashop field class to format them. The custom field only contains the value and if you have some special custom field (like a drop down) you will want to display the associated string for the value.
That is the goal of the function "display" of the field class.
If you do not have special custom field (text / textarea), you can display the raw value, it will work fine.
If you look at the HikaShop code if you want to have sample on "how display a custom field". But like said just before, it will depend on the type of the custom field.

Regards,

---

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

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

- **[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")**
- [![ichimonban's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30985.png)](/forum/user/30985-ichimonban "View ichimonban's Profile") Topic Author
- [ Offline](/forum/user/30985-ichimonban)

Less More

- Posts: 31
- Thank you received: 1
-
-
- [](http://www.michford.com)
-

12 years 8 months ago [\#147839](#147839) by [ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")  Replied by *[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")* on topic *[Custom Field Data in Invoice/Orders](/forum/35-orders-management/866397-custom-field-data-in-invoice-orders#147839 "-- url of the page with the problem -- :   rhinorush.com  -- HikaShop version -- : 2.2.3 Business -- Joomla version -- : 3.2.2 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome, 33.0.750 -- Error-message(debug-mod must be tuned on) -- : NA  I need to add data from custom fields, and I cannot locate documentation as to accomplish this task. I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.  I've got additional data fileds in user, address, and info  As well why is there now means to appy an existing address for a client as the shipping address")*

I see that there's the "order" column available, and I can add there, additional selects/values ie (payment terms) and these are set and displayed per invoice/order.
Therefore I created a drop select with my values and column "order_terms"

It would be beneficial to set this same value (payment terms) ie 2/10 Net 30 instead in the user column with the "User/Customer" info ie (user_terms) and then have that display on any invoice created where the customer selected/set has also the value for "user_terms" set. This way I or my Sales Monkeys can set the payment terms once in client settings,and not have to set it for every order.

As well I'm working on created a drip system where my clients have an option to choose a regular purchase/ship interval and when their invoices/orders are created these values set with the "customer/user" are displayed on all of their invoices/ orders.

is there an example of the code I would need to place in the view for invoices to display the set values?

Regards

---

MicahFord.com
VOLT2.com \| KLEANALL.com \| GRAVITYMedia.co

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

12 years 8 months ago [\#147862](#147862) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Field Data in Invoice/Orders](/forum/35-orders-management/866397-custom-field-data-in-invoice-orders#147862 "-- url of the page with the problem -- :   rhinorush.com  -- HikaShop version -- : 2.2.3 Business -- Joomla version -- : 3.2.2 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome, 33.0.750 -- Error-message(debug-mod must be tuned on) -- : NA  I need to add data from custom fields, and I cannot locate documentation as to accomplish this task. I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.  I've got additional data fileds in user, address, and info  As well why is there now means to appy an existing address for a client as the shipping address")*

Hi,

You can use the this-&gt;order-&gt;customer object for the custom user fields. So it would be:
echo $this-&gt;order-&gt;customer-&gt;column_name;

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

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

- **[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")**
- [![ichimonban's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30985.png)](/forum/user/30985-ichimonban "View ichimonban's Profile") Topic Author
- [ Offline](/forum/user/30985-ichimonban)

Less More

- Posts: 31
- Thank you received: 1
-
-
- [](http://www.michford.com)
-

12 years 8 months ago [\#147921](#147921) by [ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")  Replied by *[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")* on topic *[Custom Field Data in Invoice/Orders](/forum/35-orders-management/866397-custom-field-data-in-invoice-orders#147921 "-- url of the page with the problem -- :   rhinorush.com  -- HikaShop version -- : 2.2.3 Business -- Joomla version -- : 3.2.2 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome, 33.0.750 -- Error-message(debug-mod must be tuned on) -- : NA  I need to add data from custom fields, and I cannot locate documentation as to accomplish this task. I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.  I've got additional data fileds in user, address, and info  As well why is there now means to appy an existing address for a client as the shipping address")*

That works rather well, The only thing is that it displays teh Raw Value of the column, is there a way to display the label value?

Regards

---

MicahFord.com
VOLT2.com \| KLEANALL.com \| GRAVITYMedia.co

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

12 years 8 months ago [\#148254](#148254) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Custom Field Data in Invoice/Orders](/forum/35-orders-management/866397-custom-field-data-in-invoice-orders#148254 "-- url of the page with the problem -- :   rhinorush.com  -- HikaShop version -- : 2.2.3 Business -- Joomla version -- : 3.2.2 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome, 33.0.750 -- Error-message(debug-mod must be tuned on) -- : NA  I need to add data from custom fields, and I cannot locate documentation as to accomplish this task. I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.  I've got additional data fileds in user, address, and info  As well why is there now means to appy an existing address for a client as the shipping address")*

Hi,

What do you mean by raw value and label value ?
There is only one value stored in database for this kind of field.

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

- **[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")**
- [![ichimonban's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30985.png)](/forum/user/30985-ichimonban "View ichimonban's Profile") Topic Author
- [ Offline](/forum/user/30985-ichimonban)

Less More

- Posts: 31
- Thank you received: 1
-
-
- [](http://www.michford.com)
-

12 years 8 months ago [\#148258](#148258) by [ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")  Replied by *[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")* on topic *[Custom Field Data in Invoice/Orders](/forum/35-orders-management/866397-custom-field-data-in-invoice-orders#148258 "-- url of the page with the problem -- :   rhinorush.com  -- HikaShop version -- : 2.2.3 Business -- Joomla version -- : 3.2.2 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome, 33.0.750 -- Error-message(debug-mod must be tuned on) -- : NA  I need to add data from custom fields, and I cannot locate documentation as to accomplish this task. I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.  I've got additional data fileds in user, address, and info  As well why is there now means to appy an existing address for a client as the shipping address")*

Each Custom Field allows for a storage/db value and a label value

When I use the suggested code, the "storage/db" value is displayed on the invoice not the " label value

for instance:
i have created a field called user_terms (terms of payment set for each client)
there are several values; 0 = imediate &#124; 1 = Due Upon Receipt &#124; 2 - 2/10 Net30 etc...

So on the invoice for a client that pays Net 30, printed to the invoice is the storage/db value of "2" when I would prefer "2/10 Net30"

---

MicahFord.com
VOLT2.com \| KLEANALL.com \| GRAVITYMedia.co

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

12 years 8 months ago [\#148336](#148336) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom Field Data in Invoice/Orders](/forum/35-orders-management/866397-custom-field-data-in-invoice-orders#148336 "-- url of the page with the problem -- :   rhinorush.com  -- HikaShop version -- : 2.2.3 Business -- Joomla version -- : 3.2.2 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome, 33.0.750 -- Error-message(debug-mod must be tuned on) -- : NA  I need to add data from custom fields, and I cannot locate documentation as to accomplish this task. I have added terms of service, company name for user, notes to customer etc. and what else i've found in the forum and wiki doesn't apply and or function. Please advise.  I've got additional data fileds in user, address, and info  As well why is there now means to appy an existing address for a client as the shipping address")*

Hi,

> Displaying a custom field might require the hikashop field class to format them. The custom field only contains the value and if you have some special custom field (like a drop down) you will want to display the associated string for the value.
> That is the goal of the function "display" of the field class.
> If you do not have special custom field (text / textarea), you can display the raw value, it will work fine.
> You can look at the HikaShop code if you want to have sample on "how display a custom field". But like said just before, it will depend on the type of the custom field.

Regards,

---

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

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

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