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

#   Display characteristics name in checkout

##

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

Less More

- Posts: 13
- Thank you received: 0
-
-

14 years 5 months ago [\#53060](#53060) by [LVlidbiters](/forum/user/5752-lvlidbiters "View LVlidbiters's Profile")  *[Display characteristics name in checkout](/forum/4-how-to/53060-display-characteristics-name-in-checkout#53060 "Hi, I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields? When I print&#95;r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names. So the question is - how do I get characteristics names in that array?")* was created by *[LVlidbiters](/forum/user/5752-lvlidbiters "View LVlidbiters's Profile")*

Hi,
I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields?
When I print_r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names.
So the question is - how do I get characteristics names in that array?

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

14 years 5 months ago [\#53161](#53161) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Display characteristics name in checkout](/forum/4-how-to/53060-display-characteristics-name-in-checkout#53161 "Hi, I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields? When I print&#95;r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names. So the question is - how do I get characteristics names in that array?")*

Hi LVlidbiters,

Try with that in a column: Code:

foreach($row-&gt;characteristics as $characteristic){ echo $characteristic-&gt;characteristic_value; }

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

Less More

- Posts: 86560
- Thank you received: 14306
-
-

14 years 5 months ago [\#53237](#53237) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display characteristics name in checkout](/forum/4-how-to/53060-display-characteristics-name-in-checkout#53237 "Hi, I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields? When I print&#95;r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names. So the question is - how do I get characteristics names in that array?")*

The characteristics values are displayed automatically if you turn on the "append characteristic values to product name" option of the Display tab of the configuration.
There is also a span with a CSS class around them so that you can personnalize the style of the values.

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

14 years 5 months ago [\#53240](#53240) by [LVlidbiters](/forum/user/5752-lvlidbiters "View LVlidbiters's Profile")  Replied by *[LVlidbiters](/forum/user/5752-lvlidbiters "View LVlidbiters's Profile")* on topic *[Re: Display characteristics name in checkout](/forum/4-how-to/53060-display-characteristics-name-in-checkout#53240 "Hi, I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields? When I print&#95;r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names. So the question is - how do I get characteristics names in that array?")*

No, you didn't understand me correctly.
I want to display characteristics value along with its name. For example, if a shirt is sold and its characteristic is size, then I want them to display in the checkout table like this:
Shirt, Size: L. By default I can only get Shirt L. I need "size" to be displayed also.

And no, can not use custom item fields for this.

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

Less More

- Posts: 86560
- Thank you received: 14306
-
-

14 years 5 months ago [\#53242](#53242) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display characteristics name in checkout](/forum/4-how-to/53060-display-characteristics-name-in-checkout#53242 "Hi, I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields? When I print&#95;r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names. So the question is - how do I get characteristics names in that array?")*

In that case, you could either turn off the option and do like Xavier says and customize that checkout/cart.php view file,

or you could edit the file administrator/components/com_hikashop/classes/product.php and change the code there to have the characteristic name added.

Option one is preferable to avoid modifying the core code of HikaShop.

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

14 years 5 months ago [\#53245](#53245) by [LVlidbiters](/forum/user/5752-lvlidbiters "View LVlidbiters's Profile")  Replied by *[LVlidbiters](/forum/user/5752-lvlidbiters "View LVlidbiters's Profile")* on topic *[Re: Display characteristics name in checkout](/forum/4-how-to/53060-display-characteristics-name-in-checkout#53245 "Hi, I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields? When I print&#95;r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names. So the question is - how do I get characteristics names in that array?")*

Thanks, but like I said in my first post, there are only characteristic values in that array in checkout/cart.php view available.
So the only option for me is the second one.

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

Less More

- Posts: 86560
- Thank you received: 14306
-
-

14 years 5 months ago [\#53246](#53246) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display characteristics name in checkout](/forum/4-how-to/53060-display-characteristics-name-in-checkout#53246 "Hi, I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields? When I print&#95;r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names. So the question is - how do I get characteristics names in that array?")*

In $row-&gt;characteristics yes, but in the $rows array, you should find additional entries for the main products info which should include the characteristics name. Then, you would have to cross reference the $row-&gt;characteristic_parent_id and the characteristic_id of the characteristics in the main product in order to get the names.

The following user(s) said Thank You: [LVlidbiters](/forum/user/5752-lvlidbiters "View LVlidbiters's Profile")

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

14 years 5 months ago [\#53247](#53247) by [LVlidbiters](/forum/user/5752-lvlidbiters "View LVlidbiters's Profile")  Replied by *[LVlidbiters](/forum/user/5752-lvlidbiters "View LVlidbiters's Profile")* on topic *[Re: Display characteristics name in checkout](/forum/4-how-to/53060-display-characteristics-name-in-checkout#53247 "Hi, I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields? When I print&#95;r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names. So the question is - how do I get characteristics names in that array?")*

Oh, thanks! This should really help me ![:)](/media/kunena/emoticons/3.png ":)")

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

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

Less More

- Posts: 9
- Thank you received: 1
-
-

12 years 10 months ago [\#139264](#139264) by [thewebtailors](/forum/user/30632-thewebtailors "View thewebtailors's Profile")  Replied by *[thewebtailors](/forum/user/30632-thewebtailors "View thewebtailors's Profile")* on topic *[Re: Display characteristics name in checkout](/forum/4-how-to/53060-display-characteristics-name-in-checkout#139264 "Hi, I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields? When I print&#95;r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names. So the question is - how do I get characteristics names in that array?")*

This did the trick for me:
&lt;?php foreach($row-&gt;characteristics as $characteristic){
echo "&lt;br /&gt;&lt;span class='characteristic'&gt;".$this-&gt;orderInfos-&gt;products[$i-1]-&gt;characteristics[$characteristic-&gt;characteristic_parent_id]-&gt;characteristic_value.": ".$characteristic-&gt;characteristic_value."&lt;/span&gt;";
} ?&gt;
Maybe it will help somebody.

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

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

Less More

- Posts: 86560
- Thank you received: 14306
-
-

9 years 6 months ago [\#268375](#268375) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display characteristics name in checkout](/forum/4-how-to/53060-display-characteristics-name-in-checkout#268375 "Hi, I was wondering, if one could get to display characteristics name and value in checkout cart just like the custom item fields? When I print&#95;r($row) in checkout/cart.php view, I can see there is characteristics array. But that array has only characteristics id's and not names. So the question is - how do I get characteristics names in that array?")*

Hi,

For anyone reading this topic. The modification is now different with HikaShop 3 :
[ www.hikashop.com/forum/checkout/889971-d...checkout.html#268355](https://www.hikashop.com/forum/checkout/889971-display-characteristics-name-and-value-in-list-form-in-checkout.html#268355)

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

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