Hello, I'm trying to build an e-commerce website and I encountered a problem.
I declared a superclass product and some sub classes like this
This is how I want my website looks like in the specification section.
After creating a sub class like I said above, I got a problem that what if the admin wants to add new product which doesnt have some attributes like internalVolume but has some attributes like color, consumptionPower? But I dont want to edit the source code everytime there is a new kind of product. Is there a proper way to solve this?
I also have an idea. It's I create a built-in text editor in admin-cp and let the admin formats all the text in attribute "specification" before inserting into the database. If this is a proper way, is there any API for creating a text editor?
Thank you for your help .