- Posts: 27
- Thank you received: 1
OS Property support center
delete button does not work
- ramon zaragoza
- Topic Author
- Offline
- Junior Member
-
Less
More
11 years 9 months ago #38311
by ramon zaragoza
delete button does not work was created by ramon zaragoza
Hi Dam.
when an agent from the frontend select a property to delete it, is not is not delete.
in the details of the property as I can change Sqft: to display other text, can not find where to change
when an agent from the frontend select a property to delete it, is not is not delete.
in the details of the property as I can change Sqft: to display other text, can not find where to change
- Dang Thuc Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13244
- Thank you received: 1729
11 years 9 months ago #38318
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: delete button does not work
Hi Ramon,
1. To solve the problem "Can't remove properties" at agent profile, please follow these steps
Open file: components > com_osproperty > classes > agent.html.php
Find:
if(t == "deleteproperties"){
var answer = confirm("<?php echo JText::_('OS_DO_YOU_WANT_TO_REMOVE_ITEMS')?>");
if(answer == 1){
document.ftForm.task.value = "agent_removeproperties";
document.ftForm.submit();
}
}else{
if(t != "property_upgrade"){
document.ftForm.task.value = "agent_" + t;
document.ftForm.submit();
}else{
document.ftForm.task.value = t;
document.ftForm.submit();
}
}
and change to
if(t == "deleteproperties"){
var answer = confirm("<?php echo JText::_('OS_DO_YOU_WANT_TO_REMOVE_ITEMS')?>");
if(answer == 1){
document.ftForm.task.value = "agent_deleteproperties";
document.ftForm.submit();
}
}else{
if(t != "property_upgrade"){
document.ftForm.task.value = "agent_" + t;
document.ftForm.submit();
}else{
document.ftForm.task.value = t;
document.ftForm.submit();
}
}
2. To change Sqft, please follow these steps
components > com_osproperty > templates > your_current_theme > details.html.tpl.php
find
<?php echo JText::_('Sqft')?>
and change 'Sqft' by your text
Good luck
Dam
1. To solve the problem "Can't remove properties" at agent profile, please follow these steps
Open file: components > com_osproperty > classes > agent.html.php
Find:
if(t == "deleteproperties"){
var answer = confirm("<?php echo JText::_('OS_DO_YOU_WANT_TO_REMOVE_ITEMS')?>");
if(answer == 1){
document.ftForm.task.value = "agent_removeproperties";
document.ftForm.submit();
}
}else{
if(t != "property_upgrade"){
document.ftForm.task.value = "agent_" + t;
document.ftForm.submit();
}else{
document.ftForm.task.value = t;
document.ftForm.submit();
}
}
and change to
if(t == "deleteproperties"){
var answer = confirm("<?php echo JText::_('OS_DO_YOU_WANT_TO_REMOVE_ITEMS')?>");
if(answer == 1){
document.ftForm.task.value = "agent_deleteproperties";
document.ftForm.submit();
}
}else{
if(t != "property_upgrade"){
document.ftForm.task.value = "agent_" + t;
document.ftForm.submit();
}else{
document.ftForm.task.value = t;
document.ftForm.submit();
}
}
2. To change Sqft, please follow these steps
components > com_osproperty > templates > your_current_theme > details.html.tpl.php
find
<?php echo JText::_('Sqft')?>
and change 'Sqft' by your text
Good luck
Dam
The following user(s) said Thank You: ramon zaragoza
Please Log in or Create an account to join the conversation.
- ramon zaragoza
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 1
11 years 9 months ago #38350
by ramon zaragoza
Replied by ramon zaragoza on topic Re: delete button does not work
Thanks Dam, as always, all perfect
Please Log in or Create an account to join the conversation.
Moderators: Dang Thuc 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.