I am adding Ubercart to an existing site hosting a web-based radio program. I modified the existing 'Article' content type to include the audio files for the program (now called 'Episode'). In following the instructions for converting an existing content type to a product I learned the system will not allow it, giving me the following error message:

This is a node type provided by another module. Only custom node types may become product classes.

So I have created a second content type (Episode1), and added it as a product class following the same instructions listed above. Since I have over 300 existing Episodes of the radio program, I attempted to use the Node Convert module to quickly convert a test node from one content type to another. When I do, I get the following string of error messages:

Notice: Undefined property: stdClass::$default_qty in uc_product_add_to_cart_form() (line 1200 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$default_qty in uc_product_add_to_cart_form() (line 1208 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$sell_price in uc_product_view() (line 731 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$model in uc_product_view() (line 742 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$list_price in uc_product_view() (line 748 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$cost in uc_product_view() (line 758 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$sell_price in uc_product_view() (line 770 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$weight in uc_product_view() (line 779 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$weight_units in uc_product_view() (line 780 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$length in uc_product_view() (line 790 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$width in uc_product_view() (line 791 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$height in uc_product_view() (line 792 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).
Notice: Undefined property: stdClass::$length_units in uc_product_view() (line 793 of /home6/norther1/public_html/sites/all/modules/ubercart/uc_product/uc_product.module).

I am a first time user of Ubercart, and have followed Pete's setup videos carefully in adding it to this site.

What can I do to fix this problem? Any help is greatly appreciated!

Comments

TR’s picture

Category: Bug report » Support request
Status: Active » Fixed

To be clear, the documentation you linked to is called Understanding Product Classes and specifically does NOT say that it is instructions for "converting an existing content type to a product" - that's not what a product class is and that's not supported in general*. Product classes are derivatives of the Product node type which may have added fields, different attribute sets, different theming, and different treatment in Rules, among other things. The instructions tell you to create the product class first then customize it - if you follow those instructions then product classes work fine. (*Product classes can be made from an existing node type if, and only if, it's a type that you've created from the UI via admin/structure/types, as anything created there is not a module-provided type.)

As far a Node Convert goes, I don't use that module, but it's likely that it doesn't handle module-defined properties, and only allows you to convert fields/cck fields. The errors are because the product nodes made by the conversion aren't complete - you're missing required data. Regardless, that would be an issue with the Node Convert module. You might want to take a look at Feeds or some similar module if you have a large amount of data in existing module-provided node types that you want to bring into Ubercart.

firesidelibrarian’s picture

Hi!
Thanks for responding so quickly, and on Sunday!
I have since realized that I needed to convert the nodes from one content type to another, and then follow the instructions for making a product class from an existing node.
Sorry to bother you!
TV

Status: Fixed » Closed (fixed)

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