There is something very confusing about Product Kits which include products containing attributes.
For example, let's say I have a Product Kit which contains 6 Packs, and each Pack has an attribute for T-Shirt size. On the "Add to Cart" form, if I select a T-Shirt size option, then click submit, 6 Packs of the same T-Shirt size appear. My desired behavior is to be able to select a different option for each Pack in my Product Kit.
I am submitting patches to the uc_product_kit.module and uc_attribute.module which will add support for this behavior. Instead of showing one Pack with it's corresponding attributes, it will display 6 Packs (or whatever the quantity is for that product) and give the user the ability to choose a different option for all 6. At the time of adding to the cart, if any of the options are the same (for example, a user chooses 3 larges, 2 mediums, and 1 small), these products will be merged and appear as single line items in the cart with the proper quantity.
The only additional modification which may need to happen is to give the user the ability to customize this behavior on a Product Kit basis. But that should be easy to integrate (maybe through an additional column field in the uc_product_kits table, and a set of radio buttons on the Product Kit node form). Let this ticket be a starting point for some better handling of attributes in Product Kits.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_product_kit.module.patch | 5.11 KB | joelstein | |
| uc_attribute.module.patch | 677 bytes | joelstein |
Comments
Comment #1
rszrama commentedTagging.
Comment #2
Syph commentedCan anyone confirm if this works for 2.0 rc7. I upgraded without thinking from rc6 when this was working flawlessly.
I tried looking inside the module files but I don’t have the skill to modify it myself.
Comment #3
artis commentedThe second hunk fails when applying this patch to 2.2. It looks like that function has changed a lot. Joel, are you still around to update it? I'm looking at it but not really clear on exactly what's happening.
Artis
Comment #4
joelstein commentedSorry, Artis, I don't have time right now to tackle this one right now. If I find time, though (or a client willing to pay for the time), I'll give it another look.
Comment #5
beautifulmindAfter applying the patch, I do get product variants listed on product kit page, but the attributes are missing. So, confused what to select.
Any work around this?
Regards.
Comment #6
tr commentedMoving to "Product kit" component.
Comment #7
tr commentedNew features should go into 7.x-3.x first. 6.x-2.x is near its end-of-life and we need to prioritize efforts by fixing up the most current release first.