Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Change Price Field to TEXT

This topic contains 3 replies, has 4 voices, and was last updated by  Camelia Support Team – WP Estate 2 years, 6 months ago.

  • Author
    Posts
  • #99566

    Anna
    Keymaster

    The theme converts anything you add int he price field into a number. If you add charters like – or . the theme will convert those into a number so strange thins will happen.

    To change this you need to remove a php instruction

    For property page you need to edit single_estate-property and look for this

    $price = intval ( get_post_meta($post->ID, 'property_price', true) );

    remove intval – should end up with something like

    $price = get_post_meta($post->ID, 'property_price', true) ;

    you should do the same thing also for these files

    comapare-prop.php

    footer_latest_widget.php

    prop-listing-ajax.ph

    prop-listing.php

    similar-listing.php

    There are also a few more places but you should not need to change in those places.

    Thanks

  • #101017

    amit paramar
    Participant

    are you sure because i try same but no effect i need Price Format in Rs.11,00000.00 11 Lacks like this and one more lot size and property size i need text box type what ever user write should display

  • #101190

    alessiocandelma
    Participant

    Hi Anna,

    I changed the files but nothing happen.

    How I could transform the price field in a range price field?

    Ex: from € 100 to € 500.

    Thanks

    Alessio

  • #106801

    Hello,

    If you need to learn more on how to modify code , please use an existing text field as code example if you are not sure how to implement the above

    Or read more on get post meta function on codex – https://codex.wordpress.org/Function_Reference/get_post_meta

    Thank you
    Support

You must be logged in to reply to this topic.