Programmatically providing download link for anonymous user

Created on 13 October 2024, 2 months ago

In a drupal commerce shop, news articles are sold as PDF files. But once such an article is outdated, these files are free to download for everybody (without going through checkout and without need to log in).
Therefore, we would like to add a boolean field to the product and if it's set to true, then a direkt download link should appear on the product page. Can this be accomplished with current module? How?

💬 Support request
Status

Active

Version

2.2

Component

Code

Created by

🇩🇪Germany adam1

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024