Closed (duplicate)
Project:
e-Commerce
Version:
4.6.x-1.x-dev
Component:
cart
Priority:
Critical
Category:
Feature request
Assigned:
Reporter:
Created:
2 Dec 2005 at 05:57 UTC
Updated:
30 Jun 2007 at 06:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
matt westgate commentedI agree. Care to submit a patch for this?
Comment #2
Timotheos commentedI was afraid you say that ;-)
I'll take a closer look tomorrow after some sleep and give it a go.
Tim
Comment #3
Timotheos commentedOk here's the patch for this problem.
But don't order yet... it also covers http://drupal.org/node/30794 and fixes this http://drupal.org/node/37220
Now there's one thing that has me stymied. If you click the address change link on the review page it goes back to cart/checkout which wipes out the info. So basically the $txn object is wiped out and the form is blank and the user would have to re-enter all the info again. Not the best. How can I stop this?
Thanks,
Tim
Comment #4
vitamin-1 commentedTimotheos,
thank you for your patch, now anonymous purchases works fine, but there is one problem here: anonymous user can submit form with blank fields. There is no valifation at all!
Comment #5
Timotheos commentedHi vitamin,
Glad it worked for you. The anonymous checkout in ecommerce is in a bit of disarray at the moment with some patches waiting in the wings. If you don't mind hacking the address module a little more you can follow my tip at http://drupal.org/node/37220#comment-58208 to validate any field.
Tim
Comment #6
iokevins commentedThanks for this patch, it solved nearly all my troubles. :)
One note for anonymous purchases, one might want to restrict access to the store/history/0 page (modules/ecommerce/store/store.module) thusly: ;)
175 /*$items[] = array('path' => "store/history/$uid", 'title' => t('order history'),
176 'callback' => 'store_user_history', 'access' => $user_access, 'type' => MENU_CALLBACK);
177 */
Not sure this breaks anything else.
Otherwise anyone in the know seems to be able to publicly access store/history/0 and view customer billing and shipping data. x_x
I have updated http://drupal.org/node/39655 with this bit of news as well.
Kevin
Comment #7
iokevins commentedWhoops. Last bit was meant to state "I have updated http://drupal.org/node/39655 with this bit of news as well."
Comment #8
iokevins commentedWhoops. Last bit was meant to state "I have updated http://drupal.org/node/37220 with this bit of news as well."
Comment #9
simebump, worth review
Comment #10
brmassa commenteda newer patch is provided on http://drupal.org/node/140628