• Resolved zhuraavl

    (@zhuraavl)


    Hi, thanks for the wonderful plugin.

    I have a problem, I need to display the normal non-variant attributes for a product in the order on the vendor page in wp admin or on the front

    in the file orders.php in the folder /templates/dashboard/ I lines that output to the table data about variations

    
    // Get variation data if there is any.                 
    $variation_detail = ! empty( $item['variation_id'] ) ? WCV_Orders::get_variation_data( $item['variation_id'] ) : '';
    

    I don’t understand php and I need to output the usual attributes. I tried to do it with a line like this, but it doesn’t work

    
    $atribute_detail = ! empty( $item['attribute_id'] ) ? WCV_Orders::get_attribute_data( $item['attribute_id'] ) : '';
    

    I found code that outputs all the simple attributes, but not the one the user bought. And that’s the one I need.
    $atribute_detail = wc_display_product_attributes( $product );

    • This topic was modified 2 years, 4 months ago by zhuraavl.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[NSFW] Product attribution for order’ is closed to new replies.