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
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
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:
3. Save the filePHP 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)';
4. Refresh the page
5. Cross your fingers
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
Hehe - I totally understand it's unsupported
Thanks for the help.
Justin
There are currently 1 users browsing this thread. (0 members and 1 guests)