Jump to content

Add Product Id To Invoices


llmills

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...