12 replies [Last post]
DarthKong's picture
Offline
Joined: 12/19/2008
Juice: 19
Was this information Helpful?

Ubercart 2.x beta 2 / Drupal 6.8

I'm sure I'm not the only person having this issue. I've scoured the ubercart forum threads, google, and have spent three days trying to figure out why this is not working.

The problem that I'm having (whether the testing is done with PayPal, or Google Checkout) is after a customer/user purchases digital content, the order status does not move to 'complete'. Usually with Google Checkout, the order status moves to 'payment received', and with PayPal the order status sometimes is 'Pending', or 'PayPal Pending'. Neither PayPal nor Google Checkout moves the order to the 'completed' status. Which means that ubercart will not grant access to the file for the user, nor will the notification email go out.

I have changed the conditional actions to reflect the proper (or at least what I thought) conditions and actions to take; specifically for Google Checkout since the order status would consistently be at 'Payment Received'. However, I have had no luck in the customer/user having a totally automated experience in terms of accessing the digital content. The only way that access would be granted to the digital content is if I manually move the order status to 'Complete'.Also if I check the box 'Send e-mail notification on update' then the email goes out with the proper links etc... Naturally this is not the desired behavior due to lack of automation.

Has anyone else had this issue if so how did you resolve it? Or let me know what I'm doing wrong.

Thanks

cha0s's picture
Offline
Getting busy with the Ubercode.
Joined: 08/22/2008
Juice: 416
Re: Conditional actions for file downloads

I can't reproduce this. Have you set the order status correctly at admin/settings/ca/uc_file_renewal/edit/conditions ? I set it to payment_received, 'bought' a file, and set the order status to payment received, and it worked.

Try FreeBASIC!
My game Lynn's Legacy

DarthKong's picture
Offline
Joined: 12/19/2008
Juice: 19
Re: Re: Conditional actions for file downloads

First I would like to say thank you for responding!

Well, while I was troubleshooting after my original post I set the order status at 'admin/settings/ca/uc_payment_received/edit'. I changed the action: 'Update order status to Completed'. Then I was able to 'buy' the file and have access to it. Should I reset 'admin/settings/ca/uc_payment_received/edit' and edit 'admin/settings/ca/uc_file_renewal/edit/conditions' as you mentioned in your post?

When I changed the order status at 'admin/settings/ca/uc_payment_received/edit' to 'Completed' I was able to get the emails and the user is able to access the paid for file. However, the emails detailing the account information, and links to the files didn't come through for more than an hour. Is that because of the order of operations in the conditional actions? Since currently I have it working by setting the order status actions to 'Completed' at 'admin/settings/ca/uc_payment_received/edit'. In the predicate list in conditional actions admin/settings/ca/uc_file_renewal/edit/conditions' is higher in the list than 'admin/settings/ca/uc_payment_received/edit'. I'm not sure if the order of those predicates has an effect on when email notifications get sent out.

yesct@drupal.org's picture
Offline
Uber Donor
Joined: 11/18/2008
Juice: 294
Re: Re: Re: Conditional actions for file downloads

I'm reading this with interest. As I have a similar problem... I'm still trying to figure out exactly what I should do. Does anyone have a link to another support request or documentation on setting up the file downloads? Thanks a ton!

I think this is related to ...
http://www.ubercart.org/forum/support/8867/how_set_conditional_actions_2...

yesct@drupal.org's picture
Offline
Uber Donor
Joined: 11/18/2008
Juice: 294
related: http://drupal.org/no
yesct@drupal.org's picture
Offline
Uber Donor
Joined: 11/18/2008
Juice: 294
Re: related: http://drupal.org/no

Ryan figured it out. A solution is in the link to the issue in my previous post. I had to set up a CA, and in the CA, use the argument for the order status to be the "updated" status and not the "original" order status. Smiling

paulg's picture
Offline
Joined: 02/26/2008
Juice: 23
conditional actions and file downloads

Before I go further, I must confess that I have been an avid, and enthusiastic, user of Ubercart. And I very much appreciate the many contributions of the developers and the rest of the thriving support community.

However...

I have been struggling with CA's and File Downloads for months with UC 2.x-RC5 and RC6. I used to have the Workflow-ng actions working in UC 1.x. Ever since moving to UC 2.x the File downloads (workflows re-implemented as CA's) just don't work in a very consistent manner. Sometimes I get no File Downloads. Sometimes I get 2. Sometimes I get 3.

