Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to fetch checkoutSettings via api / hooks?

How to fetch checkoutSettings via api / hooks?

StevenFitzAA
Shopify Partner
15 0 8

Hi,

 

Is there any way from an extension (Checkout UI) to read what settings the merchant has applied to their checkout page from admin side?

 

My example is "Customer Information" panel where a merchant can set if Organisation field is mandatory/optional or don't include. I can see there is a graphql api out there which can return the data but not sure if it's exposed to developers? 

 

"checkoutSettings": {
                "customizations": {
                    "firstNameFieldMode": "OPTIONAL",
                    "companyFieldMode": "OPTIONAL",
                    "address2FieldMode": "OPTIONAL",
                    "phoneFieldMode": "REQUIRED",
                    "__typename": "CheckoutSettingsCustomizations"
                },

 

StevenFitzAA_0-1712048399543.png

 

Is there any way to fetch similiar data or to determine from Checkout UI extension if the merchant has set organisation field to Don't include / Optional / Required?

Replies 0 (0)