This commit is contained in:
Mike Jolley 2015-06-16 14:08:46 +01:00
parent 71fc6c207e
commit 583e1fc284
1 changed files with 3 additions and 3 deletions

View File

@ -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' ) )
) );