Jump to content

$CustomFields->field('jr_gm_distance',$listing); Not working


Penny

Recommended Posts

Hi I've noticed in version 2.4 the distance value:

$CustomFields->field('jr_gm_distance',$listing);

doesn't show up when you're viewing the results of a proximity search.

 

Seems it's listing the items in terms of whats closest starting first though.

 

I'm using template overrides (which is functioning fine for all other areas) and have added the following code into the 'templatenamehere/listings/listings_blogview.thtml' under the '$listings' foreach area in the 'jrListingContent' div container:

<?php $distance_value = $CustomFields->field('jr_gm_distance', $listing); ?>
<?php if($distance_value && $listing_order == 'proximity'): ?>
<div class="jrModuleFieldDiv jrDistance">
<span class="jrModuleFieldTitle"><?php echo $CustomFields->label('jr_gm_distance', $listing); ?>: </span>
<span class="jrModuleFieldValue"><?php echo $distance_value; ?></span>
</div>
<?php endif;?>

 

I commented out the IF statement to see whats going on and the $CustomFields->field(param,param); function seems to be returning a null value... any ideas? Thanks!

 

 

 

 

Link to comment
  • 4 weeks later...
×
×
  • Create New...