garyjj127 Posted April 23, 2015 Share Posted April 23, 2015 Is there any way to display the product weight on the invoice pdf file? I tried adding {$order->getTotalWeight()}, but just get a "0" displayed, rather than the item weight. Any ideas? I'm using PS 1.5.6.2 Link to comment Share on other sites More sharing options...
tuk66 Posted April 27, 2015 Share Posted April 27, 2015 Try {$order_detail.product_weight} to show the weight of one product piece. You need to summarize all order items to get the total weight. This approach is used in the "Delivery slips with the total weight" template (M4 PDF Extensions module). Link to comment Share on other sites More sharing options...
garyjj127 Posted April 27, 2015 Author Share Posted April 27, 2015 @tuk66 Thank you. I've just tried it and the weight comes out 0.00000, even though I've filled in the weight field under shipping! Link to comment Share on other sites More sharing options...
tuk66 Posted April 28, 2015 Share Posted April 28, 2015 What is in your ps_order_detail table. The product_weight value is stored with the order. Link to comment Share on other sites More sharing options...
garyjj127 Posted April 28, 2015 Author Share Posted April 28, 2015 @tuk66 Thanks for replying! I have discovered the problem! I added the weight to a few items on the site to see if it is added to the invoice, but it only adds the weight to the invoice if the weight field is filled in for the specific product BEFORE the order is placed (if that makes sense). Basically it doesn't show the item weight if the weight field is filled in retrospectively, until another order is received for the item. I had an order for a product I had already added the weight to this morning, and the weight displays properly on the invoice now! Link to comment Share on other sites More sharing options...
Recommended Posts