Closed rubydesign closed 10 years ago
I debated this for a while. Then I had one use-case where the brand was different for individual variants. I could forced the business guy to make a separate product and relate the products somehow.
I'll keep this open and ask others what they feel. I'm thinking one "weird" use-case isn't worth accommodating. I might change after my Dec 3rd meetup.
I just realized. I could have a brand on product and variant. If the variant brand_id is nil it will default to the product's brand.
Possible. But is it useful? What was that case you had, because I really can't imagine it.
On 27.11.2011, at 18.57, David Henner wrote:
I just realized. I could have a brand on product and variant. If the variant brand_id is nil it will default to the product's brand.
Reply to this email directly or view it on GitHub: https://github.com/drhenner/ror_ecommerce/issues/19#issuecomment-2888633
If I remember correctly it was a fashion product. The same product had RL vs Ralph Lauren for the logo. It could have been two products but everything else was identical.
I'm definitely agreeing brand is a product association. I'm going to talk with a few people about this. before i take brand off of variant.
Hi, is this still open ?
I did just write a use case where variant.brand was different than product.brand. Odd use case. They guy was selling medical procedures. Each product was a procedure and each variant was a location the procedure was performed at.
I'll try to do this tonight. (about time :smile: )
Done! :smile:
Shouldn't the brand be a property of the Product rather than the Variant.
I don't understand what it would mean to have one product with variants from different brands.
(btw: nice though that brands and suppliers are not the same)