Auto-download when clicked on a meatfield URL link in the product page

Hello,

I am trying to get my customers to auto-download a PDF when they click on a link on my product page. Each product has a different link, so I set up a metafield URL for the PDF and embedded the url to the product page (see image). Right now, the link just opens to a new tab. I added the ‘download’ attribute to the metafield URL link, but it still open to a new tab.

Website: greenlyliving.co

Thanks in advance.

Hi @GREENS ,

In this case you need to add an script codes to make it work.

Or check this video below.https://youtu.be/Uyr-B2dDgeI