I’m looking to use Shopify’s built-in JSON-LD functionality for product schema markup.
However, I have one issue: My product pages are a bit non-traditional as they use extensive descriptions, pictures and advanced HTML (we sell B2B). As a result, the default “description” becomes very messy and long when using the below default method from the product.liquid file:
"description": {{ product.description | strip_html | json }}
Ideally I would like to replace the product.description with e.g. my SEO meta description from each page - but I seem to be unable to identify the adequate handle to parse in order to achieve this. Is there a way to successfully do this?
If not, is there a way to define the description separately on each page - i.e. could I remove the description field from the Shopify-generated schema information - and then parse a separate block containing only this on each product page?