Page 1 of 1

Payment Extra Info in Invoice

Posted: 06 Aug 2010, 17:39
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)
	?>

Re: Payment Extra Info in Invoice

Posted: 07 Aug 2010, 12:20
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