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

#   Category Mass Action export has only 2 columns

##

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

Less More

- Posts: 193
- Thank you received: 76
-
-

12 years 1 day ago -  12 years 1 day ago [\#179876](#179876) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  *[Category Mass Action export has only 2 columns](/forum/3-bug-report/873053-category-mass-action-export-has-only-2-columns#179876 "-- HikaShop version -- : 2.3.4  When you create Mass action for category export, csv file has only two columns: parent&#95;category, categories  Bug is also reported .  In file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;massaction.php on line 2264 call to $massaction-&gt;organizeExportColumn() remove all csv columns from $params-&gt;action and replace them with 2 columns mentioned above. The code in question is on line 197:  When I comment out this line, export works as expected.  There are also 2 notices &quot;Creating default object from empty value&quot; in this file on lines 224 and 235, because  and  are not set.")* was created by *[korzo](/forum/user/34428-korzo "View korzo's Profile")*

-- HikaShop version -- : 2.3.4

When you create Mass action for category export, csv file has only two columns:
parent_category, categories

Bug is also reported [ here](https://hikashop.com/forum/import-export-csv-xls/873033-exporting-hikashop-information.html#179855).

In file administrator\components\com_hikashop\classes\massaction.php on line 2264 call to
$massaction-&gt;organizeExportColumn() remove all csv columns from $params-&gt;action and replace them with 2 columns mentioned above.
The code in question is on line 197: Code:

unset($action['category']);

When I comment out this line, export works as expected.

There are also 2 notices "Creating default object from empty value" in this file on lines 224 and 235, because Code:

$types['parent_category']

and Code:

$types['categories']

are not set.

Last edit: 12 years 1 day ago by [korzo](/forum/user/34428-korzo "View korzo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzMwNTMtY2F0ZWdvcnktbWFzcy1hY3Rpb24tZXhwb3J0LWhhcy1vbmx5LTItY29sdW1ucz90bXBsPW1hcmtkb3du) 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 10 hours ago [\#179932](#179932) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Category Mass Action export has only 2 columns](/forum/3-bug-report/873053-category-mass-action-export-has-only-2-columns#179932 "-- HikaShop version -- : 2.3.4  When you create Mass action for category export, csv file has only two columns: parent&#95;category, categories  Bug is also reported .  In file administrator&#92;components&#92;com&#95;hikashop&#92;classes&#92;massaction.php on line 2264 call to $massaction-&gt;organizeExportColumn() remove all csv columns from $params-&gt;action and replace them with 2 columns mentioned above. The code in question is on line 197:  When I comment out this line, export works as expected.  There are also 2 notices &quot;Creating default object from empty value&quot; in this file on lines 224 and 235, because  and  are not set.")*

Hi,

Thanks for the report.
You have indeed to remove the Code:

unset($action['category']);

and for the notices, please add the following codes just before the indicated lines: Code:

if(!isset($types['parent_category']) &#124;&#124; !is_object($types['parent_category'])) $types['parent_category'] = new stdClass();

Code:

if(!isset($types['categories']) &#124;&#124; !is_object($types['categories'])) $types['categories'] = new stdClass();

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

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