Closed (cannot reproduce)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Product
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2011 at 17:34 UTC
Updated:
2 May 2012 at 03:06 UTC
If I declare a product as so:
function rooms_booking_commerce_product_type_info() {
return array(
array(
'type' => 'booking1',
'name' => t('Booking1'),
'description' => 'A booking sale',
'help' => '',
),
);
}
when I update the Product Types page (and clear the cache) I see the type with no links (see first image).
If I go into another type, save and exit the fields come up.
If I go in to manage fields I get:
Notice: Undefined index: admin in _field_ui_bundle_admin_path() (line 310 of ../modules/field_ui/field_ui.module).
Also in the URL:
admin/commerce/products/types/0/fields
i.e. 0 rather than bundle name.
Haven't investigated further but will be doing so. In the meantime it seems the only reliable way to create a product type is via commerce_product_ui_product_type_new
| Comment | File | Size | Author |
|---|---|---|---|
| product_type2.png | 42.33 KB | ronald_istos | |
| product_type1.png | 34 KB | ronald_istos |
Comments
Comment #1
fredericXavier commentedHi ronald_istos,
Firstly, for see the link, you must clear the cache two times (problem with a cache)
And Secondly, attention at the declaration of you product, he missing the key, the correct syntax is:
If you try this, it should work!
Comment #2
mr.baileysThere is no patch for review here, setting back to active.
Comment #3
mr.baileysI'm no longer able to reproduce this with 7.x-1.x-dev. Product types added using hook_commerce_product_type_info() show up with the "manage fields" and "manage display" immediately, without the need to clear the cache.
Please re-open if you are still encountering problems.