Ubercart Products Question

Events happening in the community are now at Drupal community events on www.drupal.org.
vlyons55's picture

I am trying to implement Ubercart on an existing website. We currently have products set up (product content type) with additional fields. What do I need to do in order for Ubercart to recognize these fields? Do I need to copy the existing products to Ubercart products? We also need to make the product displays and order forms look like the current site. Any help is greatly appreciated.

Comments

Hey vlyons -- if I'm

bdimaggio's picture

Hey vlyons -- if I'm understanding you right, you created your own content type, called "product," and the issue is that you can't nodes of this type through Ubercart -- right? If so, I'd say yes, you have to use the built-in UC product content type, which sounds like it'd mean copying your existing products over. That's because UC doesn't let you make any old content type sellable -- only the ones that it has created. Also note that if you create new product classes through store administration > products > manage classes, UC will create a new (sellable) content type for each class. This lets you customize the fields associated with each product class.

As for look and feel on product displays, that should work pretty much like regular Drupal theming. This looks helpful w/r/t Ubercart-specific product page theming.

Thanks!

vlyons55's picture

Thanks!

How do I get my ubercart store to display?

vlyons55's picture

Do I need to create my own menu for Ubercart? I can see the store through store administrator but how does an anonymous user access the store?

There's a default path,

bdimaggio's picture

There's a default path, /products, which displays all your store's products. However, I usually end up making views which display the various categories of product and putting a menu item for each view into a menu that's visible to all users.

Another solution?

MattBrigade's picture

I going through exactly the same issue myself. I found this post and the solution seems to be working so far:
http://www.ubercart.org/forum/support/7525/how_convert_cck_node_set_uber...

I'll post updates with any success/ failure.

Follow-Up

MattBrigade's picture

Opps! I meant to reply to this post sooner to let anyone else who's interested know.

The solution found at my suggested link worked spectacularly (http://www.ubercart.org/forum/support/7525/how_convert_cck_node_set_uber...).

On the "Manage Classes" page, under "Add a Class", if you input the name of an existing node type, Ubercart will go through your database and update every node so they're considered a product class. After that, voila, you're in business (no pun intended).

Whew! That one got me out of some serious data migration after a near heart attack about 3:00 in the morning.

This does work (!) to convert

khosman's picture

This does work (!) to convert pre-existing products into something Ubercart will recognize and list as a product. Why this sort of thing isn't spelled out clearly in the UC documentation is a mystery, as I'm sure tons of people need to simply adopt existing products, but nevermind, this works. Many, many thanks to mattapus. Here are a few simple points to keep in mind (for newbies like me):
- (per the info from mattapus, above) Yes, "an existing node type" is the same as an "existing content type"
- The name of the existing content type is case-sensitive (that is, for me "product" didn't work, "Product" did)
- to see what you're supposed to enter, look at the content types page listing and use what you find under the column marked "Name" not "Type." (I know, rather simple - but these little things add up and cause one to second guess, wasting cumulative hours if not days.)

Inheritance hierarchy for product classes?

sureshg1972's picture

I created a product class called Book by adding additional fields like Author, ISBN, etc. If I want to have sub-classes for the book, how do I do that? For example, I want that a class of books have some additional attributes that are not required for all the books to be sold. One way I can do it now is to create another product class and define all the fields that I defined for the Book + add any new fields. But this is cumbersome. Is there a way I can simply inherit from the Book product class and create another product class?

Boston

Group categories

More Specifically

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: