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.
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
There are also a few more places but you should not need to change in those places.
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
I changed the files but nothing happen.
How I could transform the price field in a range price field?
Ex: from € 100 to € 500.
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
You must be logged in to reply to this topic.