Support Center

You are looking at the old Shopify support page. Please visit our new support site instead for most up to date information.

How do I see the total weight of the order on my order page?

Last Updated: Oct 22, 2012 02:07PM EDT

I want to see the total weight of the order on my order page (Shopify Classic Admin)

You can submit the cart's total weight as a cart attribute to your shop's back-end. If you do that, the total weight will be displayed on the order details page in your shop admin as an Order Note:

Active_Sandbox___Admin___Order__1005__span_id__order-date__25._April_2011_12_36_PM__span_.png

How do you do this

You will need to edit the template cart.liquid in your theme.

To edit your cart.liquid template, go to Theme → Template Editor:

2010-06-28_09.30.10

On the Template Editor page, look under Templates for cart.liquid. (The .liquid extension is omitted in that view.)

Click on 'cart' to open cart.liquid in the online code editor.

Find this code:

	 <form action="/cart" method="post" id="cartform"> 

(That form tag may look a bit different in your theme, it may not have an id attribute.)

On the next line, add this:

	 <input type="hidden" name="attributes[weight]" value="{{ cart.total_weight | weight_with_unit }}" /> 

(You know HTML a bit? What we are doing here is adding a hidden form field inside the cart form.)

Save.

How do I see the total weight of the order on my order page? (Shopify 2 Admin)

You can submit the cart's total weight as a "cart attribute" to your shop's back-end. If you do that, the total weight will be displayed on the order details page in your shop admin as an Order Note. It will look like this:

To do this, you will need to edit the template cart.liquid in your theme in a few easy steps:

1. To edit your cart.liquid template, go to the Theme section of your admin panel.
2. Click the Template Editor button. 

3. On the Template Editor page, look under the Templates folder for the cart.liquid file.

4. Click on cart.liquid to open it in the online code editor.

5. Find this code (you can hit CTRL-F or COMMAND-F and search for the code):

	 <form action="/cart" method="post" id="cartform"> 

Note: this form tag may look a bit different in your theme, as it may not have an "id attribute."

6. On the line directly after the code above, add this:

	 <input type="hidden" name="attributes[weight]" value="{{ cart.total_weight | weight_with_unit }}" /> 


7. Click Save.


That's all there is to it!

Now the total weight of an order will be displayed on the Order details page in your shop admin as an Order Note.

Contact Us

  • North America:
    1 888 746 7439
    United Kingdom:
    0800 808 5233
    Australia:
    03 8400 4750
    New Zealand:
    07 788 6026