Merge branch 'pr/10054'
This commit is contained in:
commit
d7abd74969
|
@ -67,9 +67,10 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method {
|
|||
protected function evaluate_cost( $sum, $args = array() ) {
|
||||
include_once( 'includes/class-wc-eval-math.php' );
|
||||
|
||||
$locale = localeconv();
|
||||
$decimals = array( wc_get_price_decimal_separator(), $locale['decimal_point'], $locale['mon_decimal_point'] );
|
||||
|
||||
// Allow 3rd parties to process shipping cost arguments
|
||||
$args = apply_filters( 'woocommerce_evaluate_shipping_cost_args', $args, $sum );
|
||||
$locale = localeconv();
|
||||
$decimals = array( wc_get_price_decimal_separator(), $locale['decimal_point'], $locale['mon_decimal_point'] );
|
||||
$this->fee_cost = $args['cost'];
|
||||
|
||||
// Expand shortcodes
|
||||
|
|
Loading…
Reference in New Issue