Add custom field to report listing orders

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

Hi,

I need to make a custom field I created called child_label_name to appear on the report listing all orders.

How do I add this extra column of information to the exported orders listing report?

Thanks for your help.

Viv

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

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

I should have mentioned that this custom field is an "item" custom field so it is attached to a product. Another custom field I set up which is attached to an "order" is already appearing on the order listing.

They appear to be treated differently.
Thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #85567

Hi,

To display this custom field on the order listing, you will have to develop a plugin based on the function "onAfterOrderListing()" and in this plugin create a SQL request selecting all the products of the order, then another to have the custom fields values of the products, save it in the var $this->row and then edit the view "order / listing" to add the value of the custom field.

It require a good PHP level.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum