Page 1 of 1

Planned changes to Products module wrt Attributes

Posted: Thu May 19, 2011 6:12 pm
by calguy1000
Hi all.

Thought I'd drop another note as to my planned (medium term) changes to the Products module, and E-commerce suite.

Right now the Products module allows defining multiple attribute sets (dropdowns) for example size, and color, each capable of having multiple attributes (options) for example black, red, green... and small, medium, large, respectively. Each option can have a SKU. and a price adjustment. When checkout time comes the Cart module displayes each of these attribute sets and their options as multiple pulldowns, and tries to come up with a unique sku, price, and description for the selected choices. This is problematic, as you can't for example have an excluded option. i.e: the product isn't available in Green for the large size. and it's a pita to try to find a unique SKU value.

So what I will be doing sooner rather than later is replacing this functionality with an 'options' table where you will define:
a: the sku
b: the description of the choice
c: the price/adjustment
d: an optional image (woot!)

You would fill this out probably in a table like:

SKU DESCRIPTION ADJUSTMENT
tshirt-sg Small Green -1.00
tshirt-sr Small Red -1.00
tshirt-mg Medium Green 0.00
tshirt-mb Medium Blue 0.00
tshirt-mbl Medium Black 0.00
tshirt-lo Large Orange 1.00

See how this is much more flexible?

Now these changes will require changes to the Products module, Cart, and CGEcommerceBase modules.

Anyways, I just thought I'd give you the heads up.

Re: Planned changes to Products module wrt Attributes

Posted: Thu May 19, 2011 7:12 pm
by tyman00
Sounds a lot more flexible. Enjoy figuring out the upgrade process though :)

Re: Planned changes to Products module wrt Attributes

Posted: Thu May 19, 2011 8:50 pm
by maranc
Great idea, I think that you can set somthing like standard version in attributes. Sometimes attributes are like buy a car: standard is air condition, airbag etc. But customer can choice more option like skin, better engine etc. I think that you can create somthing like buy standard, without attributes.

Marek A.