OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Displaying Price Type in Gallery View [REM] (0 viewing) 

Joomla Real Estate

Go to bottom Favoured: 0

Displaying Price Type in Gallery View [REM]

bidbank (Visitor)
Posts: 0
graphgraph
User Offline
Displaying Price Type in Gallery View [REM] 11 Years, 5 Months ago
Karma: 0  
I would like to move the field "Price Type" which is currently positioned on the body (All Information Tab) to a position in Gallery View, within the Okno class/div tags. The code from main body is:

Code:

<?php }
    $price_type[0] = _REALESTATE_MANAGER_OPTION_SELECT;
    $price_type1=explode(',',_REALESTATE_MANAGER_OPTION_PRICE_TYPE);
    $i=1; foreach($price_type1 as $price_type2){$price_type[$i] = $price_type2;$i++;}
    if($house->price_type != 0) { ?>
<tr>
<td nowrap="nowrap" align="right" class="title_td" >
<strong><?php echo _REALESTATE_MANAGER_LABEL_PRICE_TYPE; ?>:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>
</td>
<td>
        <?php echo $price_type[$house->price_type]; ?>
</td>
</tr>




I've tried reusing the echo part of the code but to no avail. I'd appreciate your assistance in any way.

Thanks
Logged Logged
Last Edit: 2012/10/26 00:08 By .
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8241
graph
User Offline Click here to see the profile of this user
Re:Displaying Price Type in Gallery View [REM] 11 Years, 5 Months ago
Karma: 101  
Hello,

Please try:

<?php
$price_type[0] = _REALESTATE_MANAGER_OPTION_SELECT;
$price_type1=explode(',',_REALESTATE_MANAGER_OPTION_PRICE_TYPE);
$i=1; foreach($price_type1 as $price_type2){$price_type[$i] = $price_type2;$i++;}
if($house->price_type != 0) { ?>
<strong><?php echo _REALESTATE_MANAGER_LABEL_PRICE_TYPE; ?>:&nbsp;</strong>
<?php
echo $price_type[$house->price_type];
}
?>


Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
bidbank (Visitor)
Posts: 0
graphgraph
User Offline
Re:Displaying Price Type in Gallery View [REM] 11 Years, 5 Months ago
Karma: 0  
Hi,

I reused the provided code on the main body (All Information view) thus replacing the original code but it only managed to move the label and value of Price Type to the top most of the All Information view. I also pasted it within the okno div/class but it doesn't seem to deliver anything.
Here is a screenshot of what I am trying to achieve:

[img size=150][/img]

I would alternatively like to use the Price field for text as it currently echos numeric values even though I've submitted text characters in a modified House Edit form.
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8241
graph
User Offline Click here to see the profile of this user
Re:Displaying Price Type in Gallery View [REM] 11 Years, 5 Months ago
Karma: 101  
Hello,

Please, we on ours forum may only give advises, if you go to code you need know as small basic in HTML/CSS and PHP.

We can't check and rebuild on forum any site look and work, that ask many time for add and check.

In yours case you was need find code:

Code:

              <div class="price"><?php echo $row->price,' ',$row->priceunit?></div>
              </div>



and replace it to code
Code:

              <div class="price"><?php echo $row->price,' ',$row->priceunit?></div>
              <?php 
              $price_type[0] = _REALESTATE_MANAGER_OPTION_SELECT;
$price_type1=explode(',',_REALESTATE_MANAGER_OPTION_PRICE_TYPE);
$i=1; foreach($price_type1 as $price_type2){$price_type[$i] = $price_type2;$i++;}
if($row->price_type != 0) { ?>
<strong><?php echo _REALESTATE_MANAGER_LABEL_PRICE_TYPE; ?>:&nbsp;</strong>
<?php
echo $price_type[$row->price_type];
}
?>
              </div>



Please at next if you need do site rebuild, write to ordasoft support and ask custom version - with all features as you wish

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»