How can I change different prices for sale and rent

Normal price field will look like this [ps_field field="price_min" ]

But you can customize it to display different minimum prices for sale and different minimum prices for rent and different minimum prices for holiday rental. To do that you have to convert above mention shortcode into following shortcode;

[ps_field type="select" data="100000,200000,300000,400000" data_status_sale="100000,200000,300000,400000" data_status_longterm="500,750,1000,1250" data_status_shortterm="150,250,350" format="€%s" thousands="," field="price_min" ]

where,

type=”select” will make field to become dropdown

data_status_sale=”xxx,xxx,xxx” will show prices for sale only. You can insert as many prices as you can.

data_status_longterm=”xxx,xxx,xxx” will show prices for rent only. You can insert as many prices as you can.

data_status_shortterm=”xxx,xxx,xxx” will show prices for holiday rent only. You can insert as many prices as you can.

format=”€%s” will show currency sign before prices, like here we display euro sign.

thousands=”,” will insert comma or whatever you want to display after every 3 digits in price as separation.

What else we can do with this field

 

You can use the same convention with other fields, in other words, the values in “data_status_sale” are those to be shown when the field “status” is set to “sale”, so for example data_type_villa can be used to change the values when the field “type” is set to “villa”.

Output

Print Friendly, PDF & Email