Solved

Product weights not showing on Dawn Theme

kirkcanada
Shopify Partner
156 13 25

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
3806 713 1129

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

 

Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!

View solution in original post

Replies 5 (5)

made4Uo
Shopify Partner
3806 713 1129

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

 

Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!
kirkcanada
Shopify Partner
156 13 25

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

kirkcanada
Shopify Partner
156 13 25

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 ?