Anyway to clone the shipping services at: admin/commerce/config/shipping Is there any way to clone Flat Rates shipping services at: 'admin/commerce/config/shipping' ?

The Flat Rates are generated by these modules: commerce_shipping
and commerce_flat_rate

I need this because I need to create 50 shipping services (for the 50 Spain provinces/states).
I would do this programmatically. As you will need this to be done only once, you can just run this from devel/php or in a custom module.

Zones are just there as an example; prepare an array with two letter zone codes / some other identifier and run the same code:

$zones = range(2, 10);
foreach ($zones as $zone) {
  $shipping_service = array(
    'name'            =&gt; 'flat_rate_for_zone_' . $zone,
    'title'           =&gt; 'Title for zone ' . $zone,
    'display_title'   =&gt; 'Display title for zone ' . $zone,
    'description'     =&gt; 'Description for zone ' . $zone,
    'rules_component' =&gt; TRUE,
    'data'            =&gt; array(),
    'is_new'          =&gt; TRUE,
    'amount'          =&gt; 900,
    'currency_code'   =&gt; commerce_default_currency(),
  );
  commerce_flat_rate_service_save($shipping_service);
}


Hope this helps.