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.

Re: Graphql admin API - design settings update error ("branding_settings_not_enabled")

Solved

Graphql admin API - design settings update error ("branding_settings_not_enabled")

santoninko
Shopify Partner
12 0 2

When I'm trying to call "checkoutBrandingUpsert" mutation on some shops, it throws an error "CheckoutBrandingUpsertUserError", "branding_settings_not_enabled". What does it mean? On some stores it works fine, on others it doesn't. Can't find any reference of "branding_settings_not_enabled" on the internet.

Accepted Solution (1)
ClementOutis
Shopify Partner
25 4 16

This is an accepted solution.

@santoninko I think I had found why on my side.

 

I have find that when you query a checkout branding option that you haven't edited yet, you got a null value. But if you try to save this checkout branding option (without changing anything) with the checkoutBrandingUpsert you gonna got this error.

For the API, the null value is not accepted when the field doesn't have been edited previously (if null isn't a possible value for this option).

 

To avoid this I remove the null values from the result of the CheckoutBranding query.

Like that I can edit the options I want and use the mutation to save them.

 

If I need to edit new options I add the news ones in my  checkoutBrandingUpsert variables with a good value.

 

I hope this will help you (if you can understand my bad explanations 🙃)

- Helpful? Like and Accept a solution
- Casper - Cart, sync and keep saved for a month your customer's cart across multiple device seamlessly.
- BrandCraft, give you all the keys to edit your checkout page, only for Shopify Plus with the Checkout Extensibility.

View solution in original post

Replies 6 (6)

lizk
Shopify Staff
246 58 79

You should verify the store had upgraded to Checkout Extensibility

To learn more visit the Shopify Help Center or the Community Blog.

ClementOutis
Shopify Partner
25 4 16

@santoninko Did you find why this error is trigger on some shops ? 

I have the same problems on a brand new dev shop created for test this api.

- Helpful? Like and Accept a solution
- Casper - Cart, sync and keep saved for a month your customer's cart across multiple device seamlessly.
- BrandCraft, give you all the keys to edit your checkout page, only for Shopify Plus with the Checkout Extensibility.
santoninko
Shopify Partner
12 0 2

Not really 😞

ClementOutis
Shopify Partner
25 4 16

This is an accepted solution.

@santoninko I think I had found why on my side.

 

I have find that when you query a checkout branding option that you haven't edited yet, you got a null value. But if you try to save this checkout branding option (without changing anything) with the checkoutBrandingUpsert you gonna got this error.

For the API, the null value is not accepted when the field doesn't have been edited previously (if null isn't a possible value for this option).

 

To avoid this I remove the null values from the result of the CheckoutBranding query.

Like that I can edit the options I want and use the mutation to save them.

 

If I need to edit new options I add the news ones in my  checkoutBrandingUpsert variables with a good value.

 

I hope this will help you (if you can understand my bad explanations 🙃)

- Helpful? Like and Accept a solution
- Casper - Cart, sync and keep saved for a month your customer's cart across multiple device seamlessly.
- BrandCraft, give you all the keys to edit your checkout page, only for Shopify Plus with the Checkout Extensibility.
santoninko
Shopify Partner
12 0 2

Yes, that was it! Thank you.

ClementOutis
Shopify Partner
25 4 16

No problems 😉

 

Glad it helped!

- Helpful? Like and Accept a solution
- Casper - Cart, sync and keep saved for a month your customer's cart across multiple device seamlessly.
- BrandCraft, give you all the keys to edit your checkout page, only for Shopify Plus with the Checkout Extensibility.