Home Forums Theme support Realbroker Change to $ per month

This topic contains 5 replies, has 2 voices, and was last updated by  7Theme Support 4 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • I’d like to change the price for property in the listings AND on the page views to read:
    $500 per month instead of 500 monthly
    or
    $2,000 per month instead of 2000 monthly

    Can you tell me where to change that in the php files?

    Ok, no problem, the files you need are “estate-entry.php” and “estate-single-default.php”, both files are located in the root of the theme folder.

    Great, thank you!

    You’re welcome!

    Here’s the estate-entry.php, could you tell me where to put “per month”?

    <?php
    // DISPLAY THE SEARCH RESULTS
    global $default_button, $ii;
    $ii++;
    ?><!– estate-entry –><?php
    $coli=”third”;
    if($ii>=3)
    {
    $col=”_last”;
    $ii=0;
    }
    else
    {
    $col=””;
    }

    $custom = get_post_custom($post->ID);
    $etheme = $custom[“etheme”][0];
    $eadress = $custom[“eadress”][0];
    if($eadress!=””)
    {
    $madress[]=$eadress.”,”;
    }
    else
    {
    $madress[]=””;
    }
    $ezip = $custom[“ezip”][0];
    $eagent=$custom[“eagent”][0];
    $elabel=$custom[“elabel”][0];
    if(isset($custom[’emapx’][0]))
    {
    $emapx=$custom[“emapx”][0];
    }
    if(isset($custom[’emapy’][0]))
    {
    $emapy=$custom[“emapy”][0];
    }
    if(isset($emapx))
    {
    $mx[]=$emapx;
    if(isset($mcx))
    {
    if($mcx==””)
    {
    $mcx=$emapx;
    }
    }
    }
    if(isset($emapy))
    {
    $my[]=$emapy;
    if(isset($mcy))
    {
    if($mcy==””)
    {
    $mcy=$emapy;
    }
    }
    }
    if(isset($custom[’emapz’][0]))
    {
    $emapz=$custom[“emapz”][0];
    }
    if(isset($mcz))
    {
    if($mcz==””)
    {
    $mcz=$emapz;
    }
    }
    $eprice=$custom[“eprice”][0];
    if($eprice)
    {
    $mprice[]=number_format($eprice,0,”.”,”,”);
    $eprice=number_format($eprice,0,”.”,”,”);
    }
    else
    {
    $mprice[]=$eprice;
    }
    $epricetype=$custom[“epricetype”][0];
    $epricec=$custom[“epricec”][0];
    $mcur[]=$epricec;
    $ecommission=$custom[“ecommission”][0];
    $edeposit=$custom[“edeposit”][0];
    $bathroom=$custom[“bathroom”][0];
    $bedroom=$custom[“bedroom”][0];
    $rooms=$custom[“rooms”][0];
    $size=$custom[“osize”][0];
    $msize[]=$size;

    $mrooms[]=$rooms;
    $mbedroom[]=$bedroom;
    $mbathroom[]=$bathroom;
    $mtitle[]=get_the_title();
    $mref[]=get_permalink();
    $mimg[]=get_the_post_thumbnail( get_the_ID(),’icon’);

    $mid[]=get_the_id();

    $city_d = wp_get_object_terms($post->ID, ‘estatecity’);
    if(!empty($city_d))
    {
    if(!is_wp_error( $city_d ))
    {
    foreach($city_d as $term)
    {
    $mcity[]= $term->name;
    }
    }
    }
    ?><div class=’object_entry grid_object object_<?php echo $coli; ?>’ id=”object_<?php echo get_the_id(); ?>” style=””>
    <div class=’object_left’>
    <?php
    if(img_gallery_url( get_the_ID() ))
    {
    echo “".get_the_title()."“;
    }
    if(get_the_term_list( get_the_ID(), ‘estatetype’, “”, “” )!=””)
    {
    echo “<span class=’object_type_field’>”.strip_tags(get_the_term_list( get_the_ID(), ‘estatetype’, “”, ” ” )).”</span>”;
    }
    ?>
    </div>
    <div class=’object_right’>
    ” class=”headline”><h3><?php echo get_the_title(); ?></h3>
    <?php
    if($eprice)
    {
    echo ““.$epricec.” “.$eprice.” “.$epricetype.”“;
    }
    echo “<div class=’clear’></div>”;
    echo “<p class=’object_adress’>”;
    echo ‘‘;
    if(get_the_term_list( get_the_ID(), ‘estatecity’, “”, “” )!=””)
    {
    echo strip_tags(get_the_term_list( get_the_ID(), ‘estatecity’, “”, ” ” ));
    }
    if(isset($eadress))
    {
    echo “, “.$eadress;
    }
    ?>
    </p>
    </div>
    <div class=”clear”></div>
    </div><?php

    // END SEARCH RESULT

    Hi,

    it’s ‘$epricetype’, quite a the end of the file

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.