WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Woocommerce Commercial / Domestic VAT rate (1 post)

  1. oliviadesens
    Member
    Posted 9 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic