OS Property support center

ANSWERED !!! Edit PDF and "Print Page" Output

  • What No Website
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
7 years 1 month ago - 7 years 14 hours ago #96000 by What No Website
ANSWERED !!! Edit PDF and "Print Page" Output was created by What No Website
Hi

Which files do I need to edit in order to change the PDF and Print page layouts for the users please...?

Joomla & Hand Coded Web Design
What no Website
Last edit: 7 years 14 hours ago by Mr. Dam.

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

More
7 years 4 weeks ago #96068 by Mr. Dam
Replied by Mr. Dam on topic Edit PDF and "Print Page" Output
Hi,
You can modify the PDF export layout in file: root > components > com_osproperty > helpers > layouts > propertypdf.php
Print layout in: root > components > com_osproperty > helpers > layouts > propertyprint.php
Thanks
Dam

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

  • What No Website
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
7 years 14 hours ago #97378 by What No Website
Replied by What No Website on topic Edit PDF and "Print Page" Output
Thanks.

Joomla & Hand Coded Web Design
What no Website

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

  • What No Website
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
7 years 14 hours ago #97380 by What No Website
Replied by What No Website on topic ANSWERED !!! Edit PDF and "Print Page" Output
Hi Tang
I just edited that file and there was no change to the PDF I downloaded.

Am I editing the correct file...? It's the PDF that the user can download of the property I am trying to edit.

Joomla & Hand Coded Web Design
What no Website

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

  • What No Website
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
6 years 11 months ago #97807 by What No Website
Replied by What No Website on topic Edit PDF and "Print Page" Output
Sorry but I need to get to this file, the client is in need of urgent adjustments.

Joomla & Hand Coded Web Design
What no Website

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

  • What No Website
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
6 years 11 months ago #98373 by What No Website
Replied by What No Website on topic ANSWERED !!! Edit PDF and "Print Page" Output
I can't seem to pull out the number of beds...
Code:
echo JText::_('OS_BED'); echo $row->bed_room;

Joomla & Hand Coded Web Design
What no Website

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

More
6 years 11 months ago #98407 by Mr. Dam
Replied by Mr. Dam on topic ANSWERED !!! Edit PDF and "Print Page" Output
Hi,
As i answered above
PDF export layout in file: root > components > com_osproperty > helpers > layouts > propertypdf.php
Print layout in: root > components > com_osproperty > helpers > layouts > propertyprint.php
I can help you to remove the parts in PDF or printing layout files if you don't need. Please raise the ticket on category OS Property and tell me more about it.
Thanks
Dam

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

  • What No Website
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Full Stack Developer
More
6 years 11 months ago #98412 by What No Website
Replied by What No Website on topic ANSWERED !!! Edit PDF and "Print Page" Output
Thanks Dang, appreciated.

What I'm looking for is a document or reference file that will show me which PHP code to use to pull out specific elements.

For example:
# of bedrooms
# of bathrooms
Internal dimensions
External dimensions
Efficiency grading and so on.

Is this possible...?

Joomla & Hand Coded Web Design
What no Website

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

More
6 years 11 months ago #98472 by Mr. Dam
Replied by Mr. Dam on topic ANSWERED !!! Edit PDF and "Print Page" Output
Hi,
If you take a look at file: propertyprint.php, you will see the code
Code:
echo OSPHelper::showCoreFields($row);

Above code is used to show all core fields of OS Property, we don't show specific fields in this case to reduce loading time. But you can use code
Code:
$row->field_name
field_name is the column in table: #__osrs_properties (for example: bath_room ) to show data of property in specific place in Printing file.

Thanks
Dam
The following user(s) said Thank You: Sascha Dämgen

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

More
6 years 10 months ago #98904 by joombaya
Replied by joombaya on topic ANSWERED !!! Edit PDF and "Print Page" Output
Hi Dang , how to include Company and Agent i . pdf ( outprint ) ? in file propertypdf.php
Thanks for helping my out

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

Moderators: Mr. DamNguyen Phu Quan