Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » adding product attributes

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

Page: 1
Go to End
Author Topic: 1112 Views
  • la_fayette
    Avatar
    Community Member
    5 Posts

    adding product attributes Link to this post

    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!

  • Heike-san
    Avatar
    Community Member
    52 Posts

    Re: adding product attributes Link to this post

    Have you found something ?

    1112 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.