Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to update metadata on a line item in an order. #685

Open
dw5304 opened this issue Feb 20, 2022 · 0 comments
Open

how to update metadata on a line item in an order. #685

dw5304 opened this issue Feb 20, 2022 · 0 comments

Comments

@dw5304
Copy link

dw5304 commented Feb 20, 2022

I am attempting to update metadata in a line item of an order.

I was able to update the order status its self but seem to have having issues figguring out how i should update meta data. I can get it to change but havent been able to get it to post and actually update the order any help would be appreciated.

    Dim id As Integer = txt_orderid.Text
    Dim response = Await wco1.Order.Update(CInt(Math.Truncate(id)), New Order With {.status = "completed"})




        order = Await wco1.Order.Get(txt_orderid.Text)




        For Each lineitem In order.line_items
            lineitem.meta_data(3).display_value = "testing"

        Next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant