I know of several options to import/export content with Drupal Commerce:

However, for content types specifically there's a simple module doing just what we need and it is not dedicated to Drupal Commerce only but for all Drupal content types: http://drupal.org/project/bundle_copy

Drupal content types with bundle copy:

export_content_type.png

Drupal Commerce products content types don't expose import/export features from bundle copy:

store_product_export.png

I think it would be great that Commerce supports bundle copy.

Comments

rszrama’s picture

Title: Compatibility with bundle copy module » Support import / export of Commerce entity bundles
Project: Commerce Core » Bundle Copy
Component: Product » Code

This should be a feature request for that module, actually. Moving it over there. : )

fwiw, this would really only be useful for Product entity bundles right now, and even then only those that are defined by the Product UI module (i.e. stored in the database, not just defined by a module).

guy_schneerson’s picture

We have got 9 complex Product entity bundles to create with mostly common fields would have been sooo useful to have this feature.

daffodilsoftware’s picture

Assigned: Unassigned » daffodilsoftware
Status: Active » Needs review
StatusFileSize
new3.46 KB

I have created a created a module for exporting and importing the product types.So please test it.

daffodilsoftware’s picture

Hi all
Please test this patch so that we can commit this in main module

anavarre’s picture

I've just been testing with a fresh Commerce Kickstart site and it worked smoothly. As I don't have a production site running Commerce I'd defer "Review and tested by the community" to someone else.

Looks very good, though. Thanks for that!

artreaktor’s picture

Works fine! Thank you!

daffodilsoftware’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Needs review » Fixed

Hi all,
Fixed in the 7.x-2.x-dev branch.

Status: Fixed » Closed (fixed)

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

xiaodoudou’s picture

Issue summary: View changes
StatusFileSize
new3.98 KB

As a thank you for this feature, you will find in attachment a similar bundle copy sub module for the Drupal commerce line items type when you Do use the module called: Drupal Custom Product.

Enjoy it.

PS to anavarre : all credits goes to you, I did this module in 10min thanks to your work.

xiaodoudou’s picture

Status: Closed (fixed) » Needs review
fizk’s picture

Project: Bundle Copy » Bundle Copy Commerce
Version: 7.x-2.x-dev » 7.x-1.x-dev
Assigned: daffodilsoftware » Unassigned

Moving to the new Bundle Copy Commerce module.

fizk’s picture

frank hh-germany’s picture

Im using CK 2.39 and Bundle Copy Commerce is in the fresh installation not work for me.
I missing in the Produkt-Variation-Types overviewsite the im/export button.

By the way:
I export taxonomys from a old site (CK 2.39) and importet to a new site (CK 2.39) and become the following Error:

Notice: Undefined property: stdClass::$type in bundle_copy_import_process() (Zeile 345 von /homepages/.../.../htdocs/.../sites/all/modules/bundle_copy/bundle_copy.module).

Notice: Trying to get property of non-object in bundle_copy_import_process() (Zeile 362 von /homepages/.../.../htdocs/.../sites/all/modules/bundle_copy/bundle_copy.module).

frank hh-germany’s picture

Ahhh
i understand. The Product Im/Exportfunktion works over the Product management site.

For importing Prodtuct + Content types needs 2+2 steps.
1.) Ex/Import the Product types
2.) Ex/Import the Content types

Thanks for the great tool.

Now works so fine!

fizk’s picture

Status: Needs review » Closed (fixed)