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:
roykho 2015-04-07 07:23:00 -07:00
parent 99f5aa0dfa
commit 96ca19d170
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;
}
}