CSSUI.mvc Source Code???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • schon.garcia
    Mivite Lite

    • Aug 2013
    • 4

    #1

    CSSUI.mvc Source Code???

    Hi I am looking to see if I can get the source code for the cssui.mvc module so I can change the default missing attribute error from "Attributes in bold are required." to "Please confirm attributes in bold before adding item(s) to cart." and then compile using the Miva Script Compiler.

    Thanks in advance.
  • ILoveHostasaurus
    Mega Mivite










    • Mar 2006
    • 4998

    #2
    Re: CSSUI.mvc Source Code???

    I asked our CTO and he said the CSSUI.mvc code should be part of the limited source kit which you can download at http://www.mivamerchant.com/support/downloads

    He did suggest though that "It'd be a lot easier to just change the template code on the PATR page that loops over messages:error_messages and either hard code the message there, take it out or trap the message with an if statement in the loop and turn it into something else."
    David Hubbard
    CIO
    Miva
    [email protected]
    http://www.miva.com

    Comment

    • ILoveHostasaurus
      Mega Mivite










      • Mar 2006
      • 4998

      #3
      Re: CSSUI.mvc Source Code???

      Here's a code example:

      Code:
      <mvt:if expr="l.settings:messages:error_message_count">
      <div class="error-message">
      <mvt:foreach iterator="error" array="messages:error_messages">
      <mvt:if expr=" ( 'Attributes' IN l.settings:error ) EQ 1"> 
      This is my new error message text
      <mvt:else>
      &mvt:error;
      </mvt:if>
      </mvt:foreach>
      </div>
      </mvt:if>
      David Hubbard
      CIO
      Miva
      [email protected]
      http://www.miva.com

      Comment

      • schon.garcia
        Mivite Lite

        • Aug 2013
        • 4

        #4
        Re: CSSUI.mvc Source Code???

        Works just as well...minus headaches. Thanks!!!!

        Comment

        • Bruce - PhosphorMedia
          Developer Partner











          • Mar 2006
          • 11256

          #5
          Re: CSSUI.mvc Source Code???

          ...and Dave's suggestion is preferred because your changes could be overwritten on the next upgrade of Merchant.

          In general, the source code is for learning and understanding Merchant (and sometimes borrowing)...they should never be used as replacements for existing modules because of the above issue. Also, the source code modules don't necessarily 'compile' without making several other modifications to the code.
          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

          • schon.garcia
            Mivite Lite

            • Aug 2013
            • 4

            #6
            Re: CSSUI.mvc Source Code???

            Thanks for the code and tips.

            Comment

            Working...
            X