Announcement

Collapse
No announcement yet.

VAT message based on Product VAT type

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

    VAT message based on Product VAT type

    We have two VAT product types, full VAT and VAt exempt.
    Would like to replace the ex VAT message after the price with either ex VAT or VAT Exempt.

    Has anyone found out how to do this ?
    Is it a bit of javascript based on contents of the NETQUOTEVAR:TAXMESSAGE
    ie if null print VAT Exempt, else print tax message??

    #2
    Solution

    I have made my own solution if any one needs one.
    Edit Act_PRODUCTPRICE.html

    Change
    <br><span class="actxxsmall"><b> NETQUOTEVAR:PRICEPROMPT &nbsp;NETQUOTEVARISCOUNT_QUANTITY&nbsp;NETQUOTEVAR:COST</b></span><span class="actxxsmall">NETQUOTEVAR:TAXMESSAGE</span>

    to

    <br><span class="now"><b>NETQUOTEVAR:PRICEPROMPT &nbsp;NETQUOTEVARISCOUNT_QUANTITY&nbsp;NETQUOTEVAR:COST</b></span>

    <SCRIPT language="JavaScript" type="text/javascript">
    vtax = 'NETQUOTEVAR:TAXMESSAGE';

    if (vtax == ' (ex VAT)') {
    document.write ('<span class="actxxsmall">NETQUOTEVAR:TAXMESSAGE</span></span>');

    }else { document.write (' (VAT Exempt)');

    }

    </SCRIPT>

    Comment

    Working...
    X