PDA

View Full Version : PDF Export Details



Aleksandar Apostolovski
December 12, 2018, 11:14 PM
When I use the PDF export option the form uses the account build form instead of the account browse form to generate the user account information in the pdf file.
It shows the field Terms of use agreement in the pdf file which is not included in the account browse form.
How can I change this?

Rudi
December 13, 2018, 03:12 AM
Hello,


FOR PRINT PAGE:

Go to ftp > includes > controllers > print.inc.php

find and change code:


$seller_info = $rlAccount->getProfile((int) $listing_data['Account_ID']);


to:


$seller_info = $rlAccount->getProfile((int) $listing_data['Account_ID']);
$account_fields = $rlAccount->getFormFields($seller_info['Account_type_ID']);

foreach ($seller_info['Fields'] as $key => $value) {
if (!isset($account_fields[$key])) {
unset($seller_info['Fields'][$key]);
}
}

Aleksandar Apostolovski
December 13, 2018, 07:46 PM
Rudi, it doesn't work. I've attached PDF's from two different account types: Dealer and Seller.
Is it possible to remove the field NAME too?
The third attach is the Seller account in Macedonian language but I can't fix the encoding of the word Страна which is shown on the listing pages.
I can't find solution for that.

Rudi
December 14, 2018, 02:58 AM
Go to plugins > PdfExport > PdfExport.inc.php

find and remove/comment out the following code:


$html .= '<table width="100%">
<tr>
<td colspan="2" style="background-color: #e5e5e5;">'. $lang['seller_info'] .'</td>
</tr>
<tr>
<td width="100px" style="color: #676766;height: 20px;">' . $lang["name"] . ':</td>
<td>' . $seller_name . '</td>
</tr>';

if ($seller_info["Display_email"])
{
$html .= '<tr>
<td style="color: #676766;height: 20px;">' . $lang["mail"] . ':</td>
<td>' . $seller_info["Mail"] . '</td>
</tr>';
}

foreach ( $additional_fields as $key => $additional_value )
{
if ( substr_count($additional_value["value"], "http") )
{
$additional_value["value"] = str_replace(RL_URL_HOME, "", $additional_value["value"]);
}
$html .= '<tr>
<td style="color: #676766;height: 20px;">' . $additional_value["name"] . ':</td>
<td>' . $additional_value["value"] . '</td>
</tr>';
}

$html .= '</table>';

Viktor
December 14, 2018, 03:20 AM
Hello Aleksandar,

You can send ftp access to my PM I will try to solve the problem with the ???????

Aleksandar Apostolovski
December 15, 2018, 04:43 PM
Rudi that would delete the whole Seller info table, but you directed me to what I need so I deleted only:
<tr>
<td width="100px" style="color: #676766;height: 20px;">' . $lang["name"] . ':</td>
<td>' . $seller_name . '</td>
</tr>';

And for excluding the privacy policy field I added:
foreach ( $additional_fields as $key => $additional_value )
{
if ($key == 'policy') continue;

Thank you.