Page 1 of 1

PDF - Property Attribute issue - help please ...

Posted: 11 Jun 2009, 07:04
by ajsajs7
I have the issue of NOT being able to show property attributes (i.e.attributes for products, i.e. arm extensions, etc).

http://www.accesstoworkquote.co.uk/screenprint.JPG
screenprint of issue,

i need to be able to show property values (attributes) for all products, not just the single set. If you look at the screenprint, Tango 100 is missing attribute values. It needs to output attributes associated with the property for each product, not just the single product. below is my code, what would i change so it show attributes for every product not just the one property value.


website: http://www.accesstoworkquote.co.uk where im trying to make it work.

} else {
$pdf->Cell(70,5,$db->f('order_item_name'),0,0,'L');
$pdf->Cell(10,5,$db->f('product_quantity'),0,0,'C');
$pdf->Cell(10,5,$db->f('product_quantity_delivered'),0,0,'C');
$pdf->Cell(20,5,$remaining,0,0,'C');
}
$pdf->Ln(5);

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);
// Sumarize

____________________________________________________________________________

I got the value to show however when they choose couple of products, it only shows one set of property fields. I need it to show other property value for other products, PLEASE HELP thank you so much.

HELP PLEASE - can you please assist me in the code
so i am able to output PDF to show product attributes for every product, not just the 1 product.

Re: PDF - Property Attribute issue - help please ...

Posted: 18 Jun 2009, 22:40
by Jan
Hi, I didn't do such patch, so I really don't know, I am plannig to convert this addon uder Phoca PDF, so I will take a look at it.

Jan

Re: PDF - Property Attribute issue - help please ...

Posted: 07 Oct 2009, 22:34
by kamstrup
Any news on this matter?

I need the feature too.

Re: PDF - Property Attribute issue - help please ...

Posted: 08 Oct 2009, 14:01
by Jan
still not as I have time issues with answering the forum posts :(

Re: PDF - Property Attribute issue - help please ...

Posted: 01 Nov 2009, 10:11
by paulchen007
hi,
i have the same problem. downloaded the latest version of the IDnR addon und install it.
i also setup attributes for products in vm (latest stable version, also joomla).

when i try to output (i.e.) the pdf it NOT shows any attributes :cry:

is there a way to solve this little problem? please, please, please.

any help or hints are welcome :)

With best regards,
paulchen007

Re: PDF - Property Attribute issue - help please ...

Posted: 21 Jan 2010, 17:00
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: PDF - Property Attribute issue - help please ...

Posted: 23 Jan 2010, 23:19
by Jan
Ok, thank you for this solution.

Jan