Page 1 of 1

Virtuemart email Addon

Posted: 12 Aug 2010, 12:41
by Peguschwein
Hello
i have install the Sending Invoice, Delivery Note, Receipt via Email
i will printing the attributes into the Invoice is that possible ?
(see as the example Picture)
Image

in the VM mail printet the Attribute (see Picture )
Image

Best regards
Pegu

Re: Virtuemart email Addon

Posted: 16 Aug 2010, 20:47
by Jan
Hi, for now there is no such option, this needs to be customized. Try to search this forum, there should be guide for this (loading the attributes from database and pasting them to the PDF)

Jan

Re: Virtuemart email Addon

Posted: 18 Aug 2010, 16:12
by Peguschwein
Hello Jan

what is it in the FAQ - Invoice, Delivery Note, Receipt

https://www.phoca.cz/documents/18-virtue ... te-receipt
2. Is it possible to create more detailed entries for the products, so that the invoice etc. shows not only the product name, but also the options chosen (like color or upgrades...)?

Change the lines in the delivery.pdf.php (just above "// Sumarize").
<?php
$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);
?>

The trick is to change the product_attribute string step by step. First, the HTML-breaks are changed into linebreaks that FPDF can understand. Second, a closing linebreak is added ($varPA . "\n";). Third, to get the linebreaks working, the cell command is extended to the "multicell" command.

Re: Virtuemart email Addon

Posted: 21 Aug 2010, 17:33
by Jan
Hi, this was not added by me, so I have not tested it but I think, it should work.

Jan