how to create customized digital goods?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
tonz
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 48
Joined: Thu Mar 13, 2008 4:08 am

how to create customized digital goods?

Post by tonz » Sat Apr 25, 2009 12:36 am

Dear Friends,

How would it be possible to create a digital good specific to the order? We are selling some digital goods which needs to be customized before it is available for download. (Add customer info to the program).

So even though it is one digital product, due to customization it will become as many as many customers and orders.

We are not sure how to proceed. Can the download link customized that it is specific to the order?

Thanks

Tony
http://shop.blackice.com
http://shop.faxproducts.com
http://www.blackice.com

User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Re: how to create customized digital goods?

Post by nickc » Sat Apr 25, 2009 12:02 pm

In Members/Download.ashx, replace the line:

Code: Select all

DownloadHelper.SendFileDataToClient(context, digitalGood);
with your own method that generates a file stream from your customized object.
I used this method to generate a rebate form PDF pre-populated with customers' name, address info, etc. when they purchased an eligible item.

User avatar
tonz
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 48
Joined: Thu Mar 13, 2008 4:08 am

Re: how to create customized digital goods?

Post by tonz » Mon Apr 27, 2009 2:44 am

Thanks for your reply, Nick.

If I understand correctly, your method will give back a custom downloadlink? Or it will be the same download link but the file would be customized. (most probably the first, since if only the file is customized, and the download link would stay the same, then what would happen if more people would by the same product/digital good?)

Tony

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: how to create customized digital goods?

Post by mazhar » Mon Apr 27, 2009 6:41 am

I think in your case it would be better to just update Members/Download.ashx to complete your customization. All you need is to pass some other calculated URL that points to some customer specific version of download able file to DownloadHelper.SendFileDataToClient. There are other overloads available for DownloadHelper.SendFileDataToClient method that can take file name and stream it for download. So update your download.ashx file to to get that custom downlaod link and then instead of using DownloadHelper.SendFileDataToClient(context, digitalGood); use one of other overloads for example DownloadHelper.SendFileDataToClient(context, filePath, saveAsName);

Post Reply