I’m trying to figure out why my product weights are not showing on the product page
There was a similar thread on this before, but I do not understand where the edits go.
https://community.shopify.com/c/shopify-design/adding-weight-to-product-page/m-p/1480817#M390514
My store is at https://greenqueencannabis.myshopify.com/products/big-bag-o-buds
pw is shopify theme: dawn
Hi @kirkcanada ,
The code goes to main-product.liquid. Please follow the instructions below.
- From your Admin Page, click Online Store > Themes >Actions > Edit code
- In the Section folder, open the main-product.liquid
- Find the code {%- when ‘title’ -%}, before the last , add the code below.
NOTE: Refer to image for placement
{% assign current_variant = product.selected_or_first_available_variant %}
{% if product.selected_or_first_available_variant.weight != 0 %}
**Weight:** {{ product.selected_or_first_available_variant.weight | weight_with_unit }}
{% endif %}
1 Like
Thanks for the quick response… I’ll try it and let you know.
1 Like
Wow that’s an awesome solution! Thank you so much for posting that.
Now…
Is there any way to get the weights to show up in the “collections” view?
https://greenqueencannabis.myshopify.com/collections/all
Hi there, this works, however when you select a variant it does not update the weight unless you refresh the page.
Do you know a way to fix this please?
Many thanks
Hi I am having the same issue with the refresh. Did anyone get an answer on how to fix this ?