cancel
Showing results for 
Search instead for 
Did you mean: 

Guest order/Shareable Download Link: Add expiration date

Guest order/Shareable Download Link: Add expiration date

Hello

 

We sell downloadable products and want guest allow to order, too. So, we have setup Magento 2.3 downloadable products as shareable but actually we don't want the download to be shared.
So, we are looking for a way to add an expiration date for shareable links but the date should renew everytime a customer downloads his downloads in his account.

 

Does anyone know of an extension which achieves that or any hit how I counld achieve it?

 

Thanks,

Daniel

1 REPLY 1

Re: Guest order/Shareable Download Link: Add expiration date

Hello Daniel Kussin

If you want to set a date/time limit and want to expire the link after that, you need to write a custom module for that.

Steps to achieve what you want are:


1) Create setting (under System > Configuration section) in the module for expiry (number of days) or create a custom product attribute for only downloadable products (you can do it from admin panel).

 

2) Set a cron in your module which will run daily and check the expiration date by adding expiration days to purchase date (for each order in which a downloadable product is ordered and the download link is active yet). If the current date is bigger than or equal to the expiration date, set the link to be inactive.
I hope my answer is clear enough to understand.

 

Extension in Magento2 

URL : https://www.purpletreesoftware.com/downloadable-products-pro.html
URL : https://drive.google.com/file/d/1W3PzZfadLgIhcQZBeBHV4KbYWRh0lW6e/view

This the M1 extension, you can get some idea from this

Url: https://github.com/otecco/magento-product-expiration


if issue solved and help ,Click Kudos & Accept as Solution