Features module allows extracting content type definitions into a module. However, from product types only separate fields can be exported.
I guess there should be a unified way for "featuring" entities be it content type or product type or any other.
What does the community think?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | commerce-features-integration.patch | 7.45 KB | das-peter |
Comments
Comment #1
rszrama commentedIndeed, this should be done. If I'm not mistaken, we had some code from das-peter for a while, but when I changed the way the Product module defined product types (i.e. all through hook_commerce_product_info()) I'm not sure the patch was updated.
Comment #2
pvhee commentedInterested in this as well. Eventually the commerce distributions (e.g. https://github.com/rszrama/commercedev) could be a series of features instead of the currently "old-style" profiles. How high is this on the feature list? Anyways, great work so far with the commerce module!
Comment #3
das-peter commentedI've already written an integration for product types and customer profiles.
But since the sprint could bring some essential changes with the EntityController the attached patch could be outdated very soon.
Comment #4
rszrama commentedDiscussed some issues with this patch with Tim last week and it needs some work to be brought up to date. Additionally, exportable product types are defined by the Product UI module, so I'm guessing the function names may need to be changed. I think I really favor having a Commerce Features project that can mature on a separate timeline from core...
Comment #5
pcambraI've just created a module integrating features for commerce product types: http://drupal.org/project/commerce_features, I'm moving this issue to the queue of that project to provide customer features as well as soon as the release gets created
Comment #6
pcambraMoving issue to commerce features module
Comment #7
thill_ commentedThis module is creating product types just fine, lets more the (and more) to individual issues.