I got this working by doing the following…
in /includes/admin/settings/conditions/class-wafs-match-conditions.php:
add (where the matching ones are):
add_filter( 'wafs_match_condition_total', array( $this, 'wafs_match_condition_total' ), 10, 3 );
also add (again where the functions are):
/**
* Total.
*
* Match the condition value against the cart Total.
*
* @since 1.0.0
*
* @param bool $match Current match value.
* @param string $operator Operator selected by the user in the condition row.
* @param mixed $value Value given by the user in the condition row.
* @return BOOL Matching result, TRUE if results match, otherwise FALSE.
*/
public function wafs_match_condition_total( $match, $operator, $value ) {
if ( ! isset( WC()->cart ) ) return;
if ( '==' == $operator ) :
$match = ( WC()->cart->cart_contents_total == $value );
elseif ( '!=' == $operator ) :
$match = ( WC()->cart->cart_contents_total != $value );
elseif ( '>=' == $operator ) :
$match = ( WC()->cart->cart_contents_total >= $value );
elseif ( '<=' == $operator ) :
$match = ( WC()->cart->cart_contents_total <= $value );
endif;
return $match;
}
now in the /includes/admin/settings/conditions/condition-conditions.php file:
add (above subtotal):
'total' => __( 'Total', 'woocommerce-advanced-free-shipping' ),
now in /includes/admin/settings/conditions/condition-values.php
add (above subtotal):
case 'total' :
$values['field'] = 'number';
break;