• Resolved Samir Rifai

    (@srifaia)


    Hi,

    I need to export a single column with single products and also variation products.

    I could only find [P] Product Name, which only exports the parent variation name and [P] Product Variation, which only exports the attribute: example Size: L.

    I’d like to export T-Shirt Size L or T-Shirt L in a single cell.

    Please help.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi

    Please, use >Setup Fields>Product Order Items>Add Field and select “Size” in the dropdown.

    Thread Starter Samir Rifai

    (@srifaia)

    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.

    Plugin Author algol.plus

    (@algolplus)

    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);

    Thread Starter Samir Rifai

    (@srifaia)

    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?

    Thread Starter Samir Rifai

    (@srifaia)

    Ok I already fixed the gray area inserting a code in the functions.php file. Let me try the solution you proposed.

    Thread Starter Samir Rifai

    (@srifaia)

    The code worked perfectly, thank you very much.

    Plugin Author algol.plus

    (@algolplus)

    You’re very welcome

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.