• Resolved patrick356

    (@patrick356)


    Hi, is it possible to add the SKU to the product dropdowns? How can I do it for variations? For single products you can do it by adding SKU to the title but for variations that doesn’t work. Having the SKU there makes it impossible to missunderstand what exact product the customer are talking about. It would be helpful to have it both in the dropdowns and in the cart view.

    • This topic was modified 1 year, 9 months ago by patrick356.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter patrick356

    (@patrick356)

    Ok, got it. If somebody else need it then post this into your functions.php

    function show_sku_in_component_list_names( $name, $product, $qty, $price ){
    if (! empty($product->sku))
    $name .= ‘ (‘ . $product->sku . ‘)’;
    return $name;
    }
    add_filter( ‘wooco_product_name’, ‘show_sku_in_component_list_names’,10,4);

    Plugin Support miemie

    (@miemie)

    Hi @patrick356,

    Thank you for your solution!

    I’m glad that you figure it out. Hope your answer will be useful for many users.

    I’ll close this thread as resolved.

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add SKU in the dropdowns’ is closed to new replies.