Planned changes to Products module wrt Attributes
Posted: Thu May 19, 2011 6:12 pm
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.
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.