Add username column to report csv download

  • Posts: 46
  • Thank you received: 1
  • Hikashop Business
4 years 2 months ago #323604

-- url of the page with the problem -- : shop.newmodelarmy.org
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.3

Hi,

How would I add a additional column to the csv file that can be downloaded from reports? I have a report of all customers who have bought a specific product and would like to include their usernames in the csv download.


Thanks

KH

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 months ago #323606

Hi,

That would require some development in the file administrator/components/com_hikashop/classes/widget.php

I would rather recommend to use a mass action for your export (menu System>Mass actions).
You'll be able to use an export action and select the columns you want, and you can have a filter on the order_product_code to filter the orders for a specific product.
That way, no coding is necessary.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum