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

#   How can I export custom field titles vs. values?

##

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

Less More

- Posts: 69
- Thank you received: 1
-
-
-
-

11 years 11 months ago [\#182819](#182819) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  *[How can I export custom field titles vs. values?](/forum/37-import-export-csv-xls/873554-how-can-i-export-custom-field-titles-vs-values#182819 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hi,  I have a radio button custom field with values and titles.  My custom field values are a, b, c... x, y, z, aa, ab, ac etc. My custom field titles are &quot;cotton&quot;, &quot;cotton terrycloth&quot;, &quot;  I use these fields as filters, and match them to inventory items.  When I export an inventory item, I get values like a,b,c etc. for my custom field values, but I would like to see the custom field titles and not the values.  How can I export the custom field titles instead of the value?  Thanks,  Dennis")* was created by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

Hi,

I have a radio button custom field with values and titles.

My custom field values are a, b, c... x, y, z, aa, ab, ac etc.
My custom field titles are "cotton", "cotton terrycloth", "

I use these fields as filters, and match them to inventory items.

When I export an inventory item, I get values like a,b,c etc. for my custom field values, but I would like to see the custom field titles and not the values.

How can I export the custom field titles instead of the value?

Thanks,

Dennis

---

\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Dennis Kmetz

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

11 years 11 months ago [\#183024](#183024) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How can I export custom field titles vs. values?](/forum/37-import-export-csv-xls/873554-how-can-i-export-custom-field-titles-vs-values#183024 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hi,  I have a radio button custom field with values and titles.  My custom field values are a, b, c... x, y, z, aa, ab, ac etc. My custom field titles are &quot;cotton&quot;, &quot;cotton terrycloth&quot;, &quot;  I use these fields as filters, and match them to inventory items.  When I export an inventory item, I get values like a,b,c etc. for my custom field values, but I would like to see the custom field titles and not the values.  How can I export the custom field titles instead of the value?  Thanks,  Dennis")*

Hi,

Why not change the values directly in the custom fields in order to have more explicit values ?

For the product which already have the value, we don't have exports like that, it will require some modifications in the code.

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

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

Less More

- Posts: 69
- Thank you received: 1
-
-
-
-

11 years 11 months ago [\#183038](#183038) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  Replied by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")* on topic *[How can I export custom field titles vs. values?](/forum/37-import-export-csv-xls/873554-how-can-i-export-custom-field-titles-vs-values#183038 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hi,  I have a radio button custom field with values and titles.  My custom field values are a, b, c... x, y, z, aa, ab, ac etc. My custom field titles are &quot;cotton&quot;, &quot;cotton terrycloth&quot;, &quot;  I use these fields as filters, and match them to inventory items.  When I export an inventory item, I get values like a,b,c etc. for my custom field values, but I would like to see the custom field titles and not the values.  How can I export the custom field titles instead of the value?  Thanks,  Dennis")*

Hi Xavier,

The issue is that I have existing products... as you indicated. Can you give me a little help on how I would alter the export.php view?

Thanks,

Dennis

---

\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Dennis Kmetz

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

11 years 11 months ago [\#183068](#183068) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How can I export custom field titles vs. values?](/forum/37-import-export-csv-xls/873554-how-can-i-export-custom-field-titles-vs-values#183068 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hi,  I have a radio button custom field with values and titles.  My custom field values are a, b, c... x, y, z, aa, ab, ac etc. My custom field titles are &quot;cotton&quot;, &quot;cotton terrycloth&quot;, &quot;  I use these fields as filters, and match them to inventory items.  When I export an inventory item, I get values like a,b,c etc. for my custom field values, but I would like to see the custom field titles and not the values.  How can I export the custom field titles instead of the value?  Thanks,  Dennis")*

Hi,

If you use the mass actions to export the product data, so you can edit the file "plugins/hikashop/massaction_product/massaction_product.php" and at the top of the function "onProcessProductMassActionexportCsv()" add code like: Code:

// In this example the custom field is "textil" and its id is "20", so just replace it by your values. $fieldClass = hikashop_get('class.field'); $textil = $fieldClass-&gt;getField('20'); foreach($elements as $k =&gt; $element){ $elements[$k]-&gt;textil= $textil-&gt;field_value[$element-&gt;textil]-&gt;value; }

This way, in the csv file you will have the title and not the value exported.

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

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