Jump to content

instead reference EAN on pdf-invoice


Recommended Posts

Unfortunately, it's not that easy. The invoice gets the product information from the ps_order_detail table, not the ps_product table, so it doesn't include the EAN13. You'd need to modify the getProducts() function in classes/Order.php and add code like the following:

$product = new Product($row['product_id']);
$row['product_ean13'] = $product->ean13;

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...