Display Weight on COLLECTION page?

Highlighted
New Member
4 0 0

I am currently working on a clients Shopify site. They have requested that the product weight, for each individual product, is pulled through and displayed next to the price on collection pages.

 

I can't find any documentation either specifically about this, or that as I understand it, would allow me to achieve this.

If I use {{ product.weight | weight_in_units }} in the partial that is pulled through to show my products on the collection page, it shows 0.0lbs, as I assume it's trying to pull the weight on the collection page itself, which of course doesn't exists and is therefore 0. What I'm trying to achieve is showing each products weight under the product in the collection.

Is there any assistance you can provide, or even point me in the direction of the correct documentation?

 

Any help would be greatly appreciated.

0 Likes
Shopify Partner
1790 298 385
Hi,
Please use this if it help you to show weight.
{{ product.variants.first.weight | weight_with_unit }}
Let me know if you need help
Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
0 Likes
Pathfinder
113 14 25

 

{% for variant in product.variants %} 
{{ variant.weight | weight_with_unit }}
{% endfor %}

For Design, Development and custom changes Hire Me.
If your problem solved then Like & Accept this Solution.
Email ID: silencewebsolutions@gmail.com
0 Likes