Post by dharam81 » Wed Sep 25, 2013 1:36 pm

Hi All,

i am selling digital goods and i want each order expire in 30days so Account/download link stop working aftr 30 days for each order.

any idea how to do that ?

Cheers

Active Member

Posts

Joined
Mon Apr 30, 2012 8:26 pm

Post by andrei.bogdan » Wed Sep 25, 2013 2:22 pm

Hi,

I recommend creating a script(using vQmod) that checks the order date and if it's older than 30 days it removes the download link from the pages(Account sections). If you would like help with this, please contact me.

Do you also want to remove the link completely? For example: if the user saves the download link in a .txt and then pastes it in the browser after 30 days, it will still work or not?

Andrei
andrei.opencart[at]yahoo.com
Themes and Extensions


Active Member

Posts

Joined
Mon Mar 25, 2013 4:52 am

Post by dharam81 » Wed Sep 25, 2013 5:30 pm

I believe instead of removing link better to change order status from complete to expire...

Because i doubt if we remove link and when ever in future we update downloadable file and tick option "Push to Previous Customers:Check this to update previously purchased versions as well.... will that not send email to the old order also ?

i am not very expert in opencart but i think by clicking "Push to Previous Customers:Check this to update previously purchased versions as well." opencart will send email to all active orders to download file again not to expired order ?

Active Member

Posts

Joined
Mon Apr 30, 2012 8:26 pm

Post by dharam81 » Fri Sep 27, 2013 1:46 pm

any idea how to :

if order is more than 90 days old ...... set status = expired and send email to buyer....

Active Member

Posts

Joined
Mon Apr 30, 2012 8:26 pm

Post by andrei.bogdan » Fri Sep 27, 2013 3:09 pm

Hi,

Open Cart itself has an option for restricting access to older orders:

1) Login in admin
2) System > Settings > Edit on your store
3) Open tab 'Option', section 'Checkout', you have there a field 'Order Editing' and you can set there a number of days.

Maybe you can use this option? I don't know what happens in front-end though, in the customer section.

Andrei
andrei.opencart[at]yahoo.com
Themes and Extensions


Active Member

Posts

Joined
Mon Mar 25, 2013 4:52 am

Post by dharam81 » Sat Sep 28, 2013 1:03 am

sorry but this is not what i am looking.

i want set order status = expired when order is older than 90 days .... this will remove product from account/download after 90 days

Active Member

Posts

Joined
Mon Apr 30, 2012 8:26 pm
Who is online

Users browsing this forum: No registered users and 3 guests