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:
commit
aa9c3a1087
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue