Announcement

Collapse
No announcement yet.

Coloured Short Description Text

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

    Coloured Short Description Text

    If you want coloured text in the short description but do not want the !!< ... >!! carried through into the order, here is a solution for V7 users

    In Act_Primary.html find NETQUOTEVAR:BULK and add

    <div id="title">
    NETQUOTEVAR:BULK
    </div>

    At the bottom of the page just above </body> add

    <!-- code to swap characters for html in product short desc -->
    <!-- works for text inside a named <div> called title -->
    <script>
    var myhtml = document.getElementById('title').innerHTML;
    myhtml = myhtml.replace( new RegExp( "»", "g" ), "<font color='#FBB700'>" ); //Gold colour
    myhtml = myhtml.replace( new RegExp( "¬", "g" ), "<font color='#339933'>" ); //Green colour
    myhtml = myhtml.replace( new RegExp( "~", "g" ), "<font color='#0000FF'>" ); //Blue colour
    myhtml = myhtml.replace( new RegExp( "¦", "g" ), "</font>" ); //end font
    document.getElementById('title').innerHTML = myhtml
    </script>

    Now change the colour codes to the colours your want and add » / ¬ / ~ and ¦ in the Short Description box.

    eg » Gold ¦ Product
Working...
X