woocommerce/plugins/woocommerce-blocks/assets/js/blocks/checkout
Tarun Vijwani 506499dec4
Prevent prefilling of the billing address with the shipping address in the Checkout block for the Guest Shopper (#44347)
* Clear billing address when useShippingAsBilling checkbox is unchecked

* Add billing address sync with server

* Add useRef hook to store previous billing address and update sync functions

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Revert "Add useRef hook to store previous billing address and update sync functions"

This reverts commit 7bc3312ab7.

* Added condition to clear address only for guest users

* Add E2E test to check billing address form is empty for Guest shopper

* Fix typo

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Updated docs-manifest.json

* Revert "Updated docs-manifest.json"

This reverts commit 20d578a9d6.

* Include company field in the E2E test

* Replace beforeAll with beforeEach

* Skip country reset to keep consistency with Shortcode Checkout

* Remove sync billing address on server

* Update E2E test to include the shipping address check

* Remove unsed  imports

* Clear address fields except country and state

* Optimize the billing and shipping address check with switch statement

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
2024-02-16 16:10:51 +04:00
..
address-card Support additional fields in the Contact step for Checkout (#43088) 2024-01-05 18:35:28 +01:00
address-wrapper Ensure validation of fields occurs when collapsing fields (https://github.com/woocommerce/woocommerce-blocks/pull/11199) 2023-10-10 22:07:58 +01:00
checkout-order-error Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
empty-cart Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
form-step Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
inner-blocks Prevent prefilling of the billing address with the shipping address in the Checkout block for the Guest Shopper (#44347) 2024-02-16 16:10:51 +04:00
order-notes Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
phone-number update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
styles Update the border colors in the Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/11474) 2023-12-07 21:37:48 +04:00
attributes.ts Move Checkout block attributes into metadata (`block.json`) (https://github.com/woocommerce/woocommerce-blocks/pull/5594) 2022-01-28 16:37:06 +00:00
block.json Update Blocks Text Domain 2023-12-09 05:44:54 -08:00
block.tsx Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
context.ts Remove account creation setting from Checkout block (https://github.com/woocommerce/woocommerce-blocks/pull/7941) 2022-12-15 18:13:28 +07:00
edit.tsx Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
frontend.tsx Spread metadata when loading block in frontend (https://github.com/woocommerce/woocommerce-blocks/pull/5732) 2022-02-08 10:33:27 +00:00
index.tsx Add additional information block for custom checkout fields (#43274) 2024-01-10 06:20:06 -08:00
types.ts Remove account creation setting from Checkout block (https://github.com/woocommerce/woocommerce-blocks/pull/7941) 2022-12-15 18:13:28 +07:00
utils.ts Move Checkout block attributes into metadata (`block.json`) (https://github.com/woocommerce/woocommerce-blocks/pull/5594) 2022-01-28 16:37:06 +00:00