Open waynevanrooyen1971 opened 6 months ago
var service = new MetaFieldService(myShopifyUrl, shopAccessToken); var metafields = await service.ListAsync(productId, "products");
Seems like "products" should me a listfilter, even though changed to one still not getting any
My BAD wass doin it all wrong
OK bit of an issue here with variant metafields if the metafield does not have some sort of existing value there is no way of you getting and id as far as i can see so i want to write size chart info into a metafield like so
var mpnmetafield = await metafieldservice.UpdateAsync(metafield.Id ?? 0, new MetaField() { Value = xxxxxxl });
cant do it as metafield.Id does not exist until there is already an actual value. I had to update all the metafield manually via UI then ran same code and it worked. Found same issue on the community for shopify. Just a heads up if anyone hass the same issue
I am trying to get the variant metafields using below code and even though i know a product hass metafields all the products are returning metafields ass null. Please explain what i am doing wrong.
var filter = new ProductListFilter { Limit = pageSize, SinceId = sinceId };