woocommerce/plugins/woocommerce-blocks/assets/js/blocks/order-confirmation/additional-fields
Mike Jolley 1dee94362f
[Experimental] Surface additional checkout fields on Order Confirmation page (#43449)
* Get default attributes on front end

* Remove console log

* Show notice about 0 registered fields in editor

* Do not show block in editor if no fields are registered

* Wrapper block

* Styling/spacing

* Update webpack config

* Register heading pattern

* Wrapper block type definition

* get_fields_for_location return fields in array format

* Use wrapper in default content

* Separate fields from the hook block

* Hide when no custom fields exist

* Address and contact fields

* Shared form fields in settings

* remove info block from wrapper

* Revert render_content to original

* rename block

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

* Update styling

* Create shared get_order_additional_fields_with_values to format values

* Update block names and descriptions

* Show address placeholders

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

* Unused import

---------

Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-01-16 13:17:28 +00:00
..
block.json [Experimental] Surface additional checkout fields on Order Confirmation page (#43449) 2024-01-16 13:17:28 +00:00
edit.tsx [Experimental] Surface additional checkout fields on Order Confirmation page (#43449) 2024-01-16 13:17:28 +00:00
index.tsx [Experimental] Surface additional checkout fields on Order Confirmation page (#43449) 2024-01-16 13:17:28 +00:00
style.scss [Experimental] Surface additional checkout fields on Order Confirmation page (#43449) 2024-01-16 13:17:28 +00:00