Table report I made won't export

  • Posts: 38
  • Thank you received: 0
11 years 11 months ago #81175

The reporting is good but I am having trouble with the a new report I have made.
It is a table and itemises a number of products and the total number of units sold for each.
error mess
Two problems I have.
1. Although there is an edit and delete icon next to each line in the table, they don't seem to work so I can't correct my mistakes
2. The table won't export - I get CANNOT_EXPORT_THIS_FILE information message. Why is this?

thanks
Viv

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

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 11 months ago #81712

Hi,

1. They work fine on our end. It's maybe something else on your website which results on that problem. Or maybe you don't have the latest version ? I remember a similar issue in previous versions of HikaShop. In that case you should update.
Note that you can always create a new report in order to start afresh.

2. There is nothing to export in a table report. You could simply copy/paste the text of the table if you want to export it... So that why you get an error message.

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

  • Posts: 38
  • Thank you received: 0
11 years 11 months ago #82196

Regarding 1: I checked another browser to see if that was the cause but whenever I click either the bin or edit icon, it brings up a fresh lightbox to create a new row, it does not allow me to delete or edit the existing row. I will start a new table and try not to make any mistakes. Where is this new custom report information stored? Can I edit it in a database somewhere?

On second issue: I was hoping that the rows and totals generated in the table could be exported. I used to get something similar in Virtuemart.

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

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 10 months ago #82980

Hi,

1. The reports can be created via the menu Orders->Reports. They are stored in the hikashop_widget table in the database.

2. You can simply create a new report listing the data you want and export that one.

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

  • Posts: 38
  • Thank you received: 0
11 years 10 months ago #83050

The orders reports that are exported only contain the email address of the customer. I would like to add the customers first name and last name and a custom field I created to the report. This is so I can sort the list alphabetically in Excel for when customers collect their orders.
I'm not sure how to do this as this data comes from a different table.

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

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 10 months ago #83234

That's indeed quite complex to do as you need to add a left join to the listing query of the widget.
That can't be done in an override easily so you'll have to modify the code around line 900 of the file administrator/components/com_hikashop/classes/widget.php
Maybe with something like that:
$leftjoin[] = ' LEFT JOIN '.hikashop_table('address').' AS b ON a.'.$address.'=b.address_id';
$select.='b.*,';

before the line:
$select.='a.*';

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

Time to create page: 0.057 seconds
Powered by Kunena Forum