Announcement

Collapse
No announcement yet.

Adding New Error Messages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding New Error Messages

    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.
    Jamin Jones, CEO
    the Appalachian Offroad Motorcycle Company

    #2
    Re: Adding New Error Messages

    I seem to have a long list of robot NTFD error messages in the list.

    Is there a way to filter the NTFD errors or a better way to handle it? I provide a miva_output_header status 404.
    http://www.alphabetsigns.com/

    Comment


      #3
      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.
      Brennan Heyde
      VP Product
      Miva, Inc.
      [email protected]
      https://www.miva.com

      Comment


        #4
        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


          #5
          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


            #6
            Re: Adding New Error Messages

            Hi Matt -

            You're not suppose to modify the original error message. Instead you leave it, and put what you want to change it to in the replacement field (like you did).

            Any styling is indented to be done via CSS. What do you need HTML for? Are you adding a link?
            Brennan Heyde
            VP Product
            Miva, Inc.
            [email protected]
            https://www.miva.com

            Comment


              #7
              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


                #8
                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 &lt;b&gt; 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


                  #9
                  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


                    #10
                    As an aside if you're getting a lot of NTFD errors you may wish to spend some time in Google Webmaster Tools so that you can work through a lot of these errors and figure out where they're coming from. Moz Pro is another good one if you want additional SEO benefits.
                    Dylan Buchfink
                    The Mattress & Sleep Company
                    http://www.tmasc.ca/

                    Comment


                      #11
                      Originally posted by lesliekirk View Post
                      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.
                      I'm assuming the answer is no? Is there any sort of conditional that can augment the checkout error messages?
                      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


                        #12
                        Yes Error Messages are CSSUI Only. The only way to do it in MMUI is via JavaScript.
                        Brennan Heyde
                        VP Product
                        Miva, Inc.
                        [email protected]
                        https://www.miva.com

                        Comment

                        Working...
                        X