Announcement

Collapse
No announcement yet.

How to Supress global code on checkout pages

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

    How to Supress global code on checkout pages

    I have a bit of code in the BODY tag that I would like to suppress on checkout pages. Can anyone help with the mivascript I need to do this?

    I think the below pages are the ones I want to suppress the code on

    l.settings:page:code EQ 'ORDL' OR l.settings:page:code EQ 'OCST' OR l.settings:page:code EQ 'OUS1' OR l.settings:page:code EQ 'OUSM' OR l.settings:page:code EQ 'UATM' OR l.settings:page:code EQ 'UATR' OR l.settings:page:code EQ 'OSEL' OR l.settings:page:code EQ 'OPAY' OR l.settings:page:code EQ 'INVC'

    Thanks,

    Kevin

    __________________________
    GEOGRAPHIUCS ANTIQUE MAPS
    923 Putnam Ave
    Brooklyn,NY 11221
    TEL: 646-320-8650
    www.GEOGRAPHICUS.com

    #2
    Basically you would wrap what you don't want to display in an mvt:if tag (build the expr for all the pages in your list):

    <mvt:if expr="l.settings:page:code NE 'ORDL' AND
    l.settings:page:code NE 'OCST' AND
    l.settings:page:code NE 'OUS1'">
    ...some body code here that you don't want to display on checkout
    </mvt:if>
    M.A.D.* since 1997

    http://www.scotsscripts.com

    *miva application developers

    Comment


      #3
      FYI. I find it easier to write these as follow:
      <mvt:if expr="NOT('|'$g.screen$'|' IN toupper('|OCST|OSEL|OPAY|ETC|')">
      the hidden stuff
      </mvt:if>

      It's a tad slower, but easier to maintain.
      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

      Working...
      X