Hi everyone,
At date the EC supports anonymous purchasing to the extent that a buyer isn’t required to open an account, rather only to fill out his email address as part of the purchasing process. It's assumed that from this point it's the store's admin responsibility to ship the goods to the buyer.
File (video, music, software, etc.) calls for special treatment as by nature they aren't shippable. So in order to buy a file the buyer must fill out the registration form and create an account, and the purchased files will be populated into the "myfiles" directory in the buyer's account.
I’d like to propose an alternative where a potential buyer won’t be required to sign up for a drupal account. The sequence:
- as part of the purchase sequence the buyer will only fill out his email address (as anonymous buyer do today, thus no change to the code is proposed)
- the buyer will get a download-file-url link embedded in the EC confirmation email
- clicking on this download-url will (a) authenticate the buyer, and (b) direct the buyer to the purchased file
I feel (and it seems that it gets a lot of support here) that such scheme will simplify the buyer's experience, and will make it less intimidate.
I hired a contract to do the project and I’d like to contribute it back to the EC community. If you feel that such tool is needed, and can leverage your business, I’d greatly appreciate it you could chip-in and donate.
Best regards
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | ec_anon_instant_login.zip_.txt | 20.63 KB | esadot |
| #4 | ec_anon.module.txt | 23.58 KB | esadot |
| #1 | ec_anon.ap1_.zip_.diff | 10.83 KB | esadot |
Comments
Comment #1
esadot commentedPlease find attached the 1st version (it's a zip file, please extract the suffix diff)
From the user preservative:
- only fill out his email address (user is not required to create an account)
- after transaction is completed, click on "return to merchant" brings the user to a specific page
- user gets an email with a one-click-link to the same specific page
Les generic explanation: taking file purchase as a test case, after transaction is completed user is redirected to "myfiles" directory where file resides, and at the same time gets an email with one-time-link to the same "myfiles" directory.
How to set it up:
- extract the suffix diff and unzip it
- install the ec_anon patch
- install site pass module and replace sitepass.module with the attached
- optionally, install paypal patch
Configurations:
- admin/ecsettings/store: set Anonymous purchasing policy to Anonymous only
- admin/ecsettings/store: set Anonymous purchasing log in page to %myfiles
- optionally, admin/ecsettings/paypal: set Successful payment URL: to %myfiles
- admin/user/settings: check Visitors can create accounts and no administrator approval is required
- optionally admin/user/settings: unchecked Require e-mail verification when a visitor creates an account
- admin/ecsettings/ec_mail: add [target-page] Customer invoice, for instance: "Your files can be found at: [target-page] (you may need to click the "myfiles" link at the left hand side). Note, after 24 you'll need to regain access. Please enter your email at [site-url]/sitepass/request, and click the "E-mail site pass" button. Please accept our apologies for the inconvenience"
- optionally admin/user/sitepass: Body of site pass e-mail can be amended to incorporate "myfiles, for instance: Your files can be found at: !login_url?destination=/store/myfiles/!uid. Note, after 24 you'll need to regain access. Please enter your email at !uri/sitepass/request and click the "E-mail site pass" button. Please accept our apologies for the inconvenience.
Two known issues:
1. Recurrent user isn't automatically redirect to the proper directory (myfiles in above example), rather he'll get the email embedded with the link to the proper directory.
2. If user is log in clicking on the link in the email won't redirect to the proper directory (myfiles in above example).
Many thanks to Mariano, and Sean for contributing.
Comment #2
gordon commentedThis work has been based on v3 of e-Commerce, and this area has been completely re-written and make this much easier to do all this. and handle multiple customer database types.
If you want to assist with v4 develop please do.
Comment #3
esadot commentedI couldn't wait till v4 reach maturity, so I tweaked the code to support my business. I understand where you're coming from, and I'm not disputing with you're decision.
Please let me know if I could be of any help to promote v4.
Comment #4
esadot commentedIf someone is still interested in v3, the attached solves above two issues
Comment #5
ymmatt commentedJust a clarifying question:
Is this patch/feature for ecommerce 5.x-3.4?
Comment #6
esadot commentedYes it is.
Comment #7
esadot commentedThis is a proposal to enhance the anonymous (and actually registered users as well) purchasing sequence by providing a one-time-click link to customer's account & specific page, embedded in the customer invoice mail, which in my mind, could simplifies the customer shopping experience.
Following a successful transaction, customer gets an invoice email (the normal behavior). This module allows the administrator to append a destination-page into the invoice email. When customer clicks on that link, he’ll be taken to his account, and a specific page within.
Tested with, Drupal 5.3, EC-5.x-4.0-alpha6, C.O.D as payment module.
Install and Configure:
1. Attached please find a zip file. Please remove txt suffix, and unzip it.
2. Copy and install attached sitepass. No configuration is needed.
3. Enable ec User Account module.
4. Copy ec_anon_instant_login directory into ecommerce/contrib directory and install if. A temporary name, proposals for a better name are most welcome …
5. Configure ec_anon_instant_login (admin/ecsettings/ec_one_click_login):
a. Set Customer name: to Customer's email address.
b. Set Account Activation: to active.
c. Set Destination: to %myfiles.
d. Add “Your files can be found at [dest_page]” to the Default customer invoice mail (admin/ecsettings/ec_mail/1/edit).
Take it to a test drive:
1. Add “User Creation” feature to “File download product” product (admin/ecsettings/ptypes/file/add_feature).
2. Create “File download product”.
3. Logout.
4. Purchase the file product as anonymous.
5. You (the anonymous) will get an invoice email, within it the one-time-click link.
6. Click on it, and you should (now it’ll be a good time to cross your fingers and pray :) be directed to the “myfiles” directory in your account.
Note, file and cod modules for alpha6 may need a patch, please visit http://drupal.org/node/143771#comment-621515 and http://drupal.org/node/183297#comment-621503.
Comment #8
brmassa commentedGuys,
i just published the new version of this module on eC4 CVS, fixing many of the bugs. take a look.
cheers,
massa
Comment #9
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.