KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: ryanlynch on August 05, 2008, 12:07:44 am

Title: Resetting digital download on per order / customer basis
Post by: ryanlynch on August 05, 2008, 12:07:44 am
Hello,
Can someone kindly tell me if there is a way in the Admin App to reset the number of times a customer has downloaded a digital download product (on a per customer basis, that is)? If not, it looks like the DigitalDownloadIf interface would be the way to create this functionality. Is this correct?... any thoughts on how I'd go about doing this?
Thanks!
Title: Re: Resetting digital download on per order / customer basis
Post by: ryan on August 05, 2008, 06:55:07 am
Hi,

At the moment, the digital download record that gets created in the kk_digital_download table, will automatically be deleted when the digital download expires. There is no specific way to reset the number of downloads.

Depending on where you want to implement this functionality, I'd say that the best thing to do is either to customize an existing API call to add the reset before or after that call OR to create a new API call. Take a look at http://www.konakart.com/engine_customization_faq.php for instructions on how to customize the KonaKart engines.