/**add_filter( ‘woocommerce_get_price_html’, ‘tax_price_html’, 100, 2 );
function tax_price_html ( $price,$product ){
$priceInc = $product->price*1.25;
$priceEx = $product->price;
$vat = ”
document.write(\"
\"); document.write(\" \");“;
return $vat;
}
**/
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = “expires=”+d.toUTCString();
document.cookie = cname + “=” + cvalue + “; ” + expires;
}
function getCookie(cname) {
var name = cname + “=”;
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(‘;’);
for(var i = 0; i