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

#   Display user custom field data in checkout cart

##

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

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 7 months ago [\#194870](#194870) by [AMAN](/forum/user/36550-aman "View AMAN's Profile")  *[Display user custom field data in checkout cart](/forum/27-checkout/875693-display-user-custom-field-data-in-checkout-cart#194870 "-- url of the page with the problem -- :   atelieraman.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  Hi, I am collecting some measurements from the user in the user table through custom fields. I need those measurements to appear in the cart at checkout, in a column after the product name and before the quantity and price. I have found the checkout cart view, but how do I call the data from the fields?  Also, is there any way I can have multiple measurement sets that the user can choose form, like I can have multiple addresses? Thanks, Irina")* was created by *[AMAN](/forum/user/36550-aman "View AMAN's Profile")*

-- url of the page with the problem -- : [ atelieraman.com](http://atelieraman.com)
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0

Hi,
I am collecting some measurements from the user in the user table through custom fields. I need those measurements to appear in the cart at checkout, in a column after the product name and before the quantity and price. I have found the checkout cart view, but how do I call the data from the fields?

Also, is there any way I can have multiple measurement sets that the user can choose form, like I can have multiple addresses?
Thanks,
Irina

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 7 months ago [\#194895](#194895) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display user custom field data in checkout cart](/forum/27-checkout/875693-display-user-custom-field-data-in-checkout-cart#194895 "-- url of the page with the problem -- :   atelieraman.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  Hi, I am collecting some measurements from the user in the user table through custom fields. I need those measurements to appear in the cart at checkout, in a column after the product name and before the quantity and price. I have found the checkout cart view, but how do I call the data from the fields?  Also, is there any way I can have multiple measurement sets that the user can choose form, like I can have multiple addresses? Thanks, Irina")*

Hi,

In the checkout/cart view, that you can edit under the menu Display&gt;Views, you can use such code:
&lt;?php
$user = hikashop_loadUser(true);
echo $user-&gt;custom_field;
?&gt;

Where custom_field is the column name of your custom field of the table user.
The custom user fields do not support multiple sets of data per user like custom address fields, which are made for that. I don't see an easy way to do that for custom user fields beside creating several times the same fields.

The following user(s) said Thank You: [AMAN](/forum/user/36550-aman "View AMAN's Profile")

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 7 months ago [\#195188](#195188) by [AMAN](/forum/user/36550-aman "View AMAN's Profile")  Replied by *[AMAN](/forum/user/36550-aman "View AMAN's Profile")* on topic *[Display user custom field data in checkout cart](/forum/27-checkout/875693-display-user-custom-field-data-in-checkout-cart#195188 "-- url of the page with the problem -- :   atelieraman.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  Hi, I am collecting some measurements from the user in the user table through custom fields. I need those measurements to appear in the cart at checkout, in a column after the product name and before the quantity and price. I have found the checkout cart view, but how do I call the data from the fields?  Also, is there any way I can have multiple measurement sets that the user can choose form, like I can have multiple addresses? Thanks, Irina")*

That works great, thank you!
Can you also give me the code for displaying the custom filed label as well as the value?
Thank you so much for your help!
Irina

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 7 months ago [\#195209](#195209) by [AMAN](/forum/user/36550-aman "View AMAN's Profile")  Replied by *[AMAN](/forum/user/36550-aman "View AMAN's Profile")* on topic *[Display user custom field data in checkout cart](/forum/27-checkout/875693-display-user-custom-field-data-in-checkout-cart#195209 "-- url of the page with the problem -- :   atelieraman.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  Hi, I am collecting some measurements from the user in the user table through custom fields. I need those measurements to appear in the cart at checkout, in a column after the product name and before the quantity and price. I have found the checkout cart view, but how do I call the data from the fields?  Also, is there any way I can have multiple measurement sets that the user can choose form, like I can have multiple addresses? Thanks, Irina")*

Can you please also let me know how to make that show up in the email notification as well?

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 7 months ago [\#195228](#195228) by [AMAN](/forum/user/36550-aman "View AMAN's Profile")  Replied by *[AMAN](/forum/user/36550-aman "View AMAN's Profile")* on topic *[Display user custom field data in checkout cart](/forum/27-checkout/875693-display-user-custom-field-data-in-checkout-cart#195228 "-- url of the page with the problem -- :   atelieraman.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  Hi, I am collecting some measurements from the user in the user table through custom fields. I need those measurements to appear in the cart at checkout, in a column after the product name and before the quantity and price. I have found the checkout cart view, but how do I call the data from the fields?  Also, is there any way I can have multiple measurement sets that the user can choose form, like I can have multiple addresses? Thanks, Irina")*

Thank you so much for your help!
Another question now, since I can't write php: how can I display the content of a custom field from a previous checkout step in the checkout cart?
I have an observations custom field in the fields checkout view, and I want to show those observations in a td in the cart in the last checkout step.
Thanks!

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 7 months ago [\#195239](#195239) by [AMAN](/forum/user/36550-aman "View AMAN's Profile")  Replied by *[AMAN](/forum/user/36550-aman "View AMAN's Profile")* on topic *[Display user custom field data in checkout cart](/forum/27-checkout/875693-display-user-custom-field-data-in-checkout-cart#195239 "-- url of the page with the problem -- :   atelieraman.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  Hi, I am collecting some measurements from the user in the user table through custom fields. I need those measurements to appear in the cart at checkout, in a column after the product name and before the quantity and price. I have found the checkout cart view, but how do I call the data from the fields?  Also, is there any way I can have multiple measurement sets that the user can choose form, like I can have multiple addresses? Thanks, Irina")*

Ok,I inserted this code:
&lt;?php
$user = hikashop_loadUser(true);
echo $user-&gt;custom_field;
?&gt;

in the backend, order_additional view, to preserve the measurements. The problem is that is reading the info of the admin not of the customer. What modifications should I make to read the customer's data?

Thanks!

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

11 years 7 months ago [\#195273](#195273) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display user custom field data in checkout cart](/forum/27-checkout/875693-display-user-custom-field-data-in-checkout-cart#195273 "-- url of the page with the problem -- :   atelieraman.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  Hi, I am collecting some measurements from the user in the user table through custom fields. I need those measurements to appear in the cart at checkout, in a column after the product name and before the quantity and price. I have found the checkout cart view, but how do I call the data from the fields?  Also, is there any way I can have multiple measurement sets that the user can choose form, like I can have multiple addresses? Thanks, Irina")*

Hi,

Yes in the email you can also use PHP yes (but the "loadUser" will load the current user).
So you can use $data-&gt;customer to access to the order customer.
Or you can also use the HikaShop email tags like Code:

{VAR:user.custom_field}

Regards,

---

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

The following user(s) said Thank You: [AMAN](/forum/user/36550-aman "View AMAN's Profile")

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

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

[](#top)
