Support for Product Kit - Drupal 6.12 and Ubercart 2

icymetal - June 19, 2009 - 20:58
Project:Ubercart Out of stock Notification
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

For a single product it works very nice!

Since product kit does not have its own stock level, I expected it to use its components. For example, a product kit which includes 3 same items. I set the stock value to 1, but when I add the product kit, it adds it to the cart and now there are 3 items in the cart. What's worth is that if I use the Add to Cart button, it adds 3 more items (in another kit), now having 6 items. It is interesting, though, that if I just change the quantity of a single product kit from 1 to 2 I do get the message that there is only one item in stock.

Can you help me out?
Thank you!

#1

hanoii - June 19, 2009 - 21:26

Related to #473530: Product kit. I am not that familiar with product kits and how ubercart handles, but it's likely that the module needs to be improved to support product kits.

Not sure when though. Please feel free to look at it and contribute a patch if you can.

#2

samhodge1972 - October 7, 2009 - 19:02

Hi I have a situation on a store

I have pendants of 7 types and 2 types on necklaces.

So I have the pendants on thier own

And product kits of each of the 7 pendants with both of the chains, ie 14 product kits and 7 products from the above, chains not available for seperate purchase.

I want to be able to pool the stock levels of the necklaces together and only allow purchase of a product kits if both the pendant AND necklace are in stock.

If the necklace OR the pendant is out of stock, it should not be able to be added to the cart.

Sam

#3

samhodge1972 - October 7, 2009 - 19:00
Version:6.x-1.3» 6.x-1.x-dev
Category:support request» bug report
Status:active» needs work

It is also throwing errors:

* warning: Invalid argument supplied for foreach() in
C:\xampp\htdocs\store\modules\uc_multi_stock\uc_multi_stock.module on line 169.
* warning: Invalid argument supplied for foreach() in
C:\xampp\htdocs\store\modules\uc_out_of_stock\uc_out_of_stock.module on line 255.
* warning: Invalid argument supplied for foreach() in
C:\xampp\htdocs\store\modules\ubercart\uc_cart\uc_cart.module on line 1399.

This is with the latest dev versions, after adding an product kit with a product that is out of stock and refreshing the cart.

As mentioned above you may get the warning about one of the items in the kit being out of stock, but then all of the items are added regardless

#4

hanoii - October 7, 2009 - 19:15
Category:bug report» feature request
Status:needs work» active

I am not sure why you are getting those warnings, but I believe it has nothing to do with this module, because other modules (including uc_cart.module from Ubercart) are complaining of the same thing.

Anyway, I have committed a fix for that warning just to keep the code clean and robust but, if this is a bug, it is originated somewhere else.

 
 

Drupal is a registered trademark of Dries Buytaert.