Merge pull request #7901 from roykho/flatrate

fixed flatrate per item and per class if no additional costs added, it doesn't correctly fallback to base cost closes #7851
This commit is contained in:
Claudio Sanches 2015-04-13 12:48:55 -03:00
commit aa9c3a1087
1 changed files with 2 additions and 2 deletions

View File

@ -329,7 +329,7 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method {
if ( $matched ) {
return $cost + $fee;
} else {
return null;
return 0;
}
}
@ -372,7 +372,7 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method {
if ( $matched ) {
return $costs;
} else {
return null;
return 0;
}
}