Last active
June 9, 2021 14:13
-
-
Save tobymarsden/b157bb5c7033f93de9403d51bab1bc19 to your computer and use it in GitHub Desktop.
product.hypervisual-data.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% layout none %} | |
{ "product": { | |
{% if product != blank %} | |
"active_currency": "{{cart.currency.iso_code }}", | |
"id": {{product.id | json}}, | |
"title": {{product.title | json}}, | |
"vendor": {{product.vendor | json}}, | |
"handle": {{product.handle | json}}, | |
"featured_image": {{product.featured_image | json }}, | |
"variants": [{% for variant in product.variants %}{ | |
"id": {{variant.id}}, | |
"title": {{variant.title | json}}, | |
"option1": {{variant.option1 | json}}, | |
"option2": {{variant.option2 | json}}, | |
"option3": {{variant.option3 | json}}, | |
"sku": {{variant.sku | json}}, | |
"featured_image": {{variant.featured_media | json}}, | |
"available": {{variant.available | json}}, | |
"name": {{variant.name | json}}, | |
"public_title": {{variant.public_title | json}}, | |
"options": {{ variant.options | json}}, | |
"price": {{variant.price | json}}, | |
"formatted_price": {{ variant.price | money | json}}, | |
"compare_at_price": {{variant.compare_at_price | json}}, | |
"formatted_compare_at_price": {{ variant.compare_at_price | money | json}}, | |
"inventory_management": {{variant.inventory_management | json}}, | |
"inventory_policy": {{variant.inventory_policy | json}}, | |
"inventory_quantity": {{variant.inventory_quantity | json}} | |
}{% if forloop.last == false %},{% endif %}{% endfor %}], | |
"options": {{ product.options_with_values | json }}, | |
"images": {{product.images | json}} | |
{% endif %} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment