Support » Plugin: WooCommerce » Order Item Data – WC2

  • Hi, I want to upgrade my plugin for Woocommerce 2.0, but I don’t know how I can use new Order Item Data ?
    Any samples code ?
    In old way everthing is okay.

    Some code. It’s doesn’t add record to database.

    add_action( 'woocommerce_add_order_item_meta', 'my_plugin_add_order_item_meta', 10, 2 );


    woocommerce_add_order_item_meta( $item_id, '_qty555', apply_filters( 'woocommerce_stock_amount', $values['quantity'] ) );
    do_action( 'woocommerce_add_order_item_meta', $item_id, $values );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Order Item Data – WC2’ is closed to new replies.