[checkout] notification of download without payment

hkvitasoy

Joined: 2010-02-24
Posts: 2
Posted: Wed, 2010-02-24 16:16

Hi everybody,

I'm now using the checkout module, I want to receive a email when anyone press the 'download as zip' button,

In the email, all I want to know is the login name and the title of those photos.
Is there any easy way to do so?

Besides, can I put the 'download as zip' in the ConfirmPhotos.tpl? i.e. I can get the photo by single click when view cart.

P.S. I've tried checkoutemail module, however, it is too many button need to click and no user login name in the email....

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2010-02-24 17:06
Quote:
Is there any easy way to do so?

No

 
hkvitasoy

Joined: 2010-02-24
Posts: 2
Posted: Wed, 2010-02-24 17:21
alecmyers wrote:
Quote:
Is there any easy way to do so?

No

Indeed, I've modified the confirm.inc

elseif (isset($form['action']['downloadzip'])) {
$emailSubj = 'Photo Downloaded';
$emailContent = 'Test !'."\n\n";

$from = 'admin@mysite.com';
mail("admin@mysite.com",$emailSubj,$emailContent, "From: $from\nX-Mailer: PHP/ . $phpversion()", "-f $from");

I can received an email but I don't know how to include the user login name and photo title...
How can I get those info?

 
swurr

Joined: 2008-02-13
Posts: 3
Posted: Mon, 2010-09-20 15:00

Hallo

I require myself the same. Did you find a solution?

Soe from Germany