View Cart
|
Wish List
|
Login
|
Register
|
Thursday, February 09, 2012
Home
Features
DNN Modules
DNN Skins
All
Stores
My
Account
Support &
Service
Search
..::
Support &
Service
Forum
::..
English (United States)
Español (España)
Français (France)
Italiano (Italia)
Nederlands (Nederland)
Norsk (Bokmål) (Norge)
Português (Portugal)
Dansk (Danmark)
Svenska (Sverige)
English (United Kingdom)
Deutsch (Deutschland)
Search
Forum Home
DotNetNuke
CATALooK.netStore
Sending customi...
Sending customized passwords
12/12/2006 8:11:08 PM
hunter
2 posts
Sending customized passwords
Hi,
I recently purchased your CATAlooK.netStore and source. In looking through the documentation, I haven't yet found a way of configuring the software to do what I need for a service I'm selling. The closest to what I need is the "Download-option after sales of Software" but I would need to modify that in order to do what I need.
When my purchaser buys a unit of my service, I want to generate a global unique ID (GUID) for this purchase. I would then send the purchaser an email containing that GUID which they could later enter on my site to use the service. The GUID must be generated uniquely for each purchase. Is there a way to do this that I haven't yet seen? In the "Download-option after sales of Software" option, if the ZIP password field could run a URL that returned a string, this would probably do what I need.
If this functionality currently does not exist, and I need to modify the software, do you think this option is the best place to start?
12/13/2006 2:03:36 PM
host
1831 posts
Re: Sending customized passwords
To display it on the orderdetails form, you must change the following line in file catalookstore\_orderdetails.ascx:
<asp:Label id=lblZIP Visible='<%# (DataBinder.Eval(Container, "DataItem.CreditNoteNumber") IS DBNull.Value) AND CheckDownload(DataBinder.Eval(Container, "DataItem.DownLoadFile"), DataBinder.Eval(Container, "DataItem.DownLoad"), DataBinder.Eval(Container, "DataItem.UnitCost")) %>' runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ZIPPassWord") %>'>
change to:
<asp:Label id=lblZIP Visible='<%# (DataBinder.Eval(Container, "DataItem.CreditNoteNumber") IS DBNull.Value) AND CheckDownload(DataBinder.Eval(Container, "DataItem.DownLoadFile"), DataBinder.Eval(Container, "DataItem.DownLoad"), DataBinder.Eval(Container, "DataItem.UnitCost")) %>' runat="server" Text='<%# Guid.NewGuid.ToString %>'>
To include it in the email you must perform the following source code changes and rebuild the project:
File: Forms.vb
Function: RenderInvoiceForm
Change:
TempTemplate = TempTemplate.Replace("{FREE3}", Convert.ToString(rowItem("Free3")))
to
TempTemplate = TempTemplate.Replace("{FREE3}", Guid.NewGuid.ToString)
Note: You must use the advanced email template to display the FREE3 field. You can upload and select this template on the Email Template section of module CAT_StoreSettings. You can rename the field name of the FREE3 field in the catalookstore\app_localresources\sharedresources file. Currently it is named to: 'Size'. You can also use any other field e.g. the ISBN or FREE1/FREE2 field.
You can also use the follwing commands for special formatted GUID's
Left(Replace(Regex.Replace(Guid.NewGuid.ToString.ToLower, "(?<digit>[a-z])", ""), "-", ""), 20)
Guid.NewGuid.ToString.Substring(0, 30)
If you have products with and w/o GUID's, you could add a check and insert the GUID only if the ZIP password or the FREE3 field is <> ''.
12/18/2006 8:24:39 PM
hunter
2 posts
Re: Sending customized passwords
Thanks very much...I'll check this out!
12/19/2006 1:38:10 AM
host
1831 posts
Re: Sending customized passwords
We will also add a module to generate passwords, license keys, serial numbers etc..
12/19/2006 3:30:58 PM
Lorelei
36 posts
Re: Sending customized passwords
host wrote
We will also add a module to generate passwords, license keys, serial numbers etc..
Sounds great!
Don't forget to add "download limits" and
"downloaded stutas".
Thank you!
Page 1 of 1
DotNetNuke
CATALooK.netStore
Sending customi...
Flat View
Tree View
Oldest To Newest
Newest To Oldest
References / Live Stores
|
Forum
|
Trial Downloads
|
Resource Directory
|
Release History
|
Support Requests
|
Referral Program
|
Contact
CATALooK
|
Terms Of Use
|
Privacy Statement
Copyright 2002-2010 CATALooK