I have made a bookshop with wordpress and woocommerce. On each product page I have embedded a pdf sample of the book using this code.
[pdf-embedder url=""]
<form class="pdf-download" action=""><input type="submit"
value="Sample!" /></form>
Which I put in the product description. To generate the pdf link I use downloadable in product data. I can't use the link from add media as it will link the pdf not embed it. However, when a customer buys a book they also get given the pdf which is causing some confusion. I want to avoid changing how I embed the pdf(if possible) as I manually add the books and it would mean having to go back through each product and changing it. Could I custom code something to block the downloadable feature at the checkout?
I've tried setting the limit and expiry to 0 nothing changed.