Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Checkout Editor] Default values in toml settings #739

Open
gil-- opened this issue Feb 15, 2023 · 9 comments
Open

[Checkout Editor] Default values in toml settings #739

gil-- opened this issue Feb 15, 2023 · 9 comments

Comments

@gil--
Copy link
Member

gil-- commented Feb 15, 2023

Please list the related package(s)

checkout-ui-extensions

If this related to specific APIs or components, please list them here

For example:

[settings]
  [[settings.fields]]
  key = "title"
  type = "single_line_text_field"
  name = "Title (optional)"
  description = "Enter a title for the block."

Would have a default:

[settings]
  [[settings.fields]]
  key = "title"
  type = "single_line_text_field"
  name = "Title (optional)"
  description = "Enter a title for the block."
+ default = "Hello!!"

Is your feature request related to a problem? Please describe.

Would be nice to specify a default value for a toml input setting similar to the default attribute for theme settings.

Describe the changes you are looking for

Add ability to specify the default value for a setting via new default attribute on all input setitngs.

Describe alternatives you’ve considered

I specify a default in the extension code but it's not ideal as there's nothing selected within the checkout editor. Does not work super well if you want a checkbox selected by default for example.

@gil-- gil-- added the enhancement New feature or request label Feb 15, 2023
@gil-- gil-- changed the title [Checkout Editor] Default values [Checkout Editor] Default values in toml settings Feb 15, 2023
@jfeuchterbc
Copy link

+1 This would be great to have

@javelpivotech
Copy link

+1 Please add it!

@bluedge
Copy link

bluedge commented Feb 9, 2024

Much needed +1

@FranciscoBejaranoBluEdgeUsa

Absolutely necessary! +1

@CodeMan82
Copy link

This would be a great addition to the extension definitions!

@aidin
Copy link

aidin commented Aug 10, 2024

Upvote!!

@merziy
Copy link

merziy commented Oct 9, 2024

This would be useful, surprised it is not a thing.

@Sandor79
Copy link

Absolutely necessary! +1

@aaronkantrowitz
Copy link

Need!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests