- Posts: 2
- Thank you received: 0
Custom Fields on export of Orders via CSV
- FTC-services
-
Topic Author
- Offline
Less
More
3 years 10 months ago #346733
by FTC-services
Custom Fields on export of Orders via CSV was created 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.
-- 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.
3 years 10 months ago #346735
by nicolas
Replied by nicolas on topic Custom Fields on export of Orders via CSV
Hi,
It's possible by customizing the file order / export for your backend template via the menu Display>Views.
There, after the line:
add the line:
and after the line:
add the code:
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)));
Code:
$productFields[] = 'lieferant';
Code:
$prod =& $row->products[$i-1];
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.
- FTC-services
-
Topic Author
- Offline
Less
More
- Posts: 2
- Thank you received: 0
3 years 10 months ago #346777
by FTC-services
Replied by FTC-services on topic Custom Fields on export of Orders via CSV
Thank you very much.
Worked great.
Yours sincerely Jürgen Fritz
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