WordPress.org

Support

Support » Plugins and Hacks » Order Item Data – WC2

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 );

    function

    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 );

    http://wordpress.org/extend/plugins/woocommerce/

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