5 replies [Last post]
melon@drupal.org's picture
Offline
Joined: 08/12/2007
Juice: 22
Was this information Helpful?

I am having a problem converting one site to use Ubercart. There is an already defined content type called 'product'
By default it doesn't have any special fields, each product on the site is a simple node with file attachments.

However, after installing Ubercart (and the related modules) the ubercart-like product properties (fields) are missing.
When I click /node/add/product, I only get the good-old form, no SKUs or Dimensions.

What do you suggest on configuration or anything has to be done before ubercart install.

Site runs Drupal 5.7, and I'm trying to evaluate the Ubercart version available at the Drupal project page. Any suggestions welcome.

bowwowadmin's picture
Offline
Bug FinderEarly adopter... addicted to alphas.
Joined: 12/09/2007
Juice: 70
Re: When a site already has a 'product' content type...

You can not have 2 of the same named content types in Drupal.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: When a site already has a 'product' content type...

Yeah if you already have a content type called product you'll need to remove it first and then re-install Ubercart.

--
Help directly fund development: Donate via PayPal!

melon@drupal.org's picture
Offline
Joined: 08/12/2007
Juice: 22
I already know this

But I am curious is there a solution which extends my original product node-type with ubercart product properties.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: I already know this

Interestingly, if it was called anything other than 'product' you could create a product class out of it. Basically the uc_product module would take control of that node type and start using it as a product. You can only do this for user-created node types because module-created node types would lose the functionality that the module first gave to them. And that's not what you want, generally.

That's a roundabout way of saying that the Product node type doesn't do that because the module is trying to add the node type to Drupal from scratch.

melon@drupal.org's picture
Offline
Joined: 08/12/2007
Juice: 22
Re: Re: I already know this

Luckily it was only a user-created node, so after renaming the original product type and installing Ubercart, I added a product class with the renamed node type and it worked fine. Thank you for your help.