I've seen the new ability to add and edit new error messages under User Interface and it looks fantastic in ReadyThemes! I'd like to add and use a new error message but I'm not sure how to flag the error (add it to the error array) on the page.
Announcement
Collapse
No announcement yet.
Adding New Error Messages
Collapse
X
-
Re: Adding New Error Messages
@phishbed It is somewhat misleading that you can create new error messages. That functionality is there in case you delete an error message and need to re-add it. You currently cannot create error messages and assign them to show up when some custom action occurs. They only way to add error messages to pages is though a module.
The main purpose of this error message interface is to give you editing capabilities of all existing store error messages. It also "learns" new error messages (say from your payment gateway and shipping carrier) and allows you to edit those as well.
@alphabet
Currently this is intended functionality. Because the error message system learns new error messages, the NFTD page can quickly add a lot of new errors, when in reality they are all the same message just a different product/category/page code. We realize this can clutter up the Error Message area and we are looking at possible solutions in a future release.
Comment
-
Re: Adding New Error Messages
Thanks Brennan! I suspected that was the case. I got around it by stealing the message error class for posting the message when the conditional is met.
<p class="message message-error">You've done something wrong!</p>Jamin Jones, CEO
the Appalachian Offroad Motorcycle Company
Comment
-
Re: Adding New Error Messages
I'm struggling with the error messages.
It seems like MIVA is generating error messages which I can't edit. Actually, I can edit the message in User Interface>Error Messages. BUT - if I go to the live store and generate that same error, MIVA just creates the original error message. So when I go back and look in User Interface>Error Messages I can see my edited error message and a new message which is the one I had previously edited.
Specifically - the problem is happening on this page. The products have a required attribute. When I click the add to basket button I'm taken to the BASK page and get the following error: "Attributes in <span class="bold">bold</span> are required." The html isn't being rendered and it looks confusing.
As a workaround I am using the "replacement" field and typing the message so that it doesn't contain any html. But it would be nice to use html...Matt E.
www.harpkit.com
Comment
-
Re: Adding New Error Messages
OK. That makes sense.
I was going to use html to format the message like this:
Atrributes in <em>bold</em> are required.
I'm happy to use CSS however Miva doesn't seem to be rendering the CSS correctly. In Miva Admin the message is formatted like this:
Attributes in <span class="bold">bold</span> are required. And this is exactly what is displayed on the live site.
I also tried this in Miva:
Attributes in <span style="font-weight: bold;">bold</span> are required.
Same result.Matt E.
www.harpkit.com
Comment
-
Re: Adding New Error Messages
What Brennan is saying is that you can't add HTML/CSS directly to the error message. That field is 'encoded' so that <b> becomes <b> which is then translated by the browser as <b>.
You can only use text.Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
-
Just to confirm - the ability to edit an error message is only available within a CSSUI store? I have an MMUI store that needs to augment error messages that come from the credit card processor.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
-
Originally posted by lesliekirk View PostJust to confirm - the ability to edit an error message is only available within a CSSUI store? I have an MMUI store that needs to augment error messages that come from the credit card processor.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