Hi,
The PDF invoice plugin already supports this, through three hidden settings of the HikaShop configuration (they apply to the normal invoice too):
- show_invoice_unit_weight: adds a column with the weight of one unit of each product
- show_invoice_total_weight: adds a column with the weight of each line (unit weight x quantity)
- show_invoice_weight: adds the total weight of the order below the totals
There is no option for them in the configuration page, so you need to add them in your database, with phpMyAdmin for example. Replace xxx_ with the prefix of your tables and only keep the lines you want:
INSERT INTO xxx_hikashop_config (config_namekey, config_value, config_default) VALUES
('show_invoice_unit_weight', '1', '1'),
('show_invoice_total_weight', '1', '1'),
('show_invoice_weight', '1', '1')
ON DUPLICATE KEY UPDATE config_value = '1';
If you use the shipping invoice as well, the same settings exist for it with shipping_ in front of invoice: show_shipping_invoice_unit_weight, show_shipping_invoice_total_weight and show_shipping_invoice_weight.
Note that the weight comes from what was stored in the order when it was created, not from the current product data. So the columns only appear on orders whose products had a weight at that time.