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:
parent
99f5aa0dfa
commit
96ca19d170
|
@ -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