Support » Plugin: WooCommerce » Woocommerce Commercial / Domestic VAT rate

  • Hi,
    I’m trying to use the code for a special tax close to the NY fashion product problem. It concern the export out of UE on price product over 5000 euros. I don’t understand (and I’m sorry) where I have to put the following code :

    // Woocommerce Commercial / Domestic VAT rate
    add_filter('woocommerce_product_tax_class', 'hors_UE_get_tax_class', 1, 2);
    
    function hors_UE_get_tax_class($tax_class, $product, $vat) {
       global $woocommerce;
    
       if ($woocommerce->cart->subtotal <= 5000)
          $tax_class = 'Reduced Rate';
    
       return $tax_class;
    }

    your help will be welcome !
    thank you
    olivia

    http://wordpress.org/plugins/woocommerce/

  • The topic ‘Woocommerce Commercial / Domestic VAT rate’ is closed to new replies.