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

product meta_data object #772

Open
nturini-cascinanet opened this issue Mar 5, 2024 · 4 comments
Open

product meta_data object #772

nturini-cascinanet opened this issue Mar 5, 2024 · 4 comments

Comments

@nturini-cascinanet
Copy link
Contributor

Hi everyone, i've a meta_data acknowledgment problem, seems that when the value is a simple string everything works correctly, but when the value is an object didn't work.

For example the "Yoast SEO" plugin store in the metadata this object (obtained with postman):

image

but this is the object downloaded with WooCommerce.NET

image

So when I'll update the product I'll overwrite (deleting) the plugin informations

PS: i've tested this in product meta_data but probably didn't work in every meta_data

@Matt-Diaz
Copy link

Matt-Diaz commented Sep 17, 2024

@nturini-cascinanet Did you find a resolution for this?

I am experiencing this same issue with PayPal meta data.

image

@nturini-cascinanet
Copy link
Contributor Author

Unfortunately no, i still have this problem.
However is strange that no one else has encountered this bug in 6 months.

@Matt-Diaz
Copy link

There is this documentation: https://github.com/XiaoFaye/WooCommerce.NET/wiki/Handle-different-types-of-Meta-Value-in-WC-Restful-API-V2

I was able to get the MetaValueProcessor setup. But the value doesn't have the correct data when parsing it. Would be nice if it provided the meta key as an argument as well.

@JawstecDev
Copy link

I am also experiencing a similar issue. The order object's meta_data for me is coming in as an empty object but when calling the WooCommerce api with PostMan I can see that it's populated.

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

3 participants