1

Is anyone aware of a solution using Drupal Commerce (or alternatives) whereby I can have a product which can go through the following sequence:

  1. anonymous user places in cart
  2. anonymous user goes to checkout
  3. payment is completed
  4. a unique token/string is assigned to the email address provided in purchase
  5. a url from which an anonymous user can download the purchased file is created and emailed to the address provided as well as displayed on checkout completion screen
  6. after a defined period of time the link would expire
  7. non-expired links could then be retrieved via a form by supplying email address to resend them

I can achieve most of the above with commerce_file but it seems that it requires logging in to the user account to access paid for downloads.

Seems like this would be a use case that would not be completely unique so hoping someone has an idea of how best to achieve this without having to roll my own solution.

Thanks in advance

Rich

1 Answer 1

0

Drupal commerce has a permission to complete the checkout process, that might be your issue there, check the permissions page (admin/people/permissions) and grant anonymous users the "access checkout" permission

enter image description here

6
  • This allows anonymous users to complete the checkout process but doesn't solve the problem of accessing the purchased file after completing the payment unfortunately. Commented Jun 24, 2014 at 14:25
  • Are you using commerce file 2.x with commerce license? check out drupal.org/node/1395488 and docs in drupal.org/node/2043917
    – pcambra
    Commented Jun 24, 2014 at 14:54
  • Ok so I now get a link on the checkout complete page that allows the downloading of the file. Just need to work out how to have that link sent to the user in an email and remain valid for the duration of the licence... if that's possible Commented Jul 2, 2014 at 16:47
  • You've got rule events on checkout complete that can trigger emails, adding the link in there I guess can be accomplished by tokens. You can user commerce_bily to generate an invoice in case you want that too.
    – pcambra
    Commented Jul 4, 2014 at 15:05
  • The checkout provided link only works for that session, I'm not sure of the exact mechanism by which this works but is looking increasingly like there is no clean solution for what I was hoping to be able to do. Commented Jul 4, 2014 at 15:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.