|
New price 1 Year, 9 Months ago
|
Karma: 0
|
|
Hello,
I have a query, a client has asked for the possibility that when housing prices drop, a message appears indicating that you have downloaded and displayed the two, both the new and the old. Is it possible? Any proposal or suggestion?
Thanks
|
|
otix
Junior Boarder
Posts: 28
|
|
|
|
|
Re: New price 1 Year, 9 Months ago
|
Karma: 1
|
|
?????
|
|
|
|
|
|
|
Re: New price 1 Year, 9 Months ago
|
Karma: 14
|
|
Hi,
Yes, this is possible and not very hard to do.
You need to modify the
default_addproperty.php, select a EXTRAXX there and duplicate the code normally used around the "price" input fields.
Then in default.php (or default_tab.php) list.php modify the EXTRAXX so it's close to the price.
Place a CSS class in "red" for example.
Now. When the client wants to drop the house price. Place the original price in the EXTRAXX and let him enter the new price in "price" this way your search etc won't be affected.
This is high level..as I'm not aware about your knowledge please let me know if this is clear or if you need more help.
Danny
|
|
|
|
Best regards,
Danny
Eagle-Corp.nl
I will try to answer all your questions online for free.
If you require dedicated support you can contact me via an email/ Skype.
XML Export creation
XML Import
Dutch: Realworks XML import koppeling aanwezig voor com_properties.
|
|
|
Re: New price 1 Year, 9 Months ago
|
Karma: 0
|
|
Ok, the idea I have clear and located the files, but do not know where to modify each file for which you have said. Could you help me?
Thanks
|
|
otix
Junior Boarder
Posts: 28
|
|
|
|
|
Re: New price 1 Year, 9 Months ago
|
Karma: 14
|
|
You can see in each file an ExtraXX that's unused.
Probably EXTRA99 is still available.
Find the code for "price"
Now duplicate that code directly above price code and replace price with extra99.
Somewhere in the file you'll find for $x something to 99...it's a routine that generates the extra fields. Do a search on 99 in your php files and then replace the 99 to 98
(else the code overwrite the 99 entry)
|
|
|
|
Best regards,
Danny
Eagle-Corp.nl
I will try to answer all your questions online for free.
If you require dedicated support you can contact me via an email/ Skype.
XML Export creation
XML Import
Dutch: Realworks XML import koppeling aanwezig voor com_properties.
|
|
|
Re: New price 1 Year, 9 Months ago
|
Karma: 0
|
Hello Danny
The first thing I thank you for your collaboration is being helpful.
Look, I've done the following:
In the file default_addproperty.php I added this code:
| Code: |
<tr>
<td class="key"><label for="user_id"><?php echo JText::_( 'New Price' ); ?>:</label></td>
<td >
<input class="inputbox small" type="text" name="New Price" id="extra99" size="10" maxlength="255" value="<?php echo $this->datos->extra99; ?>" />
</td>
</tr>
|
This file is in /httpdocs/components/com_properties/views/panel
I think here there was nothing else to do. For the other files that you say there are several default.php.
I'm a bit lost. And sorry for my English.
Thanks
|
|
otix
Junior Boarder
Posts: 28
|
|
|
|
|
Re: New price 1 Year, 9 Months ago
|
Karma: 14
|
|
Your english is OK.
In configuration of Properties check which template you use for list and property details.
If you know which one you need to modify:
defaultXXX.php or is you have TAB selected in product details:
detailsXXX_tab.php
For list you can use list.php (default) list1.php etc
Then you also need to modify:
administrator/components/com_properties/views/products/tmpl/form.php
This is for adding a house via the backoffice as most people do.
If you use the front end edit:
/components/com_properties/views/panel/tmpl/default_addproperty.php
On all files you'll have to move the EXTRA99 to the place you want it to display.
Don't forget you'll also need to look at the:
<?php if($Product->price!=0){
$number = $Product->price;
if ($currencyformat==0) {
$formatted_price = number_format($number);
} else if ($currencyformat==1) {
$formatted_price = number_format($number, 2,".",",");
} else if ($currencyformat==2) {
$formatted_price = number_format($number, 0,",",".");
} else if ($currencyformat==3) {
$formatted_price = number_format($number, 2,",",".");
}
if($PositionPrice==0){
$showprice = ''.JText::_('') .''. $SimbolPrice.' '. $formatted_price.'';
}else{
$showprice = ''.JText::_('') .''. $formatted_price .' '. $SimbolPrice.'';
}
}
?>
<?php echo $showprice; ?></div>
this will format your price in the correct way.
I tend to remove all the extra code since I know that all houses have a price and I know which currency I use. So normally I try to strip my code as much as possible.
I hope this helps you a bit.
Danny
|
|
|
|
Best regards,
Danny
Eagle-Corp.nl
I will try to answer all your questions online for free.
If you require dedicated support you can contact me via an email/ Skype.
XML Export creation
XML Import
Dutch: Realworks XML import koppeling aanwezig voor com_properties.
|
|
|
Re: New price 1 Year, 9 Months ago
|
Karma: 0
|
Hello,
I managed to appear in the admin panel.
[img]http://picasaweb.google.com/lh/photo/ZfmVIi5YD9qm89iM2o3lEOxbOWoltljI6zmFuOREfwk?feat=directlink[/img]
[img]http://picasaweb.google.com/lh/photo/B-OLsdyuYzDtpMVjXPKzOQ?feat=directlink[/img]
What you get is not appearing on the site, do not quite understand the last thing you say, on the code and tried to modify details1.php and list3.php, and has not worked. I only need that.
Thanks Danny
|
|
otix
Junior Boarder
Posts: 28
|
|
|
|
|
Re: New price 1 Year, 9 Months ago
|
Karma: 1
|
Hi for details use that:
| Code: |
<?php if($Product->extra99){echo JText::_('NEWPRICE').' : '.$Product->extra99.' '.$SimbolPrice ;} ?>
|
For List use that
| Code: |
<?php if($row->extra99){echo JText::_('NEWPRICE').' : '.$row->extra99.' '.$SimbolPrice ;} ?>
|
After,
open your file INI (for language)
and add that:
NEWPRICE = New Price
After change the code in administrator that you have add:
from (your hold code)
<tr>
<td class="key"><label for="user_id"><?php echo JText::_( 'New Price' ); ?>:</label></td>
<td >
<input class="inputbox small" type="text" name="New Price" id="extra99" size="10" maxlength="255" value="<?php echo $this->datos->extra99; ?>" />
</td>
</tr>
To
<tr>
<td class="key"><label for="user_id"><?php echo JText::_( 'NEWPRICE' ); ?>:</label></td>
<td >
<input class="inputbox small" type="text" name="New Price" id="extra99" size="10" maxlength="255" value="<?php echo $this->datos->extra99; ?>" />
</td>
</tr>
Let me know
|
|
|
|
|
|
|
Re:New price 1 Year, 7 Months ago
|
Karma: 0
|
|
Hello there and thanx for the good job.
I did all the procedure but the NewPrice field doesnt Save anything in there.
Any help?
Thank you
|
|
|
|
|
|
|