Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

adding product attributes

Go to End

2 Posts   1465 Views

Beyond IT

Community Member, 5 Posts

19 March 2009 at 9:27am

Hello, I want to use SS for building up a onlineshop for a t-shirt designer. The problem is that I have designs which should be printed either on the back or front of a t-shirt. Also the size of the design could vary and the colours of the shirt as well. So the customer should choose colour/size of the shirt/size of the design/place of the desing. My idea was to add a new dbcolumn for each product feature.


class MyProduct extends Product
static $db = array(
'Colour' => "Enum('red','green','blue')"


Is there an other more sophisticated way?

Thanks for your help!


Community Member, 52 Posts

20 November 2009 at 8:03am

Have you found something ?