josias Posted April 1, 2012 Share Posted April 1, 2012 I know modifications should be in classes/pdf.php, but I have no idea how to do. I want: If PDF is a ivoice, show only the invoice address, and hide the delivery address. If the PDF is a delivery_slip show both address Somebody can help me please? Thank you! Link to comment Share on other sites More sharing options...
CartExpert.net Posted April 2, 2012 Share Posted April 2, 2012 Hello, You should create an override of the PDF class for the 'invoice' function. In the 'invoice' function check if $delivery is false. If not false display $pdf->Cell($width, 10, self::l('Delivery'), 0, 'L'); if false do not display. If not false $addressType = array( 'delivery' => array(), 'invoice' => array(), ); if false $addressType = array( 'invoice' => array(), ); We didn't test this, but should work. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now