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

Allow for customization/translation of warning messages #7

Open
NickGreen opened this issue Mar 24, 2018 · 2 comments
Open

Allow for customization/translation of warning messages #7

NickGreen opened this issue Mar 24, 2018 · 2 comments

Comments

@NickGreen
Copy link
Collaborator

This is a feature request that I predict will happen. I can add it in at a later date if it becomes necessary.

Would need to customize:

  • Single product warning
  • Cart warning
  • Default WooCommerce "is not purchasable" alert box

Could set as a storewide setting in the options, or on a product level.

Another option might be to make it translatable, so that people could use Say What? to change the text themselves. That would have the added benefit of making it translatable for international users as well.

@NickGreen
Copy link
Collaborator Author

Places to adjust the text to make more sense:

  • 'Add to Cart' button (says 'read more' when product isn't purchasable)
  • Alert that pops up when a variation product isn't purchasable possibly relevant

@NickGreen
Copy link
Collaborator Author

@jessLundie If you decided to bite this off, this is the general approach I would take to get started:

  1. Test the plugin and note every place that a warning message appears. Start to investigate where in the code these messages are originating.
  2. Research how other plugins, such as Subscriptions, add warning messages. Specifically regarding translatability.
  3. Decide on what the best solution to UI would be. Do we need an input in the admin area, or do we just rely on translation for customization?

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

1 participant