• octron88

    (@octron88)


    Hello,

    I would like to set the real estate order by ascending price by default (when i open the page). I would need it in searching with the map. But i noticed that there is not even the “DIV” container for sorting.

    could you help me?

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author g5theme

    (@g5theme)

    Please tell us more detail like: where exactly page you want or take screenshot to easier understand.
    I will help or find a solution for that.
    I wnat you know that I can’t put it anywhere in my plugin.

    Thread Starter octron88

    (@octron88)

    Thanks for the reply…

    I would like all properties to be set by default with asc price. if it is not possible to insert the “sort by” selector, I hope it will at least set the properties by default by increasing price. this is the correct page where I would like this. https://www.studiocap.it/immobili/vendita/

    could you help me?

    Plugin Author g5theme

    (@g5theme)

    Please tell me what shortcode/page you using? i will re-check my code.

    Thread Starter octron88

    (@octron88)

    [ere_property_search_map show_status_tab=”false” property_id=”” status_enable=”true” search_type=”map_and_content” type_enable=”true” title_enable=”false” address_enable=”false” country_enable=”false” state_enable=”false” city_enable=”true” neighborhood_enable=”false” bedrooms_enable=”true” bathrooms_enable=”true” price_enable=”true” price_is_slider=”false” area_enable=”true” area_is_slider=”false” land_area_enable=”false” land_area_is_slider=”false” label_enable=”false” garage_enable=”false” property_identity_enable=”false” other_features_enable=”false” show_advanced_search_btn=”true” item_amount=”1000″ el_class=””]

    Plugin Author g5theme

    (@g5theme)

    Please try edit file class-ere-search.php on path: essential-real-estate\public\partials\property\class-ere-search.php
    then change here: https://prntscr.com/rf2r88
    Let me know result.

    Thread Starter octron88

    (@octron88)

    sorry but i don’t know the correct parameter…

    ‘price’=>’ASC’,
    ‘date’ =>’DESC’,

    is it correct?

    Plugin Author g5theme

    (@g5theme)

    I’m sorry above.
    You should do follow:
    1. Edit file: property-search-map.php at path:
    essential-real-estate\public\templates\shortcodes\property-search-map\property-search-map.php
    then add:
    $args_prop[‘orderby’] = ‘meta_value_num’;
    $args_prop[‘meta_key’] = ERE_METABOX_PREFIX . ‘property_price’;
    $args_prop[‘order’] = ‘ASC’;
    to here: https://prntscr.com/rflwmi
    Your website will display: https://prntscr.com/rflwtq
    Hope help you.

    Thread Starter octron88

    (@octron88)

    thanks for your reply..

    i have try to insert your code but it doesn’t work.

    https://www.studiocap.it/immobili/vendita/

    Could you help me please?

    Plugin Author g5theme

    (@g5theme)

    Before i sent to you, i tested and everything ok.
    To be honest, i don’t know how to help you here. Because i can’t ask you to get account to check directly.
    How can we check it?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘sort by price asc’ is closed to new replies.