Product attributes don´t appear in invoice

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
marc aurel
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 02 Mar 2009, 14:04

Product attributes don´t appear in invoice

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48536
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Product attributes don´t appear in invoice

Post by Jan »

Hi, no idea where can be the problem :( , I will take a look at it.

Jan
If you find Phoca extensions useful, please support the project
digitechs torbay
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Jan 2010, 16:57

Re: Product attributes don´t appear in invoice

Post 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.
www.digitechstorbay.co.uk
Joomla & Virtuemart Specialists
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48536
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Product attributes don´t appear in invoice

Post by Jan »

Hi, thank you for this info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply