App reviews, troubleshooting, and recommendations
Hello, I am trying to retrieve product price inside my app block created through theme extension file however I'm unable to do so.
I am only getting following things in the product object:
This is the product section id: {"product":"the-multi-managed-snowboard","title":"","price":""}
Following is my schema:
{% schema %}
{
"name": "QisstPay Product Widget",
"templates": ["product"],
"target": "section",
"settings": [
{
"type": "product",
"id": "product",
"label": "Product",
"autofill": true
},
{
"type": "text",
"id": "title",
"label": "Title"
},
{
"type": "text",
"id": "price",
"label": "Price"
}
]
}
{% endschema %}
<p>This is product title: {{ block.settings.title }}</p>
<p>This is product price: {{ block.settings.price }}</p>
To print title and price. Please note, I have tried {{block.settings.product.title}} and {{block.settings.product.price}} to access values as well, still no luck.
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024