
Originally Posted by
matthijsA
Can you understand that if I read this, I interpret it as meaning: "your schema is not doing what the requirements are, allowing price differences for different attributes"?
Yes, that's how it should be understood. If you're trying to emphasise the point that it is possible to achieve variable pricing based on attributes using your schema, then don't. I mean, it's possible to achieve that with a single products table. For example...
Code:
ID Title Price_Diff
-- ----- ----------
388 T-Shirt - Green Large Cotton $23
389 T-Shirt - Orange Medium Polyster $20
389 T-Shirt - Orange Small Satin $24
Would you look at that, I've got price altering product attributes.
All of these schemas essentially store the same data. I didn't think this thread was about finding a schema that can achieve the outcome any old way, I was under the impression this thread was about finding the most efficient/reliable/friendly method of doing so.

Originally Posted by
matthijsA
Again, what is "impractical" is something else and depends on other factors. For example, SJH's example, is a situation which my schema allows, without adaptation. Maybe allspiriteve needs that specific flexibility, maybe not
SJH's example can also be achieved in that single products table example above. It's of course possible in mine as well as I demonstrated. In all 3 schemas, SJH's example is stored as a combined set of attribute values (with a pre-determined price). You could say mine goes a little further by allowing multiple sets of combined attribute values which mixes it all together (although you could probably claim the same thing about your schema)...
Code:
ID Product_ID Attribute Value Price_Diff
-- ---------- --------- ----- ----------
388 45 size/material medium/cotton +$3
389 45 size/material large/cotton +$5
390 45 colour/finish green/matte +$0
391 45 colour/finish orange/matte +$0
392 45 colour/finish orange/gloss +$3
Anyway, it's bed time for me.
Bookmarks