Active
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Mar 2009 at 06:15 UTC
Updated:
5 Feb 2012 at 01:44 UTC
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
Comment #1
GregoryHeller commentedI 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.
Comment #2
kiwad commentedIve 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.
Comment #3
tr commentedNew features should go into 7.x-3.x first.
Comment #4
tr commentedTagging.