Typo closes #8381
This commit is contained in:
parent
71fc6c207e
commit
583e1fc284
|
@ -60,7 +60,7 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method {
|
|||
* @param array $args
|
||||
* @return string
|
||||
*/
|
||||
protected function evalulate_cost( $sum, $args = array() ) {
|
||||
protected function evaluate_cost( $sum, $args = array() ) {
|
||||
include_once( 'includes/class-wc-eval-math.php' );
|
||||
|
||||
add_shortcode( 'fee', array( $this, 'fee' ) );
|
||||
|
@ -125,7 +125,7 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method {
|
|||
|
||||
if ( $cost !== '' ) {
|
||||
$has_costs = true;
|
||||
$rate['cost'] = $this->evalulate_cost( $cost, array(
|
||||
$rate['cost'] = $this->evaluate_cost( $cost, array(
|
||||
'qty' => $this->get_package_item_qty( $package ),
|
||||
'cost' => $package['contents_cost']
|
||||
) );
|
||||
|
@ -143,7 +143,7 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method {
|
|||
}
|
||||
|
||||
$has_costs = true;
|
||||
$class_cost = $this->evalulate_cost( $class_cost_string, array(
|
||||
$class_cost = $this->evaluate_cost( $class_cost_string, array(
|
||||
'qty' => array_sum( wp_list_pluck( $products, 'quantity' ) ),
|
||||
'cost' => array_sum( wp_list_pluck( $products, 'line_total' ) )
|
||||
) );
|
||||
|
|
Loading…
Reference in New Issue