Next.js Discord

Discord Forum

implementing dynamic attribute in database

Unanswered
Giant Angora posted this in #help-forum
Open in Discord
Giant AngoraOP
For create action, the attributes section will not appear. When editing a product, the attributes section will contain a "Add attribute" button. When clicked, a new row containing 2 fields will be show:
- a column for attribute name selection (ex of options: Size, Color, Sale)
- a column for attribute values
I can't do that, I manage to add only one attribute for each product, even though I have a one-to-many relationship. I'm doing something wrong but I can't figure out what

2 Replies

please also write more descriptive titles next time, "HELP" is not descriptive
Giant AngoraOP
Thank you