#Product Options Templates by Category - Best Practice?

2 messages Β· Page 1 of 1 (latest)

deft trench
#

Hey everyone! πŸ‘‹
I'm working on a MedusaJS store and looking for the best way to handle product options that should be consistent within categories.
Current Issue:
Right now, product options are completely dynamic - I can type whatever I want. This leads to inconsistencies like:

One product has "Size", another has "size" or "zise" (typo)
Values vary: "XL" vs "xl" vs "Xl"
Hard to remember which options should exist for each category

What I Need:
A way to predefine option templates (like "Size" with values s,m,l,xl) and associate them with categories (like "T-shirts"). When creating/editing products in that category, I should only be able to select from predefined options and values.
Questions:

  1. Is there a built-in way to achieve this in MedusaJS?
  2. Are there any existing plugins/modules for this functionality?
  3. What's the recommended approach - custom entities, extending ProductCategory, using ProductTypes, or something else?
  4. Has anyone implemented something similar? Would love to see examples!

Thanks for any guidance! πŸ™

finite needle
#

you can create a model and link it with product