+ Reply to Thread
Results 1 to 3 of 3

Thread: Quick Total To Include VAT?

  1. #1
    Client SketchWork's Avatar
    Join Date
    Aug 2007
    Posts
    79
    Squirrelcart version
    v3.3.2

    Quick Total To Include VAT?

    Hi Jamie,

    How would I go about adding the VAT to the quick total price so that it could display the following for the QuickTotal:

    Total: 100.00 (117.50 including VAT)

    Many thanks,

    Justin

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    7,874
    Squirrelcart version
    v3.5.0
    This is highly unsupported, use at your own risk.

    1. At the bottom of squirrelcart/modules/quick_total/quick_total.js.php, locate the closing }.

    2. Put this right before it:

    PHP Code:
    prodTotalDiv.style.display = 'block';    
    pTotal = parseFloat(prodTotal);
    var vatTotal = formatCurrency(pTotal + (pTotal * .175));
    prodTotalTag.innerHTML = prodTotalTag.innerHTML + ' (' + '<?php print $SC['settings']['Currency_Prefix']?>' + vatTotal + ' including VAT)';
    3. Save the file

    4. Refresh the page

    5. Cross your fingers

  3. #3
    Client SketchWork's Avatar
    Join Date
    Aug 2007
    Posts
    79
    Squirrelcart version
    v3.3.2
    Hehe - I totally understand it's unsupported

    Thanks for the help.

    Justin

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts