Closed (fixed)
Project:
UC Upsell
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2009 at 00:34 UTC
Updated:
11 Sep 2009 at 20:20 UTC
Hey TG - just installed the dev version and have noticed a bug. I have 4 UberCart product classes set up (apparel, outerwear, novelties and headwear). All content on my site is set up using these product classes (Content Management > Create Content > Apparel for example). My related items select box is completely blank however. It only seems to display content that is specifically of type "product". None of the content that comes from my product classes work. I have to use classes because the main "product" content type isn't flexible enough for all my needs with all the different options my types of products need.
Any ideas?
thanks
Jason
Comments
Comment #1
torgospizzaYes, did you look under admin/store/settings/upsell - there is a collapsible fieldset for "Node types". Listed there should be product as well as product kit and any other product classes you have created. Right now "product" is the only one selected by default, I suppose I could hook into hook_cron and somehow keep track of any new product classes, but that might be a little bit too messy.
I should probably have this better documented...
Comment #2
torgospizzaI'll see if I can also create a hook for when a new class is created, show a reminder to the user that they'll need to check it off for inclusion in Upsell.
Comment #3
torgospizzaI documented this on the project page and I've also included an implementation of hook_product_class() that, when a new product class is added, shows this message: You need to configure Upsell if you wish to include the widget product class in Upsell blocks!
This will show up in the next Dev and stable. I think I'll be releasing the new Stable as soon as I fix one more bug. Hope this helps!
Comment #4
torgospizzaComment #5
jasonabc commentedHey TP - many thanks for the response. I'm blind - I totally missed the Node Type fieldset!! Have selected product classes and all now is well. Sorry for the fire drill - and thanks again for making this contribution - it rocks!!
Jason
Comment #6
torgospizzaYeah I figured it was easy to miss :) So now if you download the latest Dev, you'll see that when you create a new product class it gives you a helpful message with a link to the Upsell admin just for that purpose.
Thanks for bringing this little oversight to my attention.
Comment #7
jasonabc commentedno problem - thanks again for such a great mod ;-)
Comment #8
torgospizza