Fix price thousand unit.
This commit is contained in:
@@ -3,17 +3,18 @@ if ( ! opalestate_is_enable_price_field() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$search_min_price = isset( $_GET['min_price'] ) ? sanitize_text_field( $_GET['min_price'] ): opalestate_options( 'search_min_price', 0 );
|
||||
$search_max_price = isset( $_GET['max_price'] ) ? sanitize_text_field( $_GET['max_price'] ): opalestate_options( 'search_max_price', 10000000 );
|
||||
$search_min_price = isset( $_GET['min_price'] ) ? sanitize_text_field( $_GET['min_price'] ) : opalestate_options( 'search_min_price', 0 );
|
||||
$search_max_price = isset( $_GET['max_price'] ) ? sanitize_text_field( $_GET['max_price'] ) : opalestate_options( 'search_max_price', 10000000 );
|
||||
|
||||
$data = [
|
||||
'id' => 'price',
|
||||
'decimals' => opalestate_get_price_decimals(),
|
||||
'unit' => opalestate_currency_symbol() . ' ',
|
||||
'ranger_min' => opalestate_options( 'search_min_price', 0 ),
|
||||
'ranger_max' => opalestate_options( 'search_max_price', 10000000 ),
|
||||
'input_min' => $search_min_price,
|
||||
'input_max' => $search_max_price,
|
||||
'id' => 'price',
|
||||
'decimals' => opalestate_get_price_decimals(),
|
||||
'unit' => opalestate_currency_symbol() . ' ',
|
||||
'ranger_min' => opalestate_options( 'search_min_price', 0 ),
|
||||
'ranger_max' => opalestate_options( 'search_max_price', 10000000 ),
|
||||
'input_min' => $search_min_price,
|
||||
'input_max' => $search_max_price,
|
||||
'unit_thousand' => opalestate_options( 'thousands_separator', ',' ),
|
||||
];
|
||||
|
||||
if ( opalestate_options( 'currency_position', 'before' ) == 'before' ) {
|
||||
|
||||
Reference in New Issue
Block a user