How to set product image link to the product page

Hi all. I gave this setting in block:

{ “type”: “product”,

“id”: “product1”,

“label”: “Select Product 1”

}
and call this here

I got the product image in output but with error: invalid url output in line 27. Also, i want , on clicking on image, it will redirect to product page. Please help.

Hey @Aman_Verma . Please make sure to explain what you are trying.

Currently you are looping through section Blocks on collection pages with the selected template. There is also a grid item included, which is probably the product card.

If you want to show a selected Product above your collection, there will be more common ways to do so with Shopify 2.0.

Yes @HendrikBr . I want to show a selected product above collection. Product’s image came. But im unable to set product page link in that product’s image.
Please tell all possible ways for this.

If your a still looking for a answer.

Add a Link with the href=“{{ block.settings.products1.url }}”