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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.