This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Add additionalCartCheckoutInnerBlockTypes
filter to enable additional blocks in the Cart/Checkout blocks.
#8650
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opr
added
status: needs review
type: enhancement
The issue is a request for an enhancement.
category: extensibility
Work involving adding or updating extensibility. Useful to combine with other scopes impacted.
focus: blocks
Specific work involving or impacting how blocks behave.
needs: dev note
PR that has some text that needs to be included in the release notes.
block: cart
Issues related to the cart block.
block: checkout
Issues related to the checkout block.
labels
Mar 7, 2023
woocommercebot
requested review from
a team and
mikejolley
and removed request for
a team
March 7, 2023 04:25
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 TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: +351 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
opr
force-pushed
the
add/allowed-blocks-filter
branch
from
March 10, 2023 18:51
65abd2f
to
d99961f
Compare
mikejolley
approved these changes
Mar 14, 2023
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label. |
github-actions
bot
added
the
status: stale
Stale issues and PRs have had no updates for 60 days.
label
Mar 22, 2023
mikejolley
removed
the
status: stale
Stale issues and PRs have had no updates for 60 days.
label
Mar 22, 2023
mikejolley
force-pushed
the
add/allowed-blocks-filter
branch
from
March 22, 2023 13:21
d99961f
to
5108255
Compare
opr
force-pushed
the
add/allowed-blocks-filter
branch
from
March 28, 2023 10:29
5108255
to
d463f1b
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
block: cart
Issues related to the cart block.
block: checkout
Issues related to the checkout block.
category: extensibility
Work involving adding or updating extensibility. Useful to combine with other scopes impacted.
focus: blocks
Specific work involving or impacting how blocks behave.
needs: dev note
PR that has some text that needs to be included in the release notes.
type: enhancement
The issue is a request for an enhancement.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new filter,
allowedBlockTypes
which can be used to enable additional blocks in the Cart and Checkout blocks. It can also be used to disable blocks that are allowed by default.It also adds relevant documentation for this filter.
Fixes #7661
Testing
Automated Tests
User Facing Testing
Internal developer testing
@woocommerce/extend-cart-checkout-block
woocommerce/checkout-shipping-address-block
and add a new block to it.Table
block and theAudio
block.Audio
block can be added, not theTable
block.WooCommerce Visibility
Dev note
In this release we added a new filter,
additionalCartCheckoutInnerBlockTypes
which allows additional block types to be added to the Cart and Checkout inner blocks areas. We included an example of how to use it in the available filters documentation.Changelog