Shipping Weight as Dynamic Metafield/Object

I’ve been working on setting up metabojects and fields to better sort my store. I have products that come in different sizes. Fortunately this is the same as their shipping weight. I was wondering if there was a way to use a product and/or product variant’s shipping weight as a filter for the front-end shopping experience.

So far the only way I’ve been able to use the weight as a filter is to create a custom metaobject/field and then assign it product by product, variant by variant.

Hi @JeromeL

You’re on the right track with using metafields and metaobjects, but since Shopify doesn’t currently allow filtering by shipping weight directly, the best approach is to create a custom metafield for weight and assign it dynamically to each product variant.

Instead of manually adding weight to each product, you can do it automatically using a Shopify Flow (if on Plus) or a custom script using the Shopify API to get the variant weight and store it in a metafield. You can then use Shopify’s Search & Discovery app to make it a filter on your storefront

Apps like “Metafields Editor” can also help bulk-update these fields if coding isn’t your strength. Once set, test the filter on your collection pages to ensure it works smoothly for customers