kgp43
133
3
Nova

Nova, how to save product features in separate table?

Posted 1 month ago by kgp43

Hi,

I'm using Nova to add and modify product data.

Currently I have a tables/models for each product type (each type got a lot of features that I need to use), but a user on this forum suggested, that I make one product table, and then added the features in a separate table - I kinda love that idea. Makes other stuff A LOT easier for me.

I'm not sure how to make that work with Nova though. Not sure what "route" to go.

Lets say I have the following tables:

products
id
name
products_features
id
product_d
property
value

The properties always have the same "names", but the values are of cause different. Each product-type have about 10 features that needs to be saved.

Seems like a simple task, but i'm lost for ideas. How would you handle it?

Hope one of you might be able to point me in the right direction :)

, Kenneth

Please sign in or create an account to participate in this conversation.