Tax rate formatting. Closes #192.
This commit is contained in:
parent
87a6690b2e
commit
7ced713e61
|
@ -35,7 +35,10 @@ function woocommerce_update_options($options) {
|
|||
|
||||
if (isset($tax_classes[$i]) && isset($tax_countries[$i]) && isset($tax_rate[$i]) && is_numeric($tax_rate[$i])) :
|
||||
|
||||
$rate = number_format(woocommerce_clean($tax_rate[$i]), 4);
|
||||
$rate = esc_attr(trim($tax_rate[$i]));
|
||||
if ($rate>100) $rate = 100;
|
||||
$rate = number_format($rate, 4, '.', '');
|
||||
|
||||
$class = woocommerce_clean($tax_classes[$i]);
|
||||
|
||||
if (isset($tax_shipping[$i]) && $tax_shipping[$i]) $shipping = 'yes'; else $shipping = 'no';
|
||||
|
|
Loading…
Reference in New Issue