• Resolved oberning

    (@oberning)


    Hi there,

    I would like to add the total weight per product.
    So if someone ordered 2 items it will show the weight of 2 products.
    Right now it is showing the weight of only 1 product.

    Kind regards,
    Olga

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Olga,
    The easiest way to do this is with our Premium Templates extension, with which you can add a “Weight” column in the customizer, you can even print the total weight of the order in the totals:

    In the free version you will need to calculate this yourself (multiplying the product weight with the item quantity) and put it in a custom template.
    Here’s an example:

    
    if ( !empty($item['weight']) ) {
        echo $item['weight'] * intval($item['quantity']);
    }
    
    • This reply was modified 5 years, 11 months ago by Ewout. Reason: added example
Viewing 1 replies (of 1 total)
  • The topic ‘Weight of Product Line’ is closed to new replies.