guest* Posted October 25, 2010 Share Posted October 25, 2010 I need to change the reference into EAN on invoices. Is this possible ? Does the invoice assign the variable ean13 ? I tried to change all "reference" into ean13 but it doesn't work. Link to comment Share on other sites More sharing options...
rocky Posted October 25, 2010 Share Posted October 25, 2010 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 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