Last active
April 2, 2019 14:01
-
-
Save ed-codes/a832e2886217a153372cc8d17c1d0cf3 to your computer and use it in GitHub Desktop.
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
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org/", | |
"@type": "Product", | |
"productID": "{{ product.id }}", | |
"name": "{{ product.title }}", | |
"description": "{{ page_description | escape }}", | |
"url":"{{ product.url }}", | |
"image": "http:{{ product.featured_image | img_url:'800x' }}", | |
"brand": "BackPack Buddha", | |
"offers":[ { | |
"@type":"Offer", | |
"price":"{{ bold_variant_price | money_without_currency }}", | |
"priceCurrency":"USD", | |
"itemCondition":"https://schema.org/NewCondition", | |
"availability":"https://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}" | |
} | |
] | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment