I have Paypal up and running (and the status for orders is set automatically to "complete", as opposed to: http://drupal.org/node/372272)
As I have added a "admin-comment" to the order on each action, I got the following:
...
update order status on full payment.
renew purchased files
User can now download the file ***
Notify customer when a file is granted
But even though "notify customer when a file is granted" is logged, no email is sent. I added some watchdog-messages and could see that:
ca_pull_trigger('uc_file_notify_grant', $order, $user_downloads); (in uc_file.ca.inc:uc_file_action_order_renew) is called.
But somehow function uc_file_action_order_email is not called.
When I use "bank transfer"-payment (thereby setting the status manually) it works like a charm.
I know this is difficult to describe and depends a lot on the specific configuration of the ca but maybe someone else entered the same problems?
Thanks for anyone how can shed a light on this.
Comments
Comment #1
svogel commentedI tried to track that down and got as far as to function
uc_file_action_order_email(in uc_file.ca.inc)This is called completely for the "manual status-setting". But something happens (when called with paypal-complete) with the call to
token_replace_multiple(my watchdog-entry after this function-call, doesnt log anything and therefore drupal_mail is not called anymore).Inside
token_replace_multiplethe loop goes through types global, user and order but not type="uc_file".Is that maybe because $file_expiration is an Array and not an Object?
Or am I looking at the wrong part ... maybe it's a little too late anyway.
Comment #2
longwaveDuplicate of #479836: Roles and File Downloads Not Being Assigned for Anonymous Checkouts