So I've been comparing prices between sites lately to find me a good deal. But pcandparts kept me having to hit the calculator every time. Until I decided to fix it !
Here is a script that will include VAT to the amounts on pcandparts
var VAT = 10/100;
var amountDivs = document.getElementsByClassName("woocommerce-Price-amount");
var amountDiv;
var amount;
var amountIncludingVAT;
for(var i =0;i<amountDivs.length;i++){
amountDiv = amountDivs.item(i);
amount = parseFloat(amountDiv.innerHTML
.split("</span>")[1]
.replace(",",""));
amountIncludingVAT = amount + amount * VAT;
amountDiv.innerHTML ='$'
+ amountIncludingVAT
+ '<span style="color:red"> incl VAT </span>';
}
you can either type this directly into the browser's console, or make it automatic via some extension like greasemonkey.
Happy hardware shopping