Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I found 2 issues for Anonymous checkout
1. Orders without mail
Anonymous checkout - click Continue button without a selection.
2. Orders without user - i already confirmed in a previous comment
Anonymous checkout - login option selected, press continue button instead of login.
Solution - the Continue button should be disabled for both cases, it should be available only for "Continue without login" option selected.
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff-2377321-7-9.txt | 768 bytes | Nebel54 |
#9 | anonymous_checkout-2377321-9.patch | 3.27 KB | Nebel54 |
#8 | interdiff-2377321-7-8.txt | 2.91 KB | Nebel54 |
#8 | anonymous_checkout-2377321-8.patch | 0 bytes | Nebel54 |
#7 | anonymous_checkout-2377321-7.patch | 3.31 KB | mglaman |
Comments
Comment #1
vasikethere is a patch the implements the solution proposal from the issue description.
to achieve the issue i had to change the wrapper used for the ajax - entire checkout form to include also the buttons.
Comment #2
cornelia CreditAttribution: cornelia commentedwhy not simply setting the radios as required in function commerce_login_step_form_commerce_checkout_form_alter() like so
...
'#options' => array(
'anonymous' => t('Continue without login'),
'login' => t('Login with an existing account'),
),
'#required' => TRUE,
...
Comment #3
krisahil CreditAttribution: krisahil commentedWe've been using this module and see the same problem. However, I'd like to propose to fix it by using the existing "Continue" button, instead of disabling it. I think this is a cleaner approach. Let me know what you think!
Comment #4
ultrandy89 CreditAttribution: ultrandy89 commentedI am finding in my site I am able to have an anonymous order with an existing email. Nothing seems to prevent this from happening. Is there even a quick rule I could put in?
To clarify:
Comment #5
AnybodyThe suggestion from #2 is good and works wonderful! Please add this as a quickfix release!
The patch from #3 changes several things so that we should have a deeper look.
Is there still an active maintainer for this module willing to fix the bugs? I'd like to offer my help in maintainership if you're no more active.
PS: If we'd like to disable the process button, the Drupal form #states API will help, I think!
Comment #6
mglamanThis does not prevent a user from skipping the selection of "Choose how you want to checkout"
Comment #7
mglamanThis addresses item #1 in summary, which other patch only concerned #2. Looks like we should be solid on fix now for original issue summary.
Comment #8
Nebel54#prefix is used in both lines, and it raises notices, if $form['#prefix'] is not defined.
I needed to remove this code-style improvement, to apply another patch (2362777-9)
Added an improved version of patch #7
Comment #9
Nebel54Those patches went horribly wrong :( Re-Uploaded them.