Hi,
I'm trying to offer a discount on a product kit. I just put -0.10 in discount field but nothing happens. It seems like the info is not stored. What can be happening?
thanks!
|
Ubercart |
|
|
|
||
|
Thu, 08/09/2007 - 05:38
Hi, I'm trying to offer a discount on a product kit. I just put -0.10 in discount field but nothing happens. It seems like the info is not stored. What can be happening? thanks!
another problem
I have another problem... that is that when I create a product kit this doesn't figure in the catalog nor manufacturer. How can I add the product kit to the catalog and manufacturer?
Re: another problem
I'm not sure why the discounts aren't working, especially if there aren't any errors when you submit the form. I guess try running update.php and see if there are any changes to the database that haven't been done. To put product kits in the catalog, go to admin/content/taxonomy and edit each of those vocabularies. Near the bottom of the form is a list of all the node types available. Make sure "Product kit" is selected, and you can go back to edit the product kits you've made so far.
Product Kit discount not working
I have the same issue as described above, where discount values for products in a Product Kit are lost. Any suggestions you may have for how to fix this would be highly appreciated.
Re: Product Kit discount not working
I'm getting the same problem as well. It looks like the discounts, though, are making it into the sql table, uc_product_kits. It lists everything there correctly, including the discounts and the product_id references. There is no information in the "data" column cell, though; should there be? When I go to edit a product_kit I have created, no information is shown in the discounts box even though there is info in the sql table. For reference, I am running the following: All modules and drupal are up-to-date. -Aaron
Re: Re: Product Kit discount not working
okay, so I tracked down the issue, I think, to the lines 107 and 112 on uc_product_kit.module. It appears that for some reason the following has been commented out: /* if ($prod->discount < 0){When I removed the comment marks ( /* on line 107 and */ on line 112) then the discount worked. For some reason though, the discounts are not showing up on edit page for a particular product_kit even though there are discounts there and in the sql table. The code which references that is on line 208 appears to be correct. I was able to get this fixed by adding in the following line just above the previous code: $product->discount = $prod->discount;So now everything works for me. Let me know if this all looks good and I'm happy to post my modified uc_product_kit.module file.
Re: Re: Re: Product Kit discount not working
It looks like this fix just barely missed getting into the release. By a matter of minutes it looks like. I think there was some miscommunication between Ryan and me, so he made the release package before I was done. Oh well, we'll do better next time. I've rolled the patch that will get product kits from alpha7b to the next revision. Just make sure you take your changes out before you apply it.
|
|