Hi
I’ve raised a product custom metafield and am now trying to call it into a label in Shopify Order Printer using the below liquid but am getting no values returned
{{ product.metafields.custom.packed_in }}
There are values against the product.
Below is the setup for the metafield
Any suggestions?
This could be happen because of the several resons some are the below.
- First you need to verify either your metafield namespace is exactly “custom” (case sensitive).
- Verify the metafield key is exactly “packed_in”
- Verify your access methods. If it’s not work then try this instead.
{{ product.metafields.custom["packed_in"] }}
{{ product.metafields["custom"]["packed_in"] }}
- Confirm either you accessing the correct product object.
By verify these steps you will be able to resolve the issue that you facing.
If you need further help then let me know.
Thanks
Hi , thanks for taking the time to respond. The metafield name was cut and paste from the metafield setup screen to guarantee it’s been input correctly, so that’s definitely correct. I’ve tried the approach but that’s not worked either.
I’ve just noted that I cannot seem to pull any product values at all.
Hi, I am experiencing the same issue. I am trying to extract product custom meta fields using a python script via the API. I can extract the product ID but not the meta fields, even though the meta fields exist and even pinned on the product page. These meta fields that I couldn’t access are of the rich text type, but I can access some meta fields that are multi line text type. I have posted this issue on the community page, didn’t get a reply yet.