Commit 0dd17c05 authored by Matt Glaman's avatar Matt Glaman

Issue #2317105: Flat rate rules components are not exportable with features

parent 9c9f9043
......@@ -26,8 +26,7 @@ projects[views_megarow][version] = 1.4
; Drupal Commerce and Commerce contribs.
projects[commerce][version] = 1.11
projects[commerce_features][version] = 1.0
projects[commerce_features][patch][] = "http://drupal.org/files/1402762_export_flat_rate_commerce_features-6.patch"
projects[commerce_features][version] = 1.1
projects[commerce_addressbook][version] = 2.0-rc8
projects[commerce_shipping][version] = 2.2
projects[commerce_flat_rate][version] = 1.0-beta2
......
......@@ -33,6 +33,7 @@ function commerce_kickstart_product_commerce_flat_rate_default_services() {
),
'data' => array(),
'admin_list' => TRUE,
'is_features' => TRUE,
),
'free_shipping' => array(
'name' => 'free_shipping',
......@@ -58,6 +59,7 @@ function commerce_kickstart_product_commerce_flat_rate_default_services() {
),
'data' => array(),
'admin_list' => TRUE,
'is_features' => TRUE,
),
'standard_shipping' => array(
'name' => 'standard_shipping',
......@@ -83,6 +85,7 @@ function commerce_kickstart_product_commerce_flat_rate_default_services() {
),
'data' => array(),
'admin_list' => TRUE,
'is_features' => TRUE,
),
);
return $items;
......
......@@ -145,9 +145,6 @@ features[node][] = hats
features[node][] = shoes
features[node][] = storage_devices
features[node][] = tops
features[rules_config][] = commerce_flat_rate_services_express_shipping
features[rules_config][] = commerce_flat_rate_services_free_shipping
features[rules_config][] = commerce_flat_rate_services_standard_shipping
features[rules_config][] = commerce_shipping_service_express_shipping
features[rules_config][] = commerce_shipping_service_free_shipping
features[rules_config][] = commerce_shipping_service_standard_shipping
......
......@@ -28,16 +28,8 @@ function commerce_kickstart_product_default_rules_configuration() {
"LABEL" : "Rate Free Shipping",
"PLUGIN" : "rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "commerce_shipping" ],
"USES VARIABLES" : { "commerce_order" : { "label" : "Order", "type" : "commerce_order" } },
"IF" : [
{ "NOT data_is" : {
"data" : [ "commerce-order:commerce-order-total:amount" ],
"op" : "\\u003C",
"value" : "9999"
}
}
],
"REQUIRES" : [ "commerce_shipping" ],
"USES VARIABLES" : { "commerce_order" : { "type" : "commerce_order", "label" : "Order" } },
"DO" : [
{ "commerce_shipping_service_rate_order" : {
"shipping_service_name" : "free_shipping",
......@@ -51,16 +43,8 @@ function commerce_kickstart_product_default_rules_configuration() {
"LABEL" : "Rate Standard Shipping",
"PLUGIN" : "rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "commerce_shipping" ],
"REQUIRES" : [ "commerce_shipping" ],
"USES VARIABLES" : { "commerce_order" : { "type" : "commerce_order", "label" : "Order" } },
"IF" : [
{ "data_is" : {
"data" : [ "commerce-order:commerce-order-total:amount" ],
"op" : "\\u003C",
"value" : "9999"
}
}
],
"DO" : [
{ "commerce_shipping_service_rate_order" : {
"shipping_service_name" : "standard_shipping",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment