Product weights not showing on Dawn Theme

Solved

Product weights not showing on Dawn Theme

kirkcanada
Shopify Partner
169 13 35

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

Accepted Solution (1)

made4Uo
Shopify Partner
3873 718 1221

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 %}

 

made4Uo_0-1658362878522.png

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free

View solution in original post

Replies 5 (5)

made4Uo
Shopify Partner
3873 718 1221

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 %}

 

made4Uo_0-1658362878522.png

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free
kirkcanada
Shopify Partner
169 13 35

Thanks for the quick response... I'll try it and let you know.

kirkcanada
Shopify Partner
169 13 35

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

John_Benson
Shopify Partner
2 0 0

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 

KelsoPremium
Visitor
2 0 0

Hi I am having the same issue with the refresh. Did anyone get an answer on how to fix this ?