Forums Forums Search & Filter Pro Customize Value Postfix

Viewing 3 posts - 21 through 23 (of 23 total)
  • Anonymous
    #215176

    Thank you Ross. This works great except it also adds it to the ‘Change All Items’ label. So it’s displaying as:

    Distance miles
    5 – 15 miles
    15 – 25 miles

    whereas I just want:

    Distance
    5 – 15 miles
    15 – 25 miles

    Would that be possible?.

    Ross Moderator
    #215180

    Ah sure, then change the foreach loop to:

    	//now we know there are options we can loop through each one, and change what we need
    	foreach($input_object['options'] as $option){
    		
    		if($option->value!=''){
    			$option->label .= " miles";
    		}
    	}
    
    Anonymous
    #215182

    Perfect, thank you!

Viewing 3 posts - 21 through 23 (of 23 total)