replace EDD add-to-cart button with download link when product is free
Replace the add-to-cart button in Easy Digital Downloads with a direct link to the download file when the product is free and has only one file. This only works when the file is an external link to a web-accessible file.
For archive pages on the Shop Front theme, the cart icon is replaced with a download icon and direct download link.
Want to see it in action? Check out the WebAware shop — it’s running this plugin.
Many thanks to the generous efforts of our translators:
If you’d like to help out by translating this plugin, please sign up for an account and dig in.
Because I wanted to add my free plugins to an Easy Digital Downloads shop, without making it harder to download them from the shop than from WordPress.org plugin pages.
No. Downloads are direct from the site hosting the linked file.
Yes, see Downloads > Settings > Extensions. There’s also a filter hook, edd_free_link_label
, if you want finer control over the link label.
Yes, there are templates. Look in the templates folder of the plugin. There’s also a filter hook, edd_free_link_template
, if you want finer control over which template is used.
The full changelog can be found on GitHub. Recent entries:
Released 2018-11-25