OS Property support center

company_id for a ref

  • Imotrust
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 11 months ago #46221 by Imotrust
company_id for a ref was created by Imotrust
can you help me how can I show on details. html. tpl. PHP the company_id, I want to make an auto ref with agent_id/ company_id/and Oders but the company id is the only one that I can't find the right code

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

More
10 years 10 months ago #46228 by Mr. Dam
Replied by Mr. Dam on topic company_id for a ref
Hi Pedro,
You can use the ID number of company or agent. It's unique auto-increase number of those objects. You can use $row->id to show that number. $row is the company or agent object, and depend on each page, they may : $agent or $company.
Thanks
Dam
The following user(s) said Thank You: Imotrust

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

  • Imotrust
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 10 months ago #46328 by Imotrust
Replied by Imotrust on topic company_id for a ref
can you tell me the code for

helpers/layouts/propertyedit.php

and

administrator classes/property.html.php

I've tried

<?php echo $row->company_id;?> <?php echo $company->id;?>

among others, unsuccessfully

please help me...

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

More
10 years 10 months ago #46332 by Mr. Dam
Replied by Mr. Dam on topic company_id for a ref
Where do you want to show company ID? The property details page, right?
Thanks
Dam
The following user(s) said Thank You: Imotrust

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

  • Imotrust
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 10 months ago #46334 by Imotrust
Replied by Imotrust on topic company_id for a ref
I want on value field of ref witch is

Admin property.html.php

And on fronthead propertyedit.php

You understand me?

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

  • Imotrust
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 10 months ago #46355 by Imotrust
Replied by Imotrust on topic company_id for a ref
i have this:

<div class="controls">

<input class="input-small" type="text" name="ref" id="ref" value="<?php if($row->ref!=""){

}
?><?php echo $row->agent_id;?><?php
$data=date("Y");
echo $data;
?><?php

if($row->isFeatured == 1){

?>A<?php
}else{
?>B<?php
}
?><?php echo $row->id;?>" />

</div>

i want to add the company id

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

  • Imotrust
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 10 months ago #46369 by Imotrust
Replied by Imotrust on topic company_id for a ref
Can you help?

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

More
10 years 10 months ago #46372 by Mr. Dam
Replied by Mr. Dam on topic company_id for a ref
It means you want to add the Company in the property modification page, right? But where is the element at that page you want to have Company id, can you send me the screenshot to explain it
Thanks
Dam
The following user(s) said Thank You: Imotrust

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

  • Imotrust
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 10 months ago #46391 by Imotrust
Replied by Imotrust on topic company_id for a ref



I want on ref field, when we create or edit one property it will be create the ref automatically

on image you see 42014B89 when 4 is the agent id 2014 is the creation year B or A is if its feature or not and 89 is the propriety id
and i want the agent company id on second like 4*2014B89 when * is the agent company id.

can you understand me
Attachments:

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

More
10 years 10 months ago #46393 by Mr. Dam
Replied by Mr. Dam on topic company_id for a ref
So the ref will be
agent_id company_id curren_year B/A property_id, right?
Please submit ticket and send your site information with super admin acc, ftp account. I will change it for you
Thanks
Dam
The following user(s) said Thank You: Imotrust

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

Moderators: Mr. DamNguyen Phu Quan