-
Notifications
You must be signed in to change notification settings - Fork 219
Respect core settings for showing the Checkout block #7883
Respect core settings for showing the Checkout block #7883
Conversation
The release ZIP for this PR is accessible via:
|
TypeScript Errors ReportFiles with errors: 431 🎉 🎉 This PR does not introduce new TS errors. |
Size Change: -686 B (0%) Total Size: 1.01 MB
ℹ️ View Unchanged
|
The release ZIP for this PR is accessible via:
|
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work Niels, minor comment but feel free to ship without it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand this now and tested the main case. Small comments/suggestions but nothing blocking. Pre-approving.
Co-authored-by: Mike Jolley <mike.jolley@me.com>
0fc0177
to
664b639
Compare
Fixes #7823
In #7823, @senadir reported that the following two WooCommerce core settings are not respected by the Checkout block:
This PR aims to ensure that these WooCommerce core settings are respected by the Checkout block and that the Checkout block behaves identical to the shortcode-based checkout.
Testing
Show login prompt when guest checkout and account creation (in core) are disabled
/wp-admin/admin.php?page=wc-settings&tab=account
.Guest checkout
→Allow customers to place orders without an account
.Account creation
→Allow customers to create an account during checkout
.You must be logged in to checkout. Click here to log in.
.Show checkout when guest checkout is enabled, but account creation is disabled
/wp-admin/admin.php?page=wc-settings&tab=account
.Guest checkout
→Allow customers to place orders without an account
.Account creation
→Allow customers to create an account during checkout
.Guest
as aCustomer
:Show checkout when guest checkout is disabled, but account creation is enabled
/wp-admin/admin.php?page=wc-settings&tab=account
.Guest checkout
→Allow customers to place orders without an account
.Account creation
→Allow customers to create an account during checkout
.Customer
:Show checkout when guest checkout and account creation are enabled, but don't create account
/wp-admin/admin.php?page=wc-settings&tab=account
.Guest checkout
→Allow customers to place orders without an account
.Account creation
→Allow customers to create an account during checkout
.Create an account?
is not checked.Guest
as aCustomer
.Show checkout when guest checkout and account creation are enabled, and create account
/wp-admin/admin.php?page=wc-settings&tab=account
.Guest checkout
→Allow customers to place orders without an account
.Account creation
→Allow customers to create an account during checkout
.Create an account?
is checked.Customer
:Verify that display logic is in sync
WooCommerce Visibility
Changelog