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?

CommentFileSizeAuthor
#3 commerce-features-integration.patch7.45 KBdas-peter

Comments

rszrama’s picture

Indeed, 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.

pvhee’s picture

Interested 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!

das-peter’s picture

Status: Active » Needs review
Issue tags: +dcsprint5
StatusFileSize
new7.45 KB

I'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.

rszrama’s picture

Title: Make product types exportable using Features » Make product types (and more) exportable using Features
Component: Commerce » Contributed modules
Status: Needs review » Needs work

Discussed 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...

pcambra’s picture

I'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

pcambra’s picture

Project: Commerce Core » Commerce Features
Component: Contributed modules » Code
Issue tags: -features, -dcsprint5

Moving issue to commerce features module

thill_’s picture

Title: Make product types (and more) exportable using Features » Make product types exportable using Features
Status: Needs work » Fixed

This module is creating product types just fine, lets more the (and more) to individual issues.

Status: Fixed » Closed (fixed)

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