OS Property support center

remove price

  • sti
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
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
  • Platinum Member
More
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.

More
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

Please Log in or Create an account to join the conversation.

  • sti
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
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?

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan