hi
Please, use >Setup Fields>Product Order Items>Add Field and select “Size” in the dropdown.
Thanks for your promt reply.
I did your suggestion and got independent fields for each attribute.
I thought it would be different. Let me explain myself better.
I have around 15 attributes for different product variations (keep increasing monthly for new products).
My goal is to export all my daily orders with a column named | Products | which show the product name + attributes in the same cell.
Example 1: Column named | Products | should show | Product Name 1 Attribute 1 Attribute 3 |
Example 2: Column named | Products | should show | Product Name 2 |
Example 3: Column named | Products | should show | Product Name 3 Attribute 2 Attribute 4 Attribute 5 |
Maybe a concatenated code could work within a field, but not all products use the same attributes, so would need many concatenated versions?
Or is there another workaround which is simpler?
Thanks for your help.
ok, got it
please, use field “[P] Product Name” and add this code to section “Misc Settings”
add_filter('woe_get_order_product_value_product_name', function ($value, $order, $item, $product,$item_meta) {
$variation = WC_Order_Export_Data_Extractor::get_product_variation( $item, $order, $item->get_id(), $product);
return $variation ? $value . " - " . $variation . "" : $value;
}, 10, 5);
It’s grayed out. There is a tutorial for iThemes Security to fix it, but I use Wordfence.
Which option in Wordfence will let me edit_themes?
Ok I already fixed the gray area inserting a code in the functions.php file. Let me try the solution you proposed.
The code worked perfectly, thank you very much.
