I got an issue with the woocommerce.

For X product it shows price range with VAT and after selecting the size, it shows also without VAT.

In this case, product with same price for all variants It shows only with VAT.

I tried this, "Applying tax/vat to specific WooCommerce products" part, but that completely turned turned off prices on other variable products.

Is there any way I can display it with VAT / without VAT on variable products for same price/variant?

echo esc_attr( apply_filters( 'woocommerce_product_price_class', 'price' ) );
echo wc_get_price_excluding_tax( $product ); 

echo esc_attr( apply_filters( 'woocommerce_product_price_class', 'price' ) ); 
echo wc_get_price_including_tax( $product ); 

0 Answers