How can I call product image, details, and price in section page?

anupam1607
New Member
3 1 0

Hey everyone,

Can anyone tell me how can I call multiple product images, product details, and product prices on the section page?

Here some code that I try but it's not correct.

{% for block in section.blocks %}
{% for image in product.images %} {{ image.src | product_img_url: 'grande' }} {% endfor %}
{{block.settings.product.title}}
{{all_products[product].price | money_without_trailing_zeros }}
{% endfor %}

{% schema %}
{
"name": "Demo",
"blocks": [
{
"type": "new-arrival",
"name": "New Arrival",
"settings": [
{
"type": "product",
 "id": "product",
"label": "Product"
}

]
 }
]
}
{% endschema %}

0 Likes