If you're unaware of what wishlist does, it allows users to save products that they're interested in for future purchase or reference. It acts as a personal shopping list and helps users keep track of items they might want to buy later, without having to search for them again.
Open the layout.html file and define the template and mention its id attribute such that it can be used wherever you want to place the wishlist template. In this case we are using the id "heart-wishlist-button-template"
Now you can use it directly wherever you need the wishlist button, for example we need it in the product card listing.