woocommerce_evaluate_shipping_cost_args
This commit is contained in:
parent
eb42c7b3e3
commit
934269f1e8
|
@ -67,12 +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, $sum, $decimals );
|
||||
|
||||
$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