Error when clicking preview when creating product kit

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

Go to create product kit, select products to be part of kit, click preview, get this error message:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'uc_product_kit_add_to_cart_form_' was given in /usr/share/drupal55/includes/form.inc on line 218.

Also the options (quantity, ordering, discount) for the selected products aren't displayed in the create product kit after clicking preview, only when one has clicked submit and then gone back in to edit the kit do these show up. Might be best to have a button in the create/edit product kit form to update the list of options for newly selected/unselected products (similar to the upload button for images that will update the form with new options for each newly uploaded image).

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Error when clicking preview when creating product kit

Can confirm.. I get the error as well...

--
Help directly fund development: Donate via PayPal!

fredklopper's picture
Offline
Joined: 01/20/2008
Juice: 28
Same here
Assigned to:torgosPizza» fredklopper

I have the same problem. I'm using Drupal 5.7 and Übercart beta 7.

With best regards,

Fred Klopper

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Error when clicking preview when creating product kit
Assigned to:fredklopper» Lyle

The preview bug was one I had fixed for products, but never brought it over to product kits. THnaks for catching it.

Setting the product information during a preview is an interesting idea. I'll definitely look into it.

fredklopper's picture
Offline
Joined: 01/20/2008
Juice: 28
Not working :-(
Assigned to:Lyle» fredklopper

Hello Lyle,

See my screenshot. I keep getting errors when trying to create a product kit.

With best regards,

Fred

I've just update to the latest bazaar version.

AttachmentSize
product_kit.png 39.87 KB
Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Not working :-(
Assigned to:fredklopper» Lyle

That's odd. MySQL doesn't usually care that a default value isn't given. It never has for me, anyway. What version are you using?

Regardless, I don't think that column is actually used anymore (if it ever was), so the next commit will have an update to the schema. Run update.php when you get it.

fredklopper's picture
Offline
Joined: 01/20/2008
Juice: 28
Hello Lyle, I think it's odd
Assigned to:Lyle» fredklopper

Hello Lyle,

I think it's odd too. If I just copy the query from the errror message and execute it in my query browser it is no problem at all.

I'm using 5.0.51a-community-nt at the moment but I know I had the same problem with 5.1x installed.

Thanks for your quick reply!

With best regards,

Fred Klopper

Tanjerine's picture
Offline
Bug FinderInternationalizationizerNot KulvikThe other woman.
Joined: 08/31/2007
Juice: 235
Re: Re: Not working :-(
Assigned to:fredklopper» Tanjerine

hi lyle, has this thing been committed? i just bumped into the same bug with latest bzr update.

thanks!

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'uc_product_kit_add_to_cart_form_41' was given in /var/www/htdocs/projects/cinefilipino/drupal-5.6/includes/form.inc on line 218.
Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Not working :-(
Assigned to:Tanjerine» Lyle

Isn't it terrible when you make a mistake you already told yourself not to make?

uc_product_kit_forms() has a hidden argument that I found out about when I fixed uc_product.

Should be fixed now.

cmrsf1's picture
Offline
Joined: 03/19/2008
Juice: 13
Asking for Dimensions with no where to input them
Assigned to:Lyle» cmrsf1

PLEASE DISREGARD. I STARTED A NEW THREAD ON THIS AND AM WORKING ON IT THERE...

I'm making use of a product kit where the user has the ability to combine products into the order. I have it all set up but when go to preview, it says that for a custom order I must input the dimensions of the box. Under the UPS packaging, it does not give me an option for the dimensions as it does with all other products I add. It gives me the weight option which is not what I want. The customer can choose the products but the number of products will still be the same as will the box size. Any ideas?

Thanks!