Before I spend another couple of hours around this bugger I better ask the community. I try to setup flat rate shipping rules which I already used in an earlier dev state of commerce kickstart. I had to setup the store from the start again with CK 2.0-rc2 because of several reasons, and now I'm stuck..

I created a flat rate shipping service which works like expected. On shipping page in checkout I see the service with correct amount.
Next I create a condition to use this service only for shipping to Germany, but it's never set to TRUE. I don't see a mistake and as said before, I used this method in commerce kickstart 2.0-beta1.
This is the rule:

{ "commerce_shipping_service_versand_d" : {
    "LABEL" : "Rate Versand D",
    "PLUGIN" : "rule",
    "REQUIRES" : [ "commerce_order", "devel", "commerce_shipping" ],
    "USES VARIABLES" : { "commerce_order" : { "label" : "Order", "type" : "commerce_order" } },
    "IF" : [
      { "commerce_order_compare_address" : {
          "commerce_order" : [ "commerce_order" ],
          "address_field" : "commerce_customer_shipping|commerce_customer_address",
          "address_component" : "country",
          "value" : "DE"
        }
      }
    ],
    "DO" : [
      { "devel_debug" : { "value" : [ "commerce-order" ] } },
      { "commerce_shipping_service_rate_order" : {
          "shipping_service_name" : "versand_d",
          "commerce_order" : [ "commerce-order" ]
        }
      }
    ]
  }
}

Deleting the condition and checking with devel I can see there is a commerce_customer_shipping-array with a profile_id.

What am I doing wrong?
I hope someone can help me. The shop is almost ready to go. Thanx.

Comments

lsolesen’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please try with the latest dev?

lsolesen’s picture

Status: Postponed (maintainer needs more info) » Fixed

Closing for inactivity.

Status: Fixed » Closed (fixed)

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