Liquid, JavaScript, themes, sales channels
Hi,
we are a store who provides 3D scanning service for our customers and we are using shopify to process the POS checkout and customer management.
Our working flow is that the customer finishes the 3D scanning in our local shop, we store the 3D data and upload the link to a custom metaObjects via an shopify app developed by us and running locally in our server.
The Costomer Model Data contains a meta object for each individual order(and scanning). Now I would like to extract the info and show the link in the checkout thank-you page, so that the customer can view the 3D model or download it in any time.
However, I can't retrieve the metaObject from the exposed liquid objects in this page. According to https://help.shopify.com/en/manual/orders/status-tracking/customize-order-status, checkout and shop libquid objects are accessible. When I try
{{ checkout.order.metafields.custom_model_data.<handle> | json}}
I got a response like
[
"gid://shopify/Metaobject/<id>",
"gid://shopify/Metaobject/<id>"
]
and if I try to use such code
{{shop.metaobjects.customer_model_data.<handle> | json}
I got nothing, it's an empty object.
I have checked that the metaObject content is active and it's accessible by the shop. Did I miss something? I have spent on this issue for a long while, thanks a lot in advance for any help.
Best regards
First this is an array I think you should use for loop and try .value to get the metaobject details.
User | RANK |
---|---|
38 | |
27 | |
13 | |
11 | |
8 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023