Payment Extra Info in Invoice

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
SamuTnT
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 23 Mar 2009, 17:31

Payment Extra Info in Invoice

Post by SamuTnT »

Is possible to add this info from the virtuemart database into the invoice??

Code: Select all

/** Start printing out HTML Form code (Payment Extra Info) **/ ?>
	    
	<table width="100%">
	  <tr>
	    <td width="100%" align="center">
	    <?php 
	    @include( CLASSPATH. "payment/".$dbpm->f("payment_class").".cfg.php" );
	
	    echo DEBUG ? vmCommonHTML::getInfoField('Beginning to parse the payment extra info code...' ) : '';
	
	    // Here's the place where the Payment Extra Form Code is included
	    // Thanks to Steve for this solution (why make it complicated...?)
	    if( eval('?>' . $dbpm->f("payment_extrainfo") . '<?php ') === false ) {
	    	echo vmCommonHTML::getErrorField( "Error: The code of the payment method ".$dbpm->f( 'payment_method_name').' ('.$dbpm->f('payment_method_code').') '
	    	.'contains a Parse Error!<br />Please correct that first' );
	    }
	      ?>
	    </td>
	  </tr>
	</table>
	<?php
		$db = $db_temp;
	}
	// END printing out HTML Form code (Payment Extra Info)
	?>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Payment Extra Info in Invoice

Post by Jan »

Hi, no experiences there :-(

If you will load such data from the database, you need to convert the output to tcpdf framework code and then it can be displayed on the invoice.

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