Report with products

  • Posts: 233
  • Thank you received: 13
2 days 15 hours ago #372772

-- HikaShop version -- : 6.5.2
-- Joomla version -- : 6.1.2
-- PHP version -- : 8.3

Hi
when i export sales report, i have the information of each order.

how can i have the products bought on each order as well ?
and is there any way that i can choose which columns to have in csv file ? now the report has all the info which lots of them is not needed.
i want to have only the order id, customer namee, price and orders he/she bought for example

thank in advance for your help

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

  • Posts: 85950
  • Thank you received: 14139
  • MODERATOR
2 days 11 hours ago #372776

Hi,

The sales report export is order based and its columns are fixed, so it cannot list the products of each order nor let you pick the columns. For what you want, use a Mass action with a CSV export instead, it lets you choose exactly the columns, and it can output the products of each order.

Here is how to set it up:

1) In your HikaShop control panel, open the Mass actions page (System menu, Mass actions) and create a new one.

2) For the area (the table it works on), choose "Order".

3) In the "Actions" area, add an action and choose "Export a csv file".

4) The export action then shows the available columns as checkboxes, grouped by the Order, Order products, Address and User tables. Tick only the ones you need, for example:
- Order: order_id (and order_full_price if you want the order total)
- Address: address_lastname and address_firstname (the customer name)
- Order products: order_product_name, order_product_price, order_product_quantity

5) Tick the "One product per row" option (it appears for the Order area). This is the key part: it exports one line per product of each order, so you get the products bought on each order instead of a single line per order.

6) Choose the format "CSV". You can leave the "Export path" and "To address" fields empty to simply download the file, or fill them to save it on the server and receive it by email.

7) Save the mass action, then run it with the "Process" button to generate and download the CSV.

If you only want part of your orders (for instance a date range or a given status), add a filter to the mass action before processing and only the matching orders will be exported.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum