• Resolved hugopve

    (@hugopve)


    Scenario:
    FooEvents for Woocommerce has a metafield “WooCommerceEventsDate” which I need to add to the line-item order meta for each line item in an order

    Reason:
    I need this information to be readable by Zapier in order to pass along to Xero

    What I’ve tried:

    // Get cart item custom data and update order item meta
        if( isset( $values['WooCommerceEventsDate'] ) ) {
            $item->update_meta_data( 'EventDate', $values['WooCommerceEventsDate'] );
        }

    Any help would be greatly appreciated!

    • This topic was modified 3 years, 1 month ago by hugopve.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add meta data to line item order meta’ is closed to new replies.