Posted by armyofda12mnkeys on November 16, 2008 at 6:20pm
Jump to:
| Project: | UC Discounts |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
like imagine i have a shirt class, and that has the attributes:
Child M $8
Child L $10
Adult S $10
Adult M $12
Adult L $14
Tanktop $15
Then a way to say for a family-pack discount: If a user buys 2 children options and 2 adult options, then apply discount.
I was looking into implementing this myself, but looks too hard possibly.
Maybe a php-code discount is better?, like if php code returns TRUE based on whats in cart, then discount is applied.
aka for my discount, it would look through all products, if they have options, see if they are children attributes or adult ones, then return true if bought 2 of each.
Comments
#1
Really what it sounds like is needed is a product-options module. That way, you can specify a product as the main item, then condition out options. If all the conditions match, apply the discount.
Does this sound acceptable?
#2
Well, i think it would be 4 different products in my example. like 4 shirts. im not sure what kinda addition to module would need.
Even more complicated, it could be a family pack discount of different kinds of products. like a 2 childrens shirt, 2 adult shirts, and 2 pairs of child shoes, 2 pairs of adult shoes.