Support » Plugin: WooCommerce » Variation name not visible at orders

  • nielsvanrenselaar

    (@nielsvanrenselaar)


    Since 3.0.4 (at least since a version after 3.0.1.) the variation names doesn’t show at order details. It just says “Variation ID: {number}” but not the name of the variation. What could be causing this?

Viewing 1 replies (of 1 total)
  • nielsvanrenselaar

    (@nielsvanrenselaar)

    After debugging I found this condition in WC_CART::get_item_data() causing the function to skip the variation

    http://woocommerce.wp-a2z.org/oik_api/wc_cartget_item_data/

    // Check the nicename against the title.
    if ( '' === $value || stristr( $cart_item['data']->get_name(), $value ) ) {
    continue;
    }

    Any idea why? The nicename of the variation contains “__trashed” for some reason? Additional this query returns 511 variations with trashed… seems something went wrong with the upgrade from WooCommerce 2.6 to 3.0

    SELECT * FROM wp_posts WHERE post_type = 'product_variation' AND post_name LIKE '%trashed'

Viewing 1 replies (of 1 total)
  • The topic ‘Variation name not visible at orders’ is closed to new replies.