Shopify themes, liquid, logos, and UX
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
Solved! Go to the solution
This is an accepted solution.
Hi @kirkcanada,
The code goes to main-product.liquid. Please follow the instructions below.
1. From your Admin Page, click Online Store > Themes >Actions > Edit code
2. In the Section folder, open the main-product.liquid
3. Find the code {%- when 'title' -%}, before the last </div>, 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 %}
<strong>Weight: </strong> {{ product.selected_or_first_available_variant.weight | weight_with_unit }}
{% endif %}
This is an accepted solution.
Hi @kirkcanada,
The code goes to main-product.liquid. Please follow the instructions below.
1. From your Admin Page, click Online Store > Themes >Actions > Edit code
2. In the Section folder, open the main-product.liquid
3. Find the code {%- when 'title' -%}, before the last </div>, 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 %}
<strong>Weight: </strong> {{ product.selected_or_first_available_variant.weight | weight_with_unit }}
{% endif %}
Thanks for the quick response... I'll try it and let you know.
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 ?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025