NooTheme Premium WordPress Theme › Forums › CitiLights › I need to change the title of the ALL PRICE dropdown and add another for rental
- This topic has 5 replies, 2 voices, and was last updated 3 years, 9 months ago by dangdv.
-
AuthorPosts
-
3 years, 10 months ago #1211691
I need to change the title of the PRICE dropdown and add another for rental, I need 2 drop downs 1 for SALES and 1 for rentals please advice, and I need to add these ranges, I can add the ranges myself but I just need to know which file to change or copy to change
Sales:
$ 0 - $ 200,000
$ 200,000 - $ 350,000
$ 350,000 - $ 500,000
$ 500,000 - $ 750,000
$ 750,000 - $ 1,000,000
$ 1,000,000 - $ 3,000,000
$ 3,000,000 - $ 5,000,000
+ $ 5,000,000
Rentals:
$ 0 - $ 1,000
$ 1,000 - $ 2,000
$ 2,000 - $ 3,000
$ 3,000 - $ 4,000
$ 4,000 - $ 5,000
$ 5,000 - $ 7,500
$ 7,500 - $ 10,000
$ 10,000 - $ 15,000
$ 15,000 - $ 20,000
+ $ 20,0003 years, 10 months ago #1211692This reply has been marked as private.3 years, 10 months ago #1211700Dear, Please kindly give me more details your problem: what is price dropdown ? and send for me admin account and your problem URL via private reply, I will check details to help you.
Best regards.
3 years, 9 months ago #1211710This reply has been marked as private.3 years, 9 months ago #1211711This reply has been marked as private.3 years, 9 months ago #1211722Dear, The Citilights theme only support one price dropdown for all search filter and theme not support display different price dropdown for sale and Rentals.
If you want custom list of price dropdown, please install and switch your site to use Citilights Child Theme, then add custom code in file functions.php of Citilights Child Theme:
if(!function_exists('noo_price_range_dropdown')): function noo_price_range_dropdown($min = 0, $max = 100000){ $range_size = re_get_property_search_setting('price_range_size',10000); $p_price_range = isset( $_GET['p_price_range'] ) ? sanitize_text_field($_GET['p_price_range'] ) : ''; $output[] = '<select class="form-control form-control-chosen" name="p_price_range" data-placeholder="'. esc_html__('All Price' ,'noo').'">'; $output[] = '<option value="">' .esc_html__('All Price','noo').'</option>'; $price_list = array( '0-200000', '200000-350000', '350000-500000', '500000-750000', '750000-1000000', '1000000-3000000', '3000000-5000000', '5000000' ); foreach ($price_list as $price) { $price_range = explode('-',$price); $price_output = ''; if(isset($price_range[0])){ $price_output .= '$'.number_format($price_range[0]); } if(isset($price_range[1])){ $price_output .= ' - $'.number_format($price_range[1]); }else{ $price_output .= '+'; } $selected = ($price == $p_price_range) ? 'selected' : ''; $output[] = '<option value="' . $price . '" '. $selected .'>' . $price_output . '</li>'; } $output[]= '</select>'; echo implode( "\n", $output ); } endif;
Best regards.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.