Download & Extend

Commerce shipping exportables with commerce features

Project:Commerce features
Version:7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

Are there any plans to add support for exporting shipping services to this module, or would this need to be added in the Commerce Shipping module?

Comments

#1

Features integration for Shipping is in the scope of this module, could you please specify what components you can't export?

#2

I am using commerce_flat_rate, the services that I have created for this shipping method, and the associated rules, do not appear to be exportable.

#3

Status:active» needs review

Should we change the title to "Commerce flat rate exportable with commerce features" ? or something like that ?

here is a patch to allow commerce_flat_rate (and only that) to be exported in commerce_features.

AttachmentSize
export_flat_rate_commerce_features.patch 4.16 KB

#4

Forgot to reset the shippings_services when we rebuild the features (the methods don't show unless we clear cache)

AttachmentSize
1402762_export_flat_rate_commerce_features-4.patch 4 KB

#5

Status:needs review» needs work

I'd rather see a generic shipping export instead of having a file per service.

#6

This is #4 + the same fix I added to other files in #1572330: Don't cause excessive cache and menu rebuilds.

I will reroll to address feedback soon.

AttachmentSize
1402762_export_flat_rate_commerce_features-6.patch 4.08 KB

#7

Another try. Changed the default hooks used, from 'commerce_flat_rate_default_services' to 'commerce_shipping_service' and also add a key in the export that is generated to be able to identity this export as a features one. (that will help in an other path for commerce_shipping to not throw some code if we are importing a features - but not sure this is a correct approach)

AttachmentSize
1402762_export_flat_rate_commerce_features-7.patch 4.14 KB
nobody click here