Group product variants (lenght) in a new metafield

dorfke
Excursionist
34 1 3

I sell ski's with different lengths in cm and would like to group similar lengths of various products in a new metafield called "Size Bucket". The idea is to group all sizes between 160cm and 169cm in a new metafield called "165cm" (or something similar. Is their a way to do this grouping of different variants of different products by using some kind of a formula in the configuration of a metafield?

Reply 1 (1)

BSS-Commerce
Shopify Expert
3465 459 515

Hi @dorfke ,

If you want your variants of products to be grouped by metafields automatically, you can try category metafields of Shopify's winter version. Still, that feature is in early access mode and only available to certain merchants.

Now, I think you can add this meta field for your variants by hand

Go to Custom data and create a new variant meta field, name Size Bucket

Then Go to Products and edit variants, in the meta field Size Bucket, enter "165cm"

view - 2024-02-26T093836.367.png

Hope it helps @dorfke 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.

For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS

BSS Commerce - Shopify Apps & Store Development Service Provider

Hire a Shopify expert | Shopify Plus Store Development