chrismcb Posted April 26, 2017 Share Posted April 26, 2017 Just upgraded to 1.6.13 from 1.6.10 and noticed that on the order detail lines, the attribute chosen for the product is not displayed on PDF invoices and Delivery Slips. In this instance it is a selected size. These do appear in the main order screen in the admin. Can anyone advise how to get these listed here? It makes it impossible to pack an order from the PDFs. Link to comment Share on other sites More sharing options...
chrismcb Posted April 26, 2017 Author Share Posted April 26, 2017 (edited) Replying to my own question with a solution here, which I would class as a bug. In classes\order\OrderInvoice.php #143, the select should be: SELECT *, od.`product_name` as product_name When it was actually: SELECT *, pl.`name` as product_name I also modified the ORDER BY statement to order by od.`product_reference`, as it is more suitable for me in this instance. Edited April 26, 2017 by chrismcb (see edit history) 3 1 Link to comment Share on other sites More sharing options...
ssvapes Posted April 26, 2017 Share Posted April 26, 2017 (edited) Worked. Thanks Edited April 26, 2017 by ssvapes (see edit history) Link to comment Share on other sites More sharing options...
ssvapes Posted April 26, 2017 Share Posted April 26, 2017 Worked. Thanks In classes\order\OrderInvoice.php #143, the select should be: SELECT *, od.`product_name` as product_name When it was actually: SELECT *, pl.`name` as product_name Link to comment Share on other sites More sharing options...
techtech Posted May 1, 2017 Share Posted May 1, 2017 (edited) I too have this issue from upgrading 1.6.1.12 to 1.6.1.13. Ok, it worked! I changed the code and updated the server. Thanks! Edited May 1, 2017 by techtech (see edit history) Link to comment Share on other sites More sharing options...
fdny895 Posted May 4, 2017 Share Posted May 4, 2017 I followed these steps in line 143 to show: SELECT *, od.`product_name` as product_name and then when the next order came in the invoice didnt even exist out of thousands of orders after this was changed. I want to be able to show the product attributes Link to comment Share on other sites More sharing options...
rprangov Posted May 16, 2017 Share Posted May 16, 2017 Thank you. Very useful. I have fought with this problem last 5 days and you save me. Your solution works for me . Link to comment Share on other sites More sharing options...
0121stephen Posted June 12, 2017 Share Posted June 12, 2017 Awesome thanks, worked for me. Link to comment Share on other sites More sharing options...
yog_sothoth Posted September 6, 2017 Share Posted September 6, 2017 Worked!!! Thanks 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