$50 for 2.x D6 File Download Documentation

14 replies [Last post]
Joined: 11/18/2008
Juice: 218

I would like to offer $50 for someone to put documentation on ubercart.org for getting the product feature: file downloads, working with paypal sandbox or paypal live payment standard. Instructions would start with a clean install and list all the pages to be visited, settings to set, permissions, conditional actions, etc. After following the documentation, another user would be able to start a new drupal install and do a test product where an anonymous customer could purchase a file, and get an email with a link to download it and have the file listed in their files tab in their profile.

This is my first offer of a bounty. Sorry if it is out of line. Thanks, Cathy Theys

http://YesTrainingAndEducation.com

Joined: 08/07/2007
Juice: 15046

And just so everyone knows, anyone can post documentation. I need to do a better job of publicizing that fact, it seems. Eye-wink In case you missed the tag, this documentation is for Ubercart 2.x.

Definitely not out of line, Cathy, and we appreciate your willingness to pay to get this done for everyone.

Joined: 11/18/2008
Juice: 218

Smiling Thanks!

Joined: 11/18/2008
Juice: 218

here is a start I made:

install drupal
create content
enable modules
per http://www.ubercart.org/docs/user/8075/installing_ubercart
enable core required first
token, token actions. core ubercart modules
optional: file downloads, reports, payment, paypal
per http://www.ubercart.org/docs/user/8387/drupal_settings_tips
uncheck box that makes new account require email verification
admin/user/permissions
download files anan auth
crearte order
view own order, payments

admin/store/settings/checkout/edit
login users

admin/store/settings/checkout/edit/panes
uncheck customer info, delivery, billy, comments

admin/store/settings/cart/edit/block

dmin/store/settings/payment/edit/methods
put in paypal address sandbox vendor,
check show debug

admin/store/settings/products/edit/fields
uncheck image
admin/store/settings/products/edit/features
make dir and put ../files_example

admin/store/settings/reports
pick all report statuses

admin/store/settings/store/edit
store name, owner, email address

create content product
make a product.
put text in, sku, sell price: 3.33
uncheck shippable

node/2/edit/features
edit node, pick features
put file in directory, or have it already there. start typing the name
pick a sku on: 10001
go to home page

log out
anonymous
add to cart
checkout

does not work , order is created, but account is not created (log says cannot send email... like it doesnt get the email address from paypal)

create user
order goes through, but
no file in files tab
and order status is paypal pending
log says
IPN transaction verified. but... paypal order status stays at pending

Joined: 11/18/2008
Juice: 218

I found things went better if I created a new auto configured personal account in the sandbox right before trying to do this... a few other changes yield:

A video at: http://cathytheys.blip.tv

Which follows the script below pretty well

install drupal
create content
enable modules
per http://www.ubercart.org/docs/user/8075/installing_ubercart
enable core required first
token, token actions. core ubercart modules
optional: file downloads, reports, payment, paypal
modules enable poor mans cron
per http://www.ubercart.org/docs/user/8387/drupal_settings_tips
uncheck box that makes new account require email verification
admin/user/permissions
download files anan auth
crearte order
view own order, payments

admin/store/settings/checkout/edit
login users

checkout settings customer information
admin/store/settings/checkout/edit/panes
uncheck customer info, delivery, billy, comments

admin/store/settings/cart/edit/block

dmin/store/settings/payment/edit/methods
put in paypal address sandbox vendor,
check show debug

admin/store/settings/products/edit/fields
uncheck image
admin/store/settings/products/edit/features
make dir and put ../files_example

admin/store/settings/reports
pick all report statuses

admin/store/settings/store/edit
store name, owner, email address

create content product
make a product.
put text in, sku, sell price: 3.33
uncheck shippable

node/2/edit/features
edit node, pick features
put file in directory, or have it already there. start typing the name
pick a sku on: 10001
go to home page

log out
anonymous
add to cart
checkout

order goes through, but
no file in files tab
and order status is paypal pending
log says
IPN transaction verified. but... paypal order status stays at pending

Joined: 11/18/2008
Juice: 218

Sooooo the bounty would be for providing some documentation similar or building on this that yields the file download product feature actually working ( file automaticAlly in the users profile file tab ).

This might relate to the order status in ubercart stalled in pending (despite the ipn coming back and paypal listing it as complete) and/or conditional actions.

Joined: 11/18/2008
Juice: 218

I might have to change this to a bounty for fixing a bug instead of documentation... I cant figure out if it is broken, or if I'm just not using the right settings...

http://drupal.org/node/331667#comment-1243934

Joined: 11/18/2008
Juice: 218

dont know if this would help someone who is trying to get the file downloads documented/getting it to work:

