After recently upgrading a client's site to 6.x-2.7, the file download purchases are not working. The product is added to the cart, the checkout is fine, and the invoice is emailed to the client without a problem... but the files are NOT assigned to the user. Both real users purchasing file downloads as well as manual order creation by admins have the same issue.

I have checked and permissions are set, and the products are configured correctly... and manually adding the files to a user's account works fine too. It seems that there is a disconnect between the file being purchased and it being added to a user account.

I also checked conditional actions to see if there was a way to do it manually, but there is not. Everything was working fine before. We are running Drupal 6.24

Any ideas on what to check next?

Comments

tr’s picture

Category: bug » support
Priority: Major » Normal

File downloads do work in 6.x-2.7, most likely there is a configuration problem on your end. Common problems are with the order status settings - file downloads are not granted until the order status is set properly. This could be associated with changes made to the PayPal payment method - if you have some custom conditional actions to set your order status on payment received those might not be working properly anymore after the changes.

konrad_m’s picture

Priority: Normal » Major

I confirm that there is a problem with the file download: something has changed between version Ubercart 2.4 and 2.7...

As rlnorthcutt mentioned, the file is not correctly attributed to the user when he completed his order.

I don't know what TR means with his configuration of "order status". I didn't have found anything there that can help me.

On my production site, since the upgrade to 2.7, the purchased files are not attributed anymore to the user. I can see that when go, as administrator, to the user => edit => Ubercart file downloads => Accessible downloads: the file he purchased is NOT there !

I have tested it again in test-server environment: with Ubercart 2.4 it works correctly. With Ubercart 2.7 and the same minimal configuration it does not.

tr’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

@konrad_m: As I said in #1, "file downloads are not granted until the order status is set properly." If FOR EXAMPLE your site is configured to grant downloads when the order reaches the "Payment received" order status, then if your order skips the "Payment received" status and goes directly to "Complete" the file access will never be granted. Or if your payment method is configured such that "Payment received" is never set, then again your file access will never be granted. Again as I said, this is likely to be the cause if you're using PayPal or customized conditional actions - I specifically mentioned those things in #1 and you neglected to mention whether you're using either. If you want help with this you're going to have to provide all the relevant information. But more important, you're going to have to understand how order status plays a role in granting file access and examine your site/orders to see when and if they ever reach the status that you have configured for triggering file access.

konrad_m’s picture

@TR: OK, thanks for your detailed answer. I begin to understand... I tested only with the status "completed" set by the administrator himself without passing "payment received" before. It works so.

I need to test now with a real payment method and will adjust the conditional action in the right way. Thanks.

tr’s picture

Status: Postponed (maintainer needs more info) » Fixed

No follow-up, so I'm going to assume the problem was fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

plato1123’s picture

This appears to still be broken in 6.x.29 (and the current Dev version), I just updated from 6.24 and multiple sites have their digital downloads broken. The files do not show up in the users accounts and there is no file notification email.

plato1123’s picture

Cross posted to ubercart here: http://www.ubercart.org/forum/support/32025/updating_ubercart_6x29_broke...

Fixed by reverting to 6.x.24 :'(