Increase wc_get_weight precision.
This commit is contained in:
parent
4372fdbad4
commit
5bcfcf51ff
|
@ -112,10 +112,10 @@ function wc_get_weight( $weight, $to_unit ) {
|
|||
$weight *= 0.001;
|
||||
break;
|
||||
case 'lbs':
|
||||
$weight *= 0.4536;
|
||||
$weight *= 0.453592;
|
||||
break;
|
||||
case 'oz':
|
||||
$weight *= 0.0283;
|
||||
$weight *= 0.0283495;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -125,7 +125,7 @@ function wc_get_weight( $weight, $to_unit ) {
|
|||
$weight *= 1000;
|
||||
break;
|
||||
case 'lbs':
|
||||
$weight *= 2.2046;
|
||||
$weight *= 2.20462;
|
||||
break;
|
||||
case 'oz':
|
||||
$weight *= 35.274;
|
||||
|
|
|
@ -159,6 +159,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - Improved coupon percent calculation for fixed discounts.
|
||||
* Tweak - Show calculate total when shipping is needed, but shipping is hidden.
|
||||
* Tweak - Cart total labels.
|
||||
* Tweak - Increase wc_get_weight precision.
|
||||
* Dev - API - reports/sales now also returns total refunds.
|
||||
|
||||
= 2.3.5 - 20/02/2015 =
|
||||
|
|
Loading…
Reference in New Issue