11 replies [Last post]
gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Was this information Helpful?

I was hoping to have different types of products, for example "courses" and "books" which each would have different fields and possibly different workflows for creation, moderation, etc...

I was pretty certain that any CCK content type could be enabled as a product, however, i can't seem to figure out how to do this, or any documentation on this. I actually thought i saw Ryan demo this at drupalcon in the second session, but upon reviewing the video, i could not make out if he did or not.

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Can CCK content types be enabled as products?
<tr>.
gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
That link is for Ubercart 1.x

I am using 2.x and can't find any reference to product classes in the 2.x documentation or module.

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: That link is for Ubercart 1.x

2.x documentation has lagged a bit. 2.x is almost a straight port from D5 to D6 with no features added, so most of the 1.x documentation applies without modification.

<tr>.
gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Re: Re: That link is for Ubercart 1.x

woops, i'm an idiot. I misread the 1.x docs and was looking under admin/store/settings/products not
/admin/store/products where there is indeed a manage classes menu item at /admin/store/products/classes

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
The only drawback atm is I

Smiling

The only drawback atm is I don't think you can't make previously existing node types product node types. If not and you need to do that, I'm sure someone (Lyle?) can weigh in on how to make it so. It's probably as simple as inserting a single row in the database.

gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Re: The only drawback atm is I

actually, it seems that you can make an existing content type a product-class if you add a class with the same machine name (type) as the cck content type. It seems to just "work" though it would be nice if when making a new "class" you could just select a content type off a list of existing content types, this would make it easier for people who might be adding ubercart after already having perhaps some other kind of online catalog of things they now want to sell.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: The only drawback atm is I

+1 - if it's already possible, we may as well throw a select list in there or something to make it easier and more apparent.

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: Re: The only drawback atm is I

Yes, turning an existing CCK node type into a product is already possible. In fact, it's a wonderful feature.

<tr>.
meeven's picture
Offline
Joined: 03/01/2009
Juice: 29
TR wrote:Yes, turning an
TR wrote:

Yes, turning an existing CCK node type into a product is already possible. In fact, it's a wonderful feature.

Yes, but it would be easier and far less confusing if the kind of select option that gregoryheller mentioned existed. Smiling

For anyone else struggling with this, here is the post from TR that really helped me understand this:
http://www.ubercart.org/comment/22266/Re_Product_Class

gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Re: TR wrote:Yes, turning an

I would add that there is a benefit to creating the cck content type first and then enabling it as a product: if done this way, you can always turn off ubercart, or disable it as a product class WITHOUT deleting the content type, it will just go back to being a normal cck content type. If you create the content type AS a product class, i THINK that you cannot turn it into a cck type that is not a product class.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: TR wrote:Yes, turning an

So this idea doesn't get lost in the forums, I posted an issue with a slight question about how this form would fit into the already cluttered manage classes page. Patches welcome if someone has a moment to do this. Smiling