Shopping cart confirmation email

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
10/10/2011 1:48:39 PM
Gravatar
Total Posts 383
Thanks Squire Dude

Shopping cart confirmation email

Hi,

 

I have a product that after purchase the purchaser needs to be sent an "Activation Code" to unlock the software they have just purchased & downloaded.

I would like to have the system automatically generate the activation code then email it to the purchaser?

Is this possible?

10/10/2011 3:16:47 PM
Gravatar
Total Posts 245
mojoPortal Community Expert

Re: Shopping cart confirmation email

Hi Phill

That's a very specialized request.

As you know this feature is not available in the current mojoPortal WebStore.  mojoPortal does have developer accessible code to Compress and Decompress zip files.  For example mojoPortal will unzip a skin file and install a skin folder.  However it does not currently have methods or over-rides for password protection to zip files.

Bottom line is that in order to get your required functionality, this is custom coding and must be written by a developer. An open source 3rd party dll may be needed.  SharpZipLib comes to mind. DotNetZip is another but only works in medium trust.

Option 1. "Clone" the existing WebStore feature and add this functionality as a developer.  You or someone else.
Option 2. Add this to the existing Webstore code (No Cloning - Bad Idea.  Updates would be a nightmare someday)
Option 3. Hire Joe Audette to add this custom Webstore feature with turn on/off settings then share it with the community by having it added to the Core mojoPortal Code.

My manager has hired Joe (Option 3) once in the past when I got stuck and it was absolutely the correct decision.

Take Care

Rick Hubka

 

10/10/2011 3:24:10 PM
Gravatar
Total Posts 18439

Re: Shopping cart confirmation email

Hi Guys,

I am working on something for the next release that will help. I'm going to implement a provider model for OrderPaymentCompletedEventHandlers so that custom code can be implemented and plugged in to do additional logic after an order has been completed. So it would be possible once this plugin model is in place you could implement a custom handler that generates your activation code and sends it in an email.

So of course you would have to write custom code to do what you want to do but there will be a way to plug it in so your code is fired when the payment is completed on  an order.

Best,

Joe

10/10/2011 3:31:49 PM
Gravatar
Total Posts 383
Thanks Squire Dude

Re: Shopping cart confirmation email

Hi Guys,

Rick,  you have a different take on what I was looking for but not a bad solution though.  Not one I had thought of but will consider.

Joe you hit the nail on the head.  What you outlined is exactly what I was looking for.  I the code to generate the code already built and running as an manual executable program.  It would be very little work to turn it into a DLL with an Email address passed in and the activation code is sent back.  If you have this in the works for some time in the future then I will continue with my original plan which is to manually generate the Activation Code and email it to the purchaser.

I will wait for the next couple of releases and read your release notes to see which release it gets into.

Thanks guys

10/11/2011 10:03:18 AM
Gravatar
Total Posts 245
mojoPortal Community Expert

Re: Shopping cart confirmation email

Wow.

That is so cool Joe.  That not only facilitates Phill's initial pre-coding requirements but opens the doors for all other Order Complete idea's going forward.

Thanks

10/11/2011 10:47:02 AM
Gravatar
Total Posts 18439

Re: Shopping cart confirmation email

This is now completed in the source code repository so it will definitely be in the next release. There is a DoNothingOrderCompletedHandler.cs that has notes and some example code for developers to see how to implement their own handlers.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.