Jump to content

[MODULE] product pdf


Recommended Posts

  • 2 months later...
  • 2 weeks later...

Hello:

After clicking in PDF tab I got the following error:

id_lang)); PDF::product($product,intval($_GET['id_product'])); }else{ die(Tools::displayError('error')); } ?>

I'm using Prestashop Version 1.2.4.0 - 0.140s

Any ideas ?

Thanks in advance

Osvaldo

Share this post


Link to post
Share on other sites
  • 3 weeks later...
  • 2 weeks later...
  • 3 months later...

Hi,

the following error message for a solution is found?



id_lang)); PDF::product($product,intval($_GET['id_product'])); }else{ die(Tools::displayError('error')); } ?>



How could I fix it?

Sorry for my bad English!


Best regards Karsten

Share this post


Link to post
Share on other sites
  • 1 month later...

how to fix the module cause im getting strange characters such as ľšĕťžýáÃÂäňú when im trying to get ľščťžýáíäňú

Share this post


Link to post
Share on other sites
  • 7 months later...

Hello, i am italian...
i have a problem too with this module, Blank screen with error message. :bug:
I have installaed now app free in my PC : doPDF v7
Now if i click on print button and select printer doPDF i can save
my product in a PDF file.
This is not the best solution but it's ok.
BYE.
;-P

Share this post


Link to post
Share on other sites
  • 3 months later...
  • 1 year later...

Cant turn on this module..

 

A got the same error you said:

 

"id_lang)); PDF::product($product,intval($_GET['id_product'])); }else{ die(Tools::displayError('error')); } ?>"

 

in: pdf_product.php?id_product=2&pdf

 

Can anyone help us?

Share this post


Link to post
Share on other sites

Hello:

 

After clicking in PDF tab I got the following error:

 

id_lang)); PDF::product($product,intval($_GET['id_product'])); }else{ die(Tools::displayError('error')); } ?>

 

I'm using Prestashop Version 1.2.4.0 - 0.140s

 

Any ideas ?

 

Thanks in advance

 

Osvaldo

 

I have the same problem. Any sugestion?

Share this post


Link to post
Share on other sites

I'm trying to adapt this module. It seems to be a very old module.

 

The class "PDF.php" (in Prestashop/Classes) changed a lot.

 

 

The function that generates the PDF is on PDF.php:

 

 

public static function product($product, $mode = 'D', $multiple = false, &$pdf = NULL)
{
 $pdf = new PDF('P', 'mm', 'A4');
 self::$orderReturn = $orderReturn;
 $order = new Order($orderReturn->id_order);
 self::$order = $order;
 $pdf->SetAutoPageBreak(true, 35);
 $pdf->StartPageGroup();
 $pdf->AliasNbPages();
 $pdf->AddPage();

			 $pdf->Ln(12);

 return $pdf->Output(sprintf('%06d', self::$order->id).'.pdf', $mode);
}

 

 

After "$pdf->AddPage();" we have to add the lines refering to the product price, product image and product description.

 

Any idea about how should I do that?

 

Thanks a lot.

Share this post


Link to post
Share on other sites
  • 2 years later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More