Page 1 of 1

Product attributes don´t appear in invoice

Posted: 15 May 2009, 12:28
by marc aurel
Hi !

I have a little but strange problem with the creation of invoices within the IDnR Component. If I have one product ordered the product attributes appear under the productname in the invoice. If I have 2 products orderd and only the first one has attributes, they also appear under the first product.

But if I have two or more products and two or more products have product attributes, the product attributes only apear for the last ordered item in the invoice. The attributes of the other products are not shown in invoice.

I have already taken a look to the phoca.tcpdf and delivery.pdf but i have found no error or something else.

Can somebody explain this to me or better has somebody a solution for this problem?

Greetings Ralf

Re: Product attributes don´t appear in invoice

Posted: 17 May 2009, 22:11
by Jan
Hi, no idea where can be the problem :( , I will take a look at it.

Jan

Re: Product attributes don´t appear in invoice

Posted: 21 Jan 2010, 17:03
by digitechs torbay
to have all products with attributes show you need to change the text above \\summarize in the delivery.pdf.php to:

if(!empty($attribute)) {
$pdf->Cell(30,5,'',0,0,'L');
$pdf->Cell(130,5,"(".$db->f('product_attribute').")",0,0,'L');
$pdf->Ln(5);

}$pdf->Cell(30,5,'',0,0,'L');
$varPA = ereg_replace ("<br/>", "\n", $db->f("product_attribute") );
$varPA2 = $varPA . "\n";
$pdf->MultiCell(130,5,$pdf->unhtmlentities($varPA2),0,0,'L');
$pdf->Ln(5);
}

this will now work.

Re: Product attributes don´t appear in invoice

Posted: 23 Jan 2010, 23:23
by Jan
Hi, thank you for this info.

Jan