This module is excellent for certain kinds of sites, but I feel it would be more versatile if the registration step could be made optional.
This module is excellent for certain kinds of sites, but I feel it would be more versatile if the registration step could be made optional.
Comments
Comment #1
theo_ commentedI need this functionality too, something called "Continue as guest".
I'm thinking about a button somewhere on the checkout login form, which just skip the login step.
Comment #2
nelslynn commentedAny additional interest in this? This is a common option for other carts today:
1. Login
2. Register, OR
3. Continue checkout as a guest.
I've also posted this suggestion on the issue page for commerce_checkout_login however it's probably a better option for this module.
Can anyone help with a patch to add a button/functionality to "Checkout as a Guest"?
Comment #3
pixelsweatshop commentedI agree that there should be optional component to this module. We want to allow anonymous users to checkout but be given the option to either login to an existing account or register.
i would be surprised if the commerce_checkout_login would integrate this, so it would be great to address it here. I see that the commerce kickstart distro uses Commerce Checkout Redirect and that there has been no commit to Commerce checkout login in 2 years.
Comment #4
nodecode commentedI took a shot at this. I only modified commerce_checkout_redirect.module but I never figured out making patches (the Drupal gurus need to fix that insanely complex system). So here is a full module to replace your existing module files and test. Let me know what you think.
There are a few notes:
1. I assume you have something active in the "Checkout" pane enabled in your checkout settings at "/admin/commerce/config/checkout/form." This page is what triggers the redirect in my version.
2. The user is only asked to login ONCE per order (or per session, whichever ends first). When the order is completed or the session is ended, the process starts over again and the anonymous user is redirected at checkout.
3. The user must have something in their cart to be redirected.
4. I realize that the placement of the "Checkout without an account" button would be better off at the end of the form, but I don't know how to position it anywhere else. I need help there. I styled it with some css to float that button to the right side on my login form and it looks decent on my site:
#edit-continue-button {float: right;}Give me some feedback and hopefully if the community likes it enough we can make this into a patch with a little work.
Comment #5
nodecode commentedI debugged the anonymous redirection and eliminated the need for the first assumption I made in my previous post. Please check this out and let me know how you like it.
I'm really happy how this turned out.
Comment #6
timodwhit commentedI really liked the change you made @nodecode.
So I made a patch:
Comment #7
timodwhit commentedReuploading patch with correct naming... hoepfully.
Comment #8
timodwhit commentedChanged version... and trying again.
Comment #9
timodwhit commentedTo position the elements under the form for commerce kickstart sites and most other sites, it would simple addition of weights like so:
Comment #10
Firetracker commentedHi,
Thanks for this patch. I'll being trying it out on one of our sites today.
guillaumev - will this patch be making the release version? This or something like it would make this module complete.
Cheers
zap
Comment #11
waltercat commentedsubscribing
Comment #12
vasikehere is a new patch that adds new things to the previouses:
- a module settings page with 2 settings: one for anonymous checkout and the second an extra option for the previous one, anonymous checkout as option to login form (Amazon style?).
- new form altering according with the new settings.
- unset the Session variables for reset checkout (back to cart).
- uninstall for the new settings variables.
Comment #13
vasikeforgot the patch. sorry
Comment #14
vasikehere is a new patch that adds new setting for the anonymous checkout:
"Use username as order email".
with this setting set then the username form element for login form will be used for the order as its email.
the form element will have the system email validation.
The account information pane will be disabled.
Comment #15
vasikecommit the latest patch (#14) : http://drupalcode.org/project/commerce_checkout_redirect.git/commit/42f3365
some feedback/reviews for the dev will be great. maybe we could have a RC release. thank you all.
Comment #16
vasikerevert the commit. needs more work, commit not so clean.
Comment #17
vasikethere is a rework of the previous patch. i hope it's better if not the right one.
Comment #18
chintan.vyas commentedApplied patch in #17 but Found below error if I choose yes radio button on login page.
Notice: Undefined variable: order_id in commerce_checkout_redirect_redirect_anonymous_submit() (line 175 of /var/www/drupal7/sites/all/modules/commerce_checkout_redirect/commerce_checkout_redirect.module).
Also I suggest we should not alter default drupal login form. Instead we can provide Checkout as guest button on cart page, what do you think?
Comment #19
vasikethere's reroll of previous patch for the latest dev version.
this also should have a fix for #18 error notice.
@chintan.vyas : thank you Sir, indeed there was some old code which actually was breaking the checkout login redirect.
Comment #20
vasikeit seems the conditions for the form alter of the user login/register forms are not enough.
it will alter the forms only if there are items in the cart.
there is new patch that adds new condition, the $_SESSION['commerce_checkout_redirect_anonymous'] variable set.
Comment #21
gc11 commentedhow about the kickstart version? Can I patch it directly? Or can I replace the kickstart version? thx.
Comment #22
vasikelatest patch (#20) commited: http://drupalcode.org/project/commerce_checkout_redirect.git/commit/859506e
i couldn't find any other issues for it.
Comment #23
vasikeComment #25
roball commentedIn
commerce_checkout_redirect_redirect_anonymous_submit($form, &$form_state), the$form_statearray does not contain$form_state['#order'], so$orderis alwaysFALSEand$form_state['redirect'] = 'checkout/' . $order->order_id;never happens.Comment #26
roball commentedPatch in #29 of #1275330: Not being redirected to checkout after having logged in corrects the problem by reverting to use
$order_idinstead of$order.Comment #27
roball commentedComment #28
vasikesolution for #1275330: Not being redirected to checkout after having logged in commited. i think we can close this too.
@roball: thank you Sir
Comment #30
etron770 commentedWill this function be added in the next version?
Thanks for the patch
Comment #31
roball commentedetron770, as you can see in this issue's status, the code has already been committed. The feature is already available in the current release version (7.x-2.0-beta2).
Comment #32
etron770 commentedSorry I am lost ...
using commerce Kickstart:
I get only the message "You need to be logged in to be able to checkout."
I do not find the configuration for the module.
Comment #33
roball commentedGo to "Administration -> Store -> Configuration -> Checkout Redirect" (admin/commerce/config/checkout_redirect) and enable the "Continue without register" checkbox to enable this feature.
Comment #34
etron770 commentedStrange
If I call en/admin/commerce/config/checkout_redirect (multilingual installation)
it redirects to en/admin/commerce/config
commerce redirect in the kickstart profile :
; Information added by drupal.org packaging script on 2013-02-13
version = "7.x-2.0-beta1"
core = "7.x"
project = "commerce_checkout_redirect"
datestamp = "1360767327"
Comment #35
roball commentedYou should update Commerce Checkout Redirect to the latest release, which is currently 7.x-2.0-beta2!
Comment #36
etron770 commentedSorry to waste your time I did not read the beta2
works as expected