Wpcasa advanced search customization

Question

Could you please help me with php advanced search customization – plugin WPcasa – real estate? I am a web designer, just started to dig to php and I am lost. I would love to change this filter option – public function get_advanced_search_fields( $fields_default ) {

    // Set advanced form fields
    
    $fields_advanced = array(

        'min' => array(
            'label'         => __( 'Price (min)', 'wpcasa-advanced-search' ),
            'key'           => '_price',
            'type'          => 'text',
            'data_compare'  => '>=',
            'data_type'     => 'numeric',
            'advanced'      => true,
            'class'         => 'width-1-4',
            'priority'      => 90
        ),

        'max' => array(
            'label'         => __( 'Price (max)', 'wpcasa-advanced-search' ),
            'key'           => '_price',
            'type'          => 'text',
            'data_compare'  => '<=',
            'data_type'     => 'numeric',
            'advanced'      => true,
            'class'         => 'width-1-4',
            'priority'      => 100

to the option 1) where you have just one field Price – dropdown with options like 100k-200k, 200k -300k and the result would be listings with properties in this price range, or option 2) save the min max , but also have there a dropdown with some values like min: 100k, 200k etc, max: 200k,3000k etc wiith the same result.

Thanks so much guys!

0
Simona Tuhrinska 8 months 2020-06-27T16:10:20-05:00 0 Answers 90 views 0

Leave an answer