Skip to main content

Custom Fields on export of Orders via CSV

More
3 years 10 months ago #346733 by FTC-services
-- HikaShop version -- : 4.6.2
-- Joomla version -- : 4.2.5

Hello,

I would like to get a custom Field of the Produkt named 'lieferant' on the Export CSV of the orders.
Will this be possible?

Thank You in Advance.

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

More
3 years 10 months ago #346735 by nicolas
Hi,

It's possible by customizing the file order / export for your backend template via the menu Display>Views.
There, after the line:
Code:
$productFields = array_keys(get_object_vars(reset($order->products)));
add the line:
Code:
$productFields[] = 'lieferant';
and after the line:
Code:
$prod =& $row->products[$i-1];
add the code:
Code:
$class = hikashop_get('class.product'); $p = $class->get($prod->product_id); $prod->lieferant = $p->lieferant;
The following user(s) said Thank You: FTC-services

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

More
3 years 10 months ago #346777 by FTC-services
Thank you very much.
Worked great.

Yours sincerely Jürgen Fritz

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

Time to create page: 0.229 seconds
Powered by Kunena Forum