Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
OS Property support center

delete button does not work

  • ramon zaragoza
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 11 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

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

More
12 years 11 months ago #38318 by Mr. Dam
Replied by Mr. 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
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
  • Junior Member
More
12 years 11 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: Mr. Dam, Nguyen Phu Quan