I am working on a custom shop module.
i have a custom entity content for my products and i want add some configuration for shipment.
For example :
my product has a weight and differents price for a weight.
So i have 3 way i think :
- Custom table, but i am looking for a better way
- Config Entity ?
- Entity content ?
i use drupal console, but when i create a ConfigEntity type, i can't add custom field like weight / price. I can juste create a line with a machine name, i don't know how work this entity.
I need to add line like this :
First item Weight min : 100 Weight max : 500 Price : 10$
Second item Weight min : 500 Weight max : 1000 Price : 20$
What i should use for add config like this ?
Custom tables ? Config Entity ? Entity content ?