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

#   Getting the product name instead of product code

##

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

Less More

- Posts: 27
- Thank you received: 0
-
-

13 years 11 months ago [\#80584](#80584) by [sylph](/forum/user/7663-sylph "View sylph's Profile")  *[Getting the product name instead of product code](/forum/2-general-talk-about-hikashop/76464-getting-the-product-name-instead-of-product-code#80584 "Hi,  In the Hikashop admin section, under &quot;Orders&quot;, the products bought by customers are listed by the product code instead of product name. The same in the invoice as well. How can I change it to display the product name instead?  I look into the invoice.php, there's something like this :  if(hikashop&#95;level(2) &amp;&amp; !empty($this-&gt;fields)){ foreach($this-&gt;fields as $field){  $namekey = $field-&gt;field&#95;namekey; if(empty($product-&gt;$namekey)){ continue; } echo ''.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$product-&gt;$namekey).''; } }  How can I change this to make it display the product name instead? Thank you!")* was created by *[sylph](/forum/user/7663-sylph "View sylph's Profile")*

Hi,

In the Hikashop admin section, under "Orders", the products bought by customers are listed by the product code instead of product name. The same in the invoice as well. How can I change it to display the product name instead?

I look into the invoice.php, there's something like this :

if(hikashop_level(2) &amp;&amp; !empty($this-&gt;fields)){
foreach($this-&gt;fields as $field){

$namekey = $field-&gt;field_namekey;
if(empty($product-&gt;$namekey)){
continue;
}
echo '&lt;p class="hikashop_order_item_'.$namekey.'"&gt;'.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$product-&gt;$namekey).'&lt;/p&gt;'; }
}

How can I change this to make it display the product name instead? Thank you!

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

13 years 11 months ago [\#80606](#80606) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Getting the product name instead of product code](/forum/2-general-talk-about-hikashop/76464-getting-the-product-name-instead-of-product-code#80606 "Hi,  In the Hikashop admin section, under &quot;Orders&quot;, the products bought by customers are listed by the product code instead of product name. The same in the invoice as well. How can I change it to display the product name instead?  I look into the invoice.php, there's something like this :  if(hikashop&#95;level(2) &amp;&amp; !empty($this-&gt;fields)){ foreach($this-&gt;fields as $field){  $namekey = $field-&gt;field&#95;namekey; if(empty($product-&gt;$namekey)){ continue; } echo ''.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$product-&gt;$namekey).''; } }  How can I change this to make it display the product name instead? Thank you!")*

Hi,

The product name is always displayed as far as we know. I don't remember seeing anyone not having the product name and only the product code.

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

13 years 11 months ago [\#80614](#80614) by [sylph](/forum/user/7663-sylph "View sylph's Profile")  Replied by *[sylph](/forum/user/7663-sylph "View sylph's Profile")* on topic *[Getting the product name instead of product code](/forum/2-general-talk-about-hikashop/76464-getting-the-product-name-instead-of-product-code#80614 "Hi,  In the Hikashop admin section, under &quot;Orders&quot;, the products bought by customers are listed by the product code instead of product name. The same in the invoice as well. How can I change it to display the product name instead?  I look into the invoice.php, there's something like this :  if(hikashop&#95;level(2) &amp;&amp; !empty($this-&gt;fields)){ foreach($this-&gt;fields as $field){  $namekey = $field-&gt;field&#95;namekey; if(empty($product-&gt;$namekey)){ continue; } echo ''.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$product-&gt;$namekey).''; } }  How can I change this to make it display the product name instead? Thank you!")*

Hi,

Thanks for your response. Do take a look at the attachment, it is displayed in this manner. This is not the product name , the product name is just Beef

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NDY0LWdldHRpbmctdGhlLXByb2R1Y3QtbmFtZS1pbnN0ZWFkLW9mLXByb2R1Y3QtY29kZT90bXBsPW1hcmtkb3du) 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 [\#80642](#80642) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Getting the product name instead of product code](/forum/2-general-talk-about-hikashop/76464-getting-the-product-name-instead-of-product-code#80642 "Hi,  In the Hikashop admin section, under &quot;Orders&quot;, the products bought by customers are listed by the product code instead of product name. The same in the invoice as well. How can I change it to display the product name instead?  I look into the invoice.php, there's something like this :  if(hikashop&#95;level(2) &amp;&amp; !empty($this-&gt;fields)){ foreach($this-&gt;fields as $field){  $namekey = $field-&gt;field&#95;namekey; if(empty($product-&gt;$namekey)){ continue; } echo ''.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$product-&gt;$namekey).''; } }  How can I change this to make it display the product name instead? Thank you!")*

Hi,

Could you give us a screenshot of your beef product configuration ?

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

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