• Hi,
    I want the title/name of the variable product to be exported based on the custom name of the selected variation description – or in other words I want each variation to have its own custom title.

    Right now the name of the variable product on the website and all orders remains the same no matter what variant has been selected. Only hint about the correct variation that customers have opted for is the SKU (which is different for each variation) and the attribute that is visible in the backend or order confirmation emails.

    However if I export orders via your export then only the SKU and the parent product title is being exported and that is causing a lot of trouble. The easiest solution for me would be if each variation would simply have its own title (I use variation description field for that)

    Is there any way how I could do this? Thanks for any help with this.

    Example product> Parent variable item name: Top Filter for Mini-ITX Case

    Variation attributes: Color (Black Frame/Mesh, White Frame/Mesh)

    Variation 1 name: (set in the variation description): Black Top Filter for Mini-ITX Case with handle support and with black filter mesh

    Variation 2 name: (set in the variation description): White Top Filter for Mini-ITX Case with handle support and with white filter mesh

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

    (@algolplus)

    hello

    please, open >Setup Fields>Products and use

    Product Description
    or
    Product Variation

    thanks, Alex

    Thread Starter DensitySK

    (@densitysk)

    Hi,

    but the problem is that I do have simple and variable products in many orders mixed and I want to use the product description as the “product name” ONLY if the affected product is a VARIABLE/VARIATION item.

    Is that possible with some conditional logic?

    Thanks.Michal

    Michael,

    Not sure if I understand correctly, but I have WPC Variations Radio Buttons for WooCommerce by WPClever installed and have custom names for each product variation. The custom names show on my export! But unfortunately it has extra functionality you might not need but you may be able to find another plugin that integrates custom variation names. Like maybe https://iconicwp.com/products/woocommerce-show-single-variations/ , but can confirm it works with the other plugin.

    Plugin Author algol.plus

    (@algolplus)

    hi @densitysk

    Please, follow to https://docs.algolplus.com/algol_order_export/add-calculated-field-for-product/
    add key “item_name_variation” and use this PHP code

    add_filter('woe_get_order_product_value_item_name_variation', function ($value, $order, $item, $product,$Item_meta) {
    $variation = WC_Order_Export_Data_Extractor::get_product_variation( $item, $order, $item->get_id(), $product );
    return $variation ? $item['name'] . "-" . $variation : $item['name'];
    }, 10, 5);
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘variation product export’ is closed to new replies.