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.

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

adding product attributes


Reply


2 Posts   1150 Views

Avatar
la_fayette

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 ?