I would like to create a download link to the uploaded file on a downloadable product.
All downloadables do not have price and customers do not need to purchase them
Replace Add To Cart button with Download(clicking on download button will download file directly)
Best Answer
On top of the advice provided above, here are 2 approaches to load downloadable files data for a product instance:
1- Using LinkRepositoryInterface
2- Using directly the product instance