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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1846 Views

Avatar
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.

eg:

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

}

Is there an other more sophisticated way?

Thanks for your help!

Avatar
Heike-san

Community Member, 52 Posts

20 November 2009 at 8:03am

Have you found something ?