Closed (won't fix)
Project:
Ubercart
Version:
5.x-1.8
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2009 at 21:39 UTC
Updated:
4 Feb 2011 at 13:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
hedgefrog commentedI really need this feature too.
Comment #2
recrit commentedI have attached a patch to uc_product for 6.x-2.0-rc6 -- If needed for rc3, I would have to look at the differences from rc3 to rc6. I hate to patch backwards. However, I did check that it will work on the latest dev as of this post.
This patch adds a checkbox option to the content type form of all product types under the "Ubercart product settings" fieldset. This is the best place since it can cover 'product' as well as all added product classes. The shipping option can still be overridden at product level if needed.
Applying patch:
apply patch from modules/ubercart
Comment #3
Island Usurper commentedYeah, this is good. Committed with the following change: added a query to uc_product_uninstall() to delete all of the variables that could be created by this feature. If we wanted to be really slick, we should delete the settings whenever a product class is deleted (or uc_product_kit is uninstalled). I just don't think it's worth the time to take to make it happen, yet.
Comment #4
recrit commentedthanks for the updated patch. I forgot the .install. Is there a reason why all variables aren't dumped with "uc_product_%%"?
For the variable clean up on node type change and delete, below is a function that I have used on some custom modules and works great. I adapted it from the fivestar module's hook_node_type.
Comment #6
glennnz commentedDoes anyone have a fix for this for UC1?
Thanks
Glenn
Comment #7
tr commentedComment #8
longwaveIt's too late to do anything with this now Drupal 5 is obsolete.