I am trying to get my custom Shipping and Return Metafields to be recognized by Google for Rich Results/Google Shopping, but the structured data is failing the validation test.
I need the correct Liquid snippet to successfully map my metafields to the necessary Google Schema properties.
Details of the Issue
Goal: Add Shipping Details and Return Policy to my product’s JSON-LD Schema, and functions for all my product.
Code Location: I understand the code needs to be placed in the right block, but need to know if it should be put in main-product.liquid file? And the exact position is?
Failure: When I try to add the code myself, it fails Google’s Rich Results Test instantly, confirming the structure is incorrect.
Request for Code Could an experienced developer please provide the correct Liquid code snippet required to map the metafields to the JSON-LD?
Thank you in advance!