We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to display total item weight on e-commerce cart page?

Solved

How to display total item weight on e-commerce cart page?

KwikDeal
Tourist
5 0 0

Hi.

 

I am in the middle of setting up my B2C e-commerce store and have imported all my items with their weights. I would like to show the total weight of the items that have been added to the cart on the cart page. I need this as the fulfilment company I am using require weights in order to quote me on prices for picking/packing.

 

I'd be most grateful if somebody could tell me the correct code to add and where to add this in the theme file.

 

I have read discussion posts on this but the codes provided do not seem to be working for me.

 

Many thanks in advance to anybody who can help 🙂

 

J

Accepted Solution (1)
Tejas_Nadpara
Shopify Partner
1123 222 555

This is an accepted solution.

@KwikDeal 

 

It need to add in to your theme file not editor and it's depends on theme. Share me your store url, I will send request for the admin access. You will get an email, just accept request from there and I will fix that code in proper way.

 

Thank you,

Tejas

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on tejas.nadpara@gmail.com regarding any help

View solution in original post

Replies 8 (8)

Tejas_Nadpara
Shopify Partner
1123 222 555

@KwikDeal 

 

You can use following code in to your cart file where you want to display total weight:

{{cart.total_weight}}

Let me know if you need any more help!

 

Thank you,

Tejas

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on tejas.nadpara@gmail.com regarding any help
KwikDeal
Tourist
5 0 0

Many thanks for the response Tejas.

 

I am a new to coding, could you tell me where I would need to enter the code on the editor?

 

Regards,

 

J

Tejas_Nadpara
Shopify Partner
1123 222 555

This is an accepted solution.

@KwikDeal 

 

It need to add in to your theme file not editor and it's depends on theme. Share me your store url, I will send request for the admin access. You will get an email, just accept request from there and I will fix that code in proper way.

 

Thank you,

Tejas

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on tejas.nadpara@gmail.com regarding any help
hiwadhwa
Visitor
2 0 0

Hello Tejas, 

 

I need the same fix for me website and I am not sure where to insert the code.

Could you please help.

 

Thank you. 

hiwadhwa
Visitor
2 0 0

Hello @Tejas_Nadpara 

 

I need the same fix for me website and I am not sure where to insert the code.

Could you please help.

 

Thank you. 

Khun_Prema
Visitor
2 0 0

Hi Tejas,

 

I need to get this done on my website khunprema.com
I need to show the total weight of the order in the cart, can you help ?

Thanks a lot

Huda-HN
Tourist
24 0 3

@Tejas_Nadpara 

Dear Sir ,

please help me , I edit the code my cart and now it not working 

antonkogan
Excursionist
30 1 9

Hey wanted to ask.  My pounds and ounces aren’t displaying correctly. It’s showing 1 lbs 69 oz for 1.69 pounds. This is confusing customers. Can you help? 

url. Emmaspremiumservices.com

 

  @Tejas_Nadpara