Reputation: 111
In Shopify if we print title of product then we can use like :
{{ product.title }}
If we want to show whole object that includes whole data of product how we can do this? Thanks in advance.
Upvotes: 0
Views: 1956
Reputation: 12943
You can use the JSON filter .
If you like to output it directly on the frontend you use it like so: {{ product | json }}
But its much better to log it as a javascript object like so:
<script type="text/javascript">
console.log({{ product | json }});
</script>
Upvotes: 5