Skip to content

Instantly share code, notes, and snippets.

@heathkit
Created December 1, 2021 20:10
Show Gist options
  • Save heathkit/77d47742b15a009054f8899f9bc683bc to your computer and use it in GitHub Desktop.
Save heathkit/77d47742b15a009054f8899f9bc683bc to your computer and use it in GitHub Desktop.
Shopify JSON template with customization
{
"sections": {
"main": {
"type": "main-product",
"blocks": {
"vendor": {
"type": "text",
"disabled": true,
"settings": {
"text": "{{ product.vendor }}",
"text_style": "uppercase"
}
},
"title": {
"type": "title",
"settings": {
}
},
"f7a79497-aaca-4006-9ded-091615d7bd82": {
"type": "shopify:\/\/apps\/judge-me-product-reviews\/blocks\/all_reviews_text\/61ccd3b1-a9f2-4160-9fe9-4fec8413e5d8",
"settings": {
}
},
"subtitle": {
"type": "text",
"settings": {
"text": "{{ product.metafields.descriptors.subtitle.value }}",
"text_style": "subtitle"
}
},
"price": {
"type": "price",
"settings": {
}
},
"variant_picker": {
"type": "variant_picker",
"settings": {
"picker_type": "dropdown"
}
},
"quantity_selector": {
"type": "quantity_selector",
"settings": {
}
},
"728d07ea-3e35-4ab1-bed3-ac9d9f35875c": {
"type": "custom_liquid",
"settings": {
"custom_liquid": "<p class=\"line-item-property__field\">\n <label for=\"engraving\">Engraving<\/label>\n <p>\n<textarea id=\"engraving\" name=\"properties[Engraving]\"\nform=\"product-form-template--14302685823028__main\"><\/textarea>\n<\/p><\/p>"
}
},
"buy_buttons": {
"type": "buy_buttons",
"settings": {
"show_dynamic_checkout": true
}
},
"description": {
"type": "description",
"settings": {
}
},
"share": {
"type": "share",
"settings": {
"share_label": "Share"
}
},
"e85cfa6b-b7ee-40a9-acfe-92f24423619e": {
"type": "rating",
"disabled": true,
"settings": {
}
}
},
"block_order": [
"vendor",
"title",
"f7a79497-aaca-4006-9ded-091615d7bd82",
"subtitle",
"price",
"variant_picker",
"quantity_selector",
"728d07ea-3e35-4ab1-bed3-ac9d9f35875c",
"buy_buttons",
"description",
"share",
"e85cfa6b-b7ee-40a9-acfe-92f24423619e"
],
"settings": {
"enable_sticky_info": true,
"hide_variants": true,
"enable_video_looping": false
}
},
"product-recommendations": {
"type": "product-recommendations",
"settings": {
"heading": "You may also like",
"image_ratio": "adapt",
"show_secondary_image": false,
"add_image_padding": false,
"show_image_outline": true,
"show_vendor": false,
"show_rating": true
}
},
"16382466947c5d4d6f": {
"type": "apps",
"blocks": {
"1d9f18dc-cf86-4ea2-9139-2a2a03fb0c1f": {
"type": "shopify:\/\/apps\/judge-me-product-reviews\/blocks\/review_widget\/61ccd3b1-a9f2-4160-9fe9-4fec8413e5d8",
"settings": {
}
}
},
"block_order": [
"1d9f18dc-cf86-4ea2-9139-2a2a03fb0c1f"
],
"settings": {
"include_margins": true
}
}
},
"order": [
"main",
"product-recommendations",
"16382466947c5d4d6f"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment