Support

Account

Home Forums General Issues Automatic Calculation price per kilo Reply To: Automatic Calculation price per kilo

  • Calculate the new price including tax

    $new_price = $price * (1 + $tax_rate / 100);

    OR change the price

    $price *= 1 + $tax_rate / 100; // in your case 1 + 20/100 = 1.2

    Taxes may vary from product to product. You can get actual tax rate from Woo.