woocommerce/plugins/woocommerce-blocks/assets/js/data/checkout
Mike Jolley 45923dc5f3
[Experiment] Handle customer session meta data (#44181)
* Update data store to bail if there is no customer ID

* Use WC_Data meta functions

* Save and load meta in session class

* Customer session handling

* CheckoutFields - only persist customer data to accounts

* Inline docs for session handling

* Handle meta data in session

* Document wc->customer inline

* Store only additional fields in session

* Prevent notice in WC_Data

* Organise keys and remove duplicates

* Correctly save fields to account

* Fix notices on checkout

* Remove unnecessary diff

* Changelog

* Go back to previous way to loading session handler to avoid 3rd party breakage

* No need to track is_session

* white space

* Remove changes to customer data store

* Update class-wc-customer-data-store.php

* Populate client from additional values from api

* Additional fields in session

* Add woocommerce_customer_allowed_session_meta_keys hook

* Put back legacy keys for tests

* Remove key fixes

* Don't save additional fields to customer object

* Remove duplicate init call

* Only persist contact fields
2024-02-06 15:16:00 +00:00
..
test Refactor payment status (https://github.com/woocommerce/woocommerce-blocks/pull/8110) 2023-02-14 12:08:19 +00:00
README.md Improve the data stores documentation (https://github.com/woocommerce/woocommerce-blocks/pull/11336) 2023-10-26 09:37:13 +07:00
action-types.ts Support additional fields in the Contact step for Checkout (#43088) 2024-01-05 18:35:28 +01:00
actions.ts Support additional fields in the Contact step for Checkout (#43088) 2024-01-05 18:35:28 +01:00
constants.ts [Experiment] Handle customer session meta data (#44181) 2024-02-06 15:16:00 +00:00
default-state.ts [Experiment] Handle customer session meta data (#44181) 2024-02-06 15:16:00 +00:00
index.ts Add thunk support for < WP 5.9 (https://github.com/woocommerce/woocommerce-blocks/pull/8136) 2023-01-09 15:01:49 -08:00
reducers.ts Support additional fields in the Contact step for Checkout (#43088) 2024-01-05 18:35:28 +01:00
selectors.ts Support additional fields in the Contact step for Checkout (#43088) 2024-01-05 18:35:28 +01:00
thunks.ts Rename the checkout events (https://github.com/woocommerce/woocommerce-blocks/pull/8381) 2023-02-17 11:03:13 +00:00
types.ts Add stricter observer type checks in payments thunk to improve resilience to bad observer responses (https://github.com/woocommerce/woocommerce-blocks/pull/8319) 2023-02-13 03:43:57 -08:00
utils.ts update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00

README.md

Checkout Store

The docs for the Checkout Store can be found in docs/third-party-developers/extensibility/data-store/checkout.md.