I need to edit error messages the customer sees when making and error in login, checkout etc. Actually want to translate them into Greek but can't figure out where they are hiding. Can anyone shed some light? Do I need any special tools like tool belt or??
Announcement
Collapse
No announcement yet.
editing error messages..
Collapse
X
-
Re: editing error messages..
In Version 9, coming out soon, you have the ability to edit all the error message via the admin. There is a new "Error Messages" tab under User Interface Settings which will give you the ability to easily edit these.
If you want to do it now, you can but you need to do it within page template code using conditional statements.
On the LOGN screen look for this code which outputs the error messages:
Code:<mvt:if expr="l.settings:messages:error_message_count"> <div class="alert alert-danger"> <mvt:foreach iterator="error" array="messages:error_messages"> <mvt:if expr="l.settings:error EQ 'The username or password you entered is incorrect'"> My Custom Error Message <mvt:else> &mvt:error; </mvt:if> </mvt:foreach> </div> <mvt:elseif expr="l.settings:messages:information_message_count"> <div class="alert alert-info"> <mvt:foreach iterator="message" array="messages:information_messages"> &mvt:message;</mvt:foreach> </div> </mvt:if>
-
Re: editing error messages..
Can the MM9 ability to edit the error messages be incorporated into an MMUI store. Looking at this would lead me to believe I can't:
Code:<mvt:if expr="g.store:ui_mod:code EQ 'mmui'"> <div class="align-center"><mvt:item name="messages"/></div> <mvt:else> <mvt:if expr="l.settings:messages:error_message_count"> <div class="error-message"> <mvt:foreach iterator="error" array="messages:error_messages"> &mvt:error; </mvt:foreach> </div> </mvt:if>
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
Comment