Hello, I wanted to add the text “Estimated Price” near the calculated price section.
Someone from hivepress told me its not possible through locotranslate. So I need a code snippet for that. Can anyone help me?
Hello, I wanted to add the text “Estimated Price” near the calculated price section.
Someone from hivepress told me its not possible through locotranslate. So I need a code snippet for that. Can anyone help me?
Please try this PHP snippet
add_filter(
'hivepress/v1/models/listing/fields',
function($fields){
if(isset($fields['price'])){
$fields['price']['display_template'] = 'Estimated price: %value%';
}
return $fields;
},
1000
);
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.