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)
in the VM mail printet the Attribute (see Picture )
Best regards
Pegu
Virtuemart email Addon
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Virtuemart email Addon
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 7
- Joined: 12 Aug 2010, 12:17
Re: Virtuemart email Addon
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.
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.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Virtuemart email Addon
Hi, this was not added by me, so I have not tested it but I think, it should work.
Jan
Jan
If you find Phoca extensions useful, please support the project