Optional show/hide +VAT
-
Hi,
We’re building a site which sells some products that are inclusive of VAT and other that are exempt of VAT.
We’d like to be able to show after the price either +VAT or inc VAT. So it would look like either £2000 +VAT or £250 inc VAT. This is because products that are +VAT are very different i.e. tractors and quad bikes whereas products that are inclusive of vat like nails and ironing boards.
In WooCommerce tax settings we can set ‘Price Display Suffix:’ to +VAT but then it displays even if a product Tax status is set to none.
I thought we’d be able to do this using something like:
<?php
if ( is_taxable() ) {
echo'<span>+ VAT</span>’;
}
?>But is_taxable isn’t a function. We could use categories to display +VAT but it isn’t a very practical or manageable way to do it for our client.
Thanks
The topic ‘Optional show/hide +VAT’ is closed to new replies.