6

Looking to be able to style/customize error pages for Expresso Store or EE. Anyone have experience ideas of this please? Thanks.

  • Many thanks for the helpful replies! – MGX Dec 7 '12 at 11:36
  • Remember to mark an answer as correct if it solves your question – Justin Long Apr 8 '13 at 1:08
7

The easiest way to customize the error messages shown would be to set error_handling=”inline” in your checkout template opening tag as mentioned in the docs here. Then you would be able to add {error:field_name} anywhere you would like to show the errors.

Alternatively if you want to customize the text that is shown you can do something like:

{if error:field_name}Whoa buddy! Your custom error message for this field_name goes here.{/if}

If that doesn't fit your needs you would need to use something like Custom System Messages of LibrarEE or redoing the built in error templates to suit your needs.

| improve this answer | |
3

I'm not sure if Store has it's own error pages or not though, for EE itself take a look at Custom System Messages for styling all your error pages:

http://devot-ee.com/add-ons/custom-system-messages

| improve this answer | |
3

You can control the page EE shows when a 404 is encountered via your Global Template Preferences.

The error page you see when EE or an add-on encounters a submission error, or when you're being redirected after a form submission, is controlled via the User Message Template.

| improve this answer | |
0

Wrap your error code i.e. {error:field_name} in a label tag and then style your label tag with some css. This ought to do the trick.

Something like:

<label class="error">{error:field_name}</label>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.