I have eagerly reviewed Cathy's video(s) countless times...trying the "Updated Order" vs. "Order". Failure.
I tried using only the basic CA's that come out of the box with RC5. Failure...inconsistent.
I tried to follow a derivative of Cathy's CA where I check if Order Balance <=0 and Not Shippable (versus Cathy's idea of just checking order status). Failure...inconsistent.

Are there any other ideas out there about how to make CA's work with file downloads? Are there any ideas about ways to debug this?

The move to Drupal 6 has been great, but the UC File Download (CA) stuff has been a major bummer.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: conditional actions and file downloads

Paul, can you give more details besides "failure...inconsistent?" What exactly happens in the difference scenarios? Have you found any kind of link between the files that are failing and the ones that work?

I have setup a couple D6 sites with File Downloads and haven't had any problems. We're in the process of moving our site from D5 to D6 and so your site might be helpful as a guide to try and work out some of these issues. I'd be interested in hearing some more info from you so that I can put in the time to help Ryan and the other UC guys in nailing down any leftover problems.

--
Help directly fund development: Donate via PayPal!

paulg's picture
Offline
Joined: 02/26/2008
Juice: 23
Re: Re: conditional actions and file downloads

Yes, thanks for commenting, let me elaborate:

If I just use the baseline CA's that come out of the box (i.e., "Update order status on full payment", and "Update order status upon checkout completion with full payment", then, not surprisingly, no file downloads occur because - it seems - the order doesn't get moved to Complete. This is consistent with UC 1.x Workflow-ng and UC 2.x CA's.

So, in UC 1.x I added the old "Move Payment Received to Completed" script which checked to see if the order was payment received (and not shippable) and then bump it to complete - thus triggering the file download. This worked great.

In UC 2.x, the challenge has been to figure out how to make "Move Payment Received to Completed" work correctly, consistently and reliably. If I only use Cathy's video as an example (and using Updated order), I usually (about 80% of the time) get double the file downloads and double the email notifications. If I apply it to the Original Order, I get triple the file downloads and triple the email notifications. However, using Updated Order there have been some instances (about 10% of the time) where I only get 1 file download and one invoice sent to the customer (which is correct)! and there are some instances where NO file download or invoice gets triggered (about 10% of the time).

So the problem appears to exist in Move Payment Received to Completed, or in the Email Notification CA's, or both.

I think that it would be a good idea to have an out-of-the-box CA for "Move payment received to completed" that is disabled by default.

Riki's picture
Offline
Joined: 01/10/2009
Juice: 196
Re: Re: Re: conditional actions and file downloads

Im having the same exact problem. Ill try some of the things posted here and see if it helps but my situation is this:

I have a 1 product with 2 attributes. Download, and DVD+Download. You can figure out from the attribute names what happens. So the Download works great, but the DVD+Download doesnt give the user automatic downloads. I had this working in UC1. So I tried editing the CA to just go straight to complete when payment recieved, which actually works, but they dont get the download. So im pulling my hair out. Ill keep trying I guess and post my results.

- Riki Babington
www.eat3d.com
Feed Your Brain!

paulg's picture
Offline
Joined: 02/26/2008
Juice: 23
Re: Re: Re: conditional actions and file downloads

I should also add that I spend most of my time testing anonymous checkout - no pre-existing user and no login - during checkout. I have a feeling (not verified) that this adds to the unreliability of the CA workflow. What continues to puzzle me is why the CA Move Payment Received to Complete is so much more unreliable than the old Workflow rule.

paulg's picture
Offline
Joined: 02/26/2008
Juice: 23
Re: Re: conditional actions and file downloads

Over the past week, I've had 13 new orders. These 13 were, for the most part, all done with the user pre-registering their account, and THEN ordering. Results: only 1 order out of 13 got double file downloads. So that's great. I can't verify for sure whether or not the 1 busted order was associated with an anonymous checkout - but I have a feeling that it was.

So I think the Move Payment Received to Complete probably works ok. The problem might be more related to how certain events (and their sequence) such as user registration are handled in the CA queue.

I am still open to ideas about how the event and queue timing/handling can be debugged.

j0rd's picture
Offline
Getting busy with the Ubercode.
Joined: 07/16/2008
Juice: 453
Re: Conditional actions for file downloads

The conditional action will not change the order to complete, if there is a single shipable product in the order. This means that if you have an order with one digital and one physical product the status will remain on "Payment Received".

I've explained the problem and provided a solution to this issue here:

http://drupal.org/node/1227076

--
Drupal Commerce & Ubercart Themes Development