As Gregory reported in this comment, it's already possible to turn an existing node type into a product class by specifying the same machine readable name. This is great, except that it's not apparent on that form at all. It would be great to have a simple form with a select list and a "Make product class" button that let you turn any existing node types that aren't already product classes into a product class. To be honest, this page itself really needs to be reworked so classes are added on a separate page, but that's an issue for another day... it just might be hard to fit this form in that already busy page.

Comments

GregoryHeller’s picture

I would suggest that at "/admin/store/products/classes" instead of having the "Add class" form right there, there should be two options "add a new class" and "add class from existing cck content type", each option would take the user to a different form, the form for adding a new class would be essentially the same as what exists on the current page, the form for "add from existing" would offer a drop down list of cck types, or would show a list of all cck types with their description, a link to edit them, and a link to "enable as class"

I'd also suggest that it could be good to add a form element on the edit cck type page, similar to how modules like content profile and location add form elements there.

kiwad’s picture

Ive being trying to have an existing CCK node type to be a product.

Doing as it is mentionned above, I get a warning

user warning: Duplicate entry 'node_type_example-2' for key 'PRIMARY' query: INSERT INTO vocabulary_node_types (vid, type) VALUES (2, 'node_type_example') in /sites/all/modules/contrib/ubercart/uc_catalog/uc_catalog.module on line 606.

tr’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev

New features should go into 7.x-3.x first.

tr’s picture

Issue tags: +Novice

Tagging.