Getting Magento shipment weight
I'd like to know the w开发者_如何转开发eight of an order, as calculated by Magento. Anybody know where this is calculated in the code?
I'd eventually like to add it to the order info in the admin area.
The weight of each order is already calculated and stored, look at the sales_flat_order
table to see. To retrieve the weight for any given order use it's getWeight()
method.
精彩评论