http://cathytheys.blip.tv/#1758027

is showing weirdness in the ubercart conditional actions behavior. I added a bunch of "notes" in the order admin section so I could see when each trigger was getting fired.

The beginning of the video is long, showing the contents of all the CAs... the interesting bit is at the end.

Joined: 11/18/2008
Juice: 218

one more: this much shorter video might cut to the core of it:

http://blip.tv/file/1749568

Joined: 11/18/2008
Juice: 218

It Works!
http://cathytheys.blip.tv/#1766501

Had to add/edit a conditional action to work on the "updated" order.

more later.

Joined: 04/12/2008
Juice: 226

Awesome work Cathy. I watched the full video, figured I'd post some spoilers for others about to sit down to the same.

(It's a ~20min video, so grab a coffee! Corrected link: http://blip.tv/file/1757864 )

UC team, note there's a bug shows up at 11'00", where UC ignores the selected SKU and assigns the file download "SKU: Any". Cathy tries a couple of different methods to set SKU: 10001, but neither works.

Cathy, I can see why your fix was required if Paypal wasn't updating the order quickly enough. However, when I followed through your progress, I duplicated your module install and then copied the debugging method of adding order comments as each Conditional Action ran, and then (before adding the additional rule you added) I tested an order.

For the first time, IT WORKED. YAY!

So either (1) enabling Token Actions fixed the issue for me (in which case, uc_file should depend on token_actions) or (2) activating the debug messages nudged UC into triggering the download.

I'll test further and see ... good work, thanks for making the video!

Giant Robot - for campaign, charity, ngo & online store solutions - www.giantrobot.co.nz

Joined: 04/14/2009
Juice: 4

I also followed the Cathy path without adding the extra action, and I also got it to work. I was using the live Paypal server (not the sandbox) to test the return IPN as well, so I didn't have to simulate the IPN return as Cathy did in her video.

There must be something about adding the logging messages to the actions & debugging option that makes it all work, because I already had Token Actions enabled and running, and I still had the problem.

At 5:49 in the video, Cathy disables customer information in the checkout settings -> checkout panes... I actually had to turn that back on or else the new user account wouldn't create upon completion and I'd get error msgs upon return from Paypal screens that the UC couldn't send the order emails (the log shows the destination email address as empty). So I turned on all the checkout panes and it worked great.

Here's the order status from the successful, completed order that worked:
04/14/2009 9:44:54 AM updated order status on full payment
04/14/2009 9:44:54 AM emailed checkout notifications
04/14/2009 9:44:54 AM The stock level for TEST-KS1 has been decreased to 89.
04/14/2009 9:44:54 AM renewed purchased files
04/14/2009 9:44:54 AM User can now download the file konstrukt1.pdf.
04/14/2009 9:44:54 AM Notified customer of file granted
04/14/2009 9:44:54 AM PayPal IPN reported a payment of 1.00 USD.
04/14/2009 9:44:54 AM Order created through website.

It sent it all the emails, the DL worked from the link in the DL notification email, the new account was created, the files were available under "my account", and the download count reflected the email-link DL.

Laughing out loud THANK YOU CATHY for your super work and video docs on this, and THANK YOU xurizaemon for the insights.

PS - if you are wondering about the stock level line, yes, I know you don't need to track stock count for downloadables (unless you want to limit the number available for purchase); we're testing the stock count for books we want to sell & ship.

Joined: 04/14/2009
Juice: 4

Aha!

Cathy really did a good job with this.

Okay, I've narrowed down even more on this issue, and hopefully this info will help the developers tweak the Paypal payment module.

Without Cathy's additional predicate action added (which she does at about 15:00 in the video), the anonymous checkout feature w/auto account creation doesn't work. The order works, the payment works, the download links in the email work, but no user account is created, no account info email is sent to the user, regardless of the cart configuration settings.

Notice that the same setup - without Cathy's extra predicate action - works perfectly using the credit card payment method and the test cc gateway: it creates the user accounts, sends out the email, and even logs in the user.

Once you add in Cathy's extra predicate action, now the Paypal method will also create the user account and send out the account info email. I notice it does not log in the user, however. Interesting.

Cathy thanks again for all your work on this. I hope this boxes in the symptoms well enough for the developers to fix it without too much headache.

Joined: 11/18/2008
Juice: 218

Popping my head back in. And it is great that the video was helpful.

I am hoping to check in to see if any bug fixes make the process of getting the file downloads to work as I wanted. Then I could make a new video showing it working. Smiling Working even better that is.

Joined: 06/27/2009
Juice: 18

Thanks for posting the video. It was a wealth of information. I wish there was a bit more commentary on why you were doing what you were doing. But it was easy to follow none the less. Smiling This should help me with my next project.