llmills Posted December 31, 2011 Share Posted December 31, 2011 Hi all I would like to modify my invoice to include the product id to the left of the description. I have found the pdf.php file and I know I have to modify the code in there, but I am not sure where to modify it and what snippet of code I need to add. Any help would be greatly appreciated Link to comment Share on other sites More sharing options...
btc.dev Posted January 4, 2012 Share Posted January 4, 2012 Hi, You have to modify the function ProdTab, more specifically this line: $this->MultiCell($w[++$i], 5, Tools::iconv('utf-8', self::encoding(), $product['product_name']), 'B'); becomes $this->MultiCell($w[++$i], 5, Tools::iconv('utf-8', self::encoding(), '[id:'.$product['product_id'].'] '.$product['product_name']), 'B'); Regards, btc.dev 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