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

torgospizza’s picture

Title: related items do not show product classes » Show how to include other product classes in selection
Component: Code » Documentation

Yes, 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...

torgospizza’s picture

I'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.

torgospizza’s picture

I 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!

torgospizza’s picture

Status: Active » Needs review
jasonabc’s picture

Title: Show how to include other product classes in selection » related items do not show product classes
Component: Documentation » Code
Status: Needs review » Active

Hey 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

torgospizza’s picture

Status: Active » Fixed

Yeah 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.

jasonabc’s picture

Status: Fixed » Active

no problem - thanks again for such a great mod ;-)

torgospizza’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.