- Posts: 448
- Thank you received: 2
OS Property support center
remove price
- sti
- Topic Author
- Offline
- Platinum Member
-
Less
More
12 years 7 months ago #18286
by sti
remove price was created by sti
how do i remove original price and the whole functions?
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 448
- Thank you received: 2
12 years 7 months ago #18287
by sti
Replied by sti on topic Re: remove price
need to remove from backend tempalte, front end add new template and display template.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 7 months ago #18288
by Mr. Dam
Replied by Mr. Dam on topic Re: remove price
Hi,
To remove original price in the backend, please go to file administrator > components > com_osproperty > classes > property.html.php
Remove this code:
<tr>
<td class="key">
<?php echo JText::_("OS_ORIGINAL_PRICE")?>
</td>
<td>
<input type="text" name="price_original" id="price_original" value="<?php echo $row->price_original?>" size="10">
</td>
</tr>
In function editProperty
In the frontend, template, you can remove it by open file : classes > property.html.php,
and remove all code relate to field : price_original
For example : echo "<span class='old_price'>".HelperOspropertyCommon::loadCurrency($rproperty->curr)." ".HelperOspropertyCommon::showPrice($rproperty->price_original)."</span>";
You can see in this code, the original price is shown. If you remove it, the original price won't be shown.
Good luck
Dam
To remove original price in the backend, please go to file administrator > components > com_osproperty > classes > property.html.php
Remove this code:
<tr>
<td class="key">
<?php echo JText::_("OS_ORIGINAL_PRICE")?>
</td>
<td>
<input type="text" name="price_original" id="price_original" value="<?php echo $row->price_original?>" size="10">
</td>
</tr>
In function editProperty
In the frontend, template, you can remove it by open file : classes > property.html.php,
and remove all code relate to field : price_original
For example : echo "<span class='old_price'>".HelperOspropertyCommon::loadCurrency($rproperty->curr)." ".HelperOspropertyCommon::showPrice($rproperty->price_original)."</span>";
You can see in this code, the original price is shown. If you remove it, the original price won't be shown.
Good luck
Dam
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 448
- Thank you received: 2
12 years 7 months ago #18289
by sti
Replied by sti on topic Re: remove price
thanks. is there any other places need to remove as well.?
fav ,etc?
fav ,etc?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 7 months ago #18290
by Mr. Dam
Replied by Mr. Dam on topic Re: remove price
Yes, compare.html.php, locator.html.php, you can check those files, and remove all things relate ->price_original. Please backup file before making changes.
Thanks
Dam
Thanks
Dam
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.