diff --git a/includes/data/connection/class-product-connection-resolver.php b/includes/data/connection/class-product-connection-resolver.php index bc9961df..95e1aa27 100644 --- a/includes/data/connection/class-product-connection-resolver.php +++ b/includes/data/connection/class-product-connection-resolver.php @@ -657,11 +657,11 @@ public function sanitize_input_fields( array $where_args ) { ]; } if ( ! empty( $where_args['minPrice'] ) ) { - $query_args['min_price'] = str_replace( '.', '', number_format( $where_args['minPrice'], 2 ) ); + $query_args['min_price'] = number_format( $where_args['minPrice'], 2, '', '' ); } if ( ! empty( $where_args['maxPrice'] ) ) { - $query_args['max_price'] = str_replace( '.', '', number_format( $where_args['maxPrice'], 2 ) ); + $query_args['max_price'] = number_format( $where_args['maxPrice'], 2, '', '' ); } if ( isset( $where_args['stockStatus'] ) ) {