Announcement

Collapse
No announcement yet.

HTML in product description

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

    HTML in product description

    I am using embedded HTML in product description field within !!< and >!!. I am trying to include the Product Name in this description. The line

    !!<<b>NETQUOTEVAR:PRODUCTNAME</b>>!!

    within the product description just displays

    NETQUOTEVAR:PRODUCTNAME

    Is there a way to display variables within this code or not?

    I am trying to do this within the product line where, I assume, the variables are active.
    Alasdair

    #2
    That won't work unfortunately. While you can embed HTML you can't embed NETQUOTEVAR's.

    There is a tedious workaround.

    Code:
    In your Product Template(s), just below every instance of NETQUOTEVAR:PRODUCTFORMBEGIN
    
    add the lines
    
    <script language=JavaScript>
    <!--
    var thisprod = 'NETQUOTEVAR:PRODUCTNAME';
    // -->
    </script>
    
    
    And in your product description whenever you want the Name do
    
    !!<<script language=JavaScript>document.write(thisprod);</script>>!!
    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Norman

      Thanks for that and the prompt reply.

      That works fine. Not that tedious with cut and paste but getting that way.

      Thanks again
      Alasdair

      Comment

      Working...
      X