Skip to content

Instantly share code, notes, and snippets.

@pentago
Created September 23, 2021 15:22
Show Gist options
  • Save pentago/14eb0c194d3e2490a555c2f629005f75 to your computer and use it in GitHub Desktop.
Save pentago/14eb0c194d3e2490a555c2f629005f75 to your computer and use it in GitHub Desktop.
<script type="application/ld+json"> {
"@context": "https://schema.org",
"@type": "Product",
"name": "$PRODUCT_NAME_AND_MODEL", // e.g. "Aplple iPhone 12 256GB"
"description": "$PRODUCT_DESCRIPTION_TEXT",
"image": "$PRODUCT_IMAGE_ABSOLUTE_URL",
"brand": {
"@type": "Brand",
"name": "$BRAND_NAME", // e.g. "Apple"
"logo": "$BRAND_IMAGE_LOGO_ABSOLUTE_URL"
},
"category": "Mobile Devices", //can be anything you think is relevant (Mobile, Tablet, Router, etc.)
"offers": {
"@type": "AggregateOffer",
"priceCurrency": "RSD",
"availability": "http://schema.org/InStock", // use any of statuses here https://schema.org/ItemAvailability
"lowPrice": 150000, // lowest possible product price, depending on tarrif selected
"highPrice": 200000, // highest possible product price, depending on tarrif selected
"offerCount": 8, // how much offers/variants in total there are
"seller": {
"@type": "Organization",
"name": "A1",
"url": "https://a1.rs"
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment