VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: obiwan on June 12, 2009, 23:59:54 PM

Title: Download ID not being emailed on confirmation
Post by: obiwan on June 12, 2009, 23:59:54 PM
Hello everyone, I got pay pal pro working somewhat, but I ran into a problem, when someone makes a purchase, they download ID is not being emailed.

I get confirmation and the payment processes but the download ID is not in the email.

The other problem I am having is when clients veiw orders they can download the file there and when they click on the download link it starts to download, but the file is 0kb, empty and clients can open purchase.

Any ideas?
Title: Re: Download ID not being emailed on confirmation
Post by: Counterpart on June 18, 2009, 06:34:07 AM
i also have the same problem with the download link not being emailed. works fine when i use the coupon method though. anybody have any ideas? please?
Title: Re: Download ID not being emailed on confirmation
Post by: ralphonz on July 09, 2009, 11:56:19 AM
Yep,

I have this problem with the standard paypal module.  I have to change the order status to 'confirmed' manually, then emails are sent. However this should happen automatically?  I would very much like to know how to solve this!

Thanks
Title: Re: Download ID not being emailed on confirmation
Post by: bradcapo1 on July 23, 2009, 11:15:13 AM

Thanks for sharing this useful information. It's great.


taux pret auto (http://pret-auto.org) - taux pret auto differe selon la rise en compte ... calculent automatiquement le taux pour un prêt automobile donne.
Title: Re: Download ID not being emailed on confirmation
Post by: Karato on July 31, 2009, 12:09:28 PM
I would very much like to know how to solve this!
sonnerie portable mp3 (http://sonneriegratuite.org/) - Sonnerie portable MP3 est en effet unpouvoir de l'innovation technologique. Êtes-vous familier avec cette sonnerie portable?
Title: Re: Download ID not being emailed on confirmation
Post by: iquu on August 12, 2009, 13:56:48 PM
Anyone has an idea, or is there another thread?
Title: Re: Download ID not being emailed on confirmation
Post by: ralphonz on August 12, 2009, 14:52:36 PM
I think the problem is related to the order status not being changed after a sucessful transaction as described here - http://forum.virtuemart.net/index.php?topic=58957.msg193505#msg193505 (http://forum.virtuemart.net/index.php?topic=58957.msg193505#msg193505)

As I have configured download emails to be sent when the order status is 'confirmed' they are not being sent because a successful paypal transaction is not changing the status to 'confirmed'.

Is everyone who is experiencing this using Paypal?
Title: Re: Download ID not being emailed on confirmation
Post by: ralphonz on August 14, 2009, 14:53:24 PM
Hello everyone - I now have it all working on my site http://www.sonic-rites.com (http://www.sonic-rites.com)

The solution I used also suppresses purchase order emails from going out BEFORE the order is completed on Paypal, using the b-planet patch found here - http://www.b-planet.com/VirtueMart/paypal-patch.html (http://www.b-planet.com/VirtueMart/paypal-patch.html)

At first this didn't work for me but following a long process i removed the lines
// load Joomla Language File
    if (file_exists( $mosConfig_absolute_path. '/language/'.$mosConfig_lang.'.php' )) {
        require_once( $mosConfig_absolute_path. '/language/'.$mosConfig_lang.'.php' );
    }
    elseif (file_exists( $mosConfig_absolute_path. '/language/english.php' )) {   
        require_once( $mosConfig_absolute_path. '/language/english.php' );
    }

from the notify_gen_transaction.php (installed with the patch)

I noticed that these lines also exist in the standard notify.php, so if you don't want to try the patch you could try altering notify.php and see if that works.

Here is some further reading

http://forum.virtuemart.net/index.php?topic=39534.75 (http://forum.virtuemart.net/index.php?topic=39534.75)
http://forum.b-planet.com/viewtopic.php?f=4&t=7&p=28#p28  (http://forum.b-planet.com/viewtopic.php?f=4&t=7&p=28#p28)

Hope this helps!