CodeIgniter Forums

Full Version: Dynamic attributes?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]visua[/eluser]
Often in many shopping cart system, you have the ability to add attributes to products.

Some systems allow you the option to set the type of attribute, such as input text, radial button, drop down, or checklist.

I don't know how exactly one would go about designing this. Is it more of creating a seperate database table called 'attributes' and then storing the name and 'type', then depending on the type, offering up the correct html form?

Thanks

Mike

El Forum

[eluser]Colin Williams[/eluser]
Sounds like what I would do.

El Forum

[eluser]visua[/eluser]
[quote author="Colin Williams" date="1248412097"]Sounds like what I would do.[/quote]

Cool. I'm not sure I always have the best method to my madness. But hopefully this works Smile