Jump to content

1.6.13 - Invoices and Delivery Slips missing product attribute


chrismcb

Recommended Posts

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

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 by chrismcb (see edit history)
  • Like 3
  • Thanks 1
Link to comment
Share on other sites

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

  • 2 weeks later...
  • 4 weeks later...
  • 2 months later...

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