9e00b015fc
* Refactor Store Notices Move snackbar hiding filter before notice creation Implements showApplyCouponNotice Refactor context providers Use STORE_NOTICE_CONTEXTS use refs to track notice containers Refactor ref usage Use existing noticeContexts * Move new notice code to checkout package * Combine store and snackbars * Update noticeContexts imports * Remove context provider * Update data store * Fix 502 * Add new error contexts * Force types * Unnecessary reorder of imports * Fix global handling * Document forceType * Optional props are undefined * Remove function name * Missing condition * Remove context prop * Define ACTION_TYPES * Remove controls * Update assets/js/base/context/event-emit/utils.ts Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com> * CONTACT_INFORMATION * Remove ref from registerContainer * Abstract container locating methods * pass context correctly when displaying notices * Remove debugging buttons * Update filter usage - remove useMemo so filter can work inline * Refactor existing error notices from the API (https://github.com/woocommerce/woocommerce-blocks/pull/7728) * Update API type defs * Move create notice utils * Replace useCheckoutNotices with new contexts * processCheckoutResponseHeaders should check headers are defined * Scroll to error notices only if we're not editing a field * Error handling utils * processErrorResponse when pushing changes * processErrorResponse when processing checkout * remove formatStoreApiErrorMessage * Add todo for cart errors * Remove unused deps * unused imports * Fix linting warnings * Unused dep * Update assets/js/types/type-defs/api-response.ts Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com> * Add todo * Use generic * remove const * Update array types * Phone should be in address blocks Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com> * Update store name to wc/store/store-notices * Fix assertResponseIsValid * Funnel woocommerce_rest_invalid_email_address to the correct place * woocommerce_rest_missing_email_address * Move comments around * Move data back into const * Spacing * Remove spacing * Remove forced snack bar and styling * Move notices within wrapper * Remove type * hasStoreNoticesContainer rename * Group by status/context * Remove global context * Remove white space * remove changes to simplify diff * white space * Move comment to typescript * List style * showApplyCouponNotice docs * See if scrollIntoView exists * fix notice tests Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com> |
||
---|---|---|
.. | ||
checkout-block | ||
checkout-payment-methods | ||
data-store | ||
hooks | ||
rest-api | ||
README.md |
README.md
Extensibility in WooCommerce Blocks
Table of Contents
These documents are all dealing with extensibility in the various WooCommerce Blocks.
Hooks (actions and filters)
Document | Description |
---|---|
Actions | Documentation covering action hooks on the server side. |
Filters | Documentation covering filter hooks on the server side. |
REST API
Document | Description |
---|---|
Exposing your data in the Store API. | Explains how you can add additional data to Store API endpoints. |
Available endpoints to extend with ExtendSchema | A list of all available endpoints to extend. |
Adding an endpoint to ExtendSchema. | A step by step process for contributors to expose a new endpoint via ExtendSchema. |
Available Formatters | Available Formatters to format data for use in the Store API. |
Checkout Payment Methods
Document | Description |
---|---|
Checkout Flow and Events | All about the checkout flow in the checkout block and the various emitted events that can be subscribed to. |
Payment Method Integration | Information about implementing payment methods. |
Filtering Payment Methods | Information about filtering the payment methods available in the Checkout Block. |
Checkout Block
In addition to the reference material below, please see the block-checkout
package documentation which is used to extend checkout with Filters, Slot Fills, and Inner Blocks.
Document | Description |
---|---|
IntegrationInterface | The IntegrationInterface class and how to use it to register scripts, styles, and data with WooCommerce Blocks. |
Available Filters | All about the filters that you may use to change values of certain elements of WooCommerce Blocks. |
Slots and Fills | Explains Slot Fills and how to use them to render your own components in Cart and Checkout. |
Available Slot Fills | Available Slots that you can use and their positions in Cart and Checkout. |
DOM Events | A list of DOM Events used by some blocks to communicate between them and with other parts of WooCommerce. |
Filter Registry | The filter registry allows callbacks to be registered to manipulate certain values. |
We're hiring! Come work with us!
🐞 Found a mistake, or have a suggestion? Leave feedback about this document here.