How to display weight product on product page?? ( Minimal Theme)

edbertjs
New Member
2 0 0

Hello,

I've been struggling with this for a while. How to display weight product one product page??

im using minimal themes.

thanks before

0 Likes
Kazim1
Tourist
28 0 3

Where would you wanna display this?

Add this code inside the product page on desired location.

{{ product.variants.first.weight | weight_with_unit }}
edbertjs
New Member
2 0 0

Thank you bro Kazim. It worked

:D

0 Likes
JULIOZILLI21
New Member
2 0 2

Whereexactly within the coding do I paste this code (within the product-template.liquid)

Fern88
Tourist
9 0 1

Yes, I pasted this below my description in product-template.liquid

0 Likes
Bhavi1
New Member
1 0 0

Hi, I want the weight to showcase on the homepage collection section where products are displayed next to the title. In which file should I post the mentioned code?

0 Likes
JoeG21
New Member
2 0 0

Hello,

I want the weight next to the options on the product page. I entered the code from above and it only shows the first variant pricing but doesn't update when I choose a different size. Any help would be appreciated. 

0 Likes