4
Answers
Vote up!
0
Vote down!

Shipping services not available in rules

I am using Commerce Shipping and Commerce Flat Rate. I have set up two shipping services for which I am using rules to calculate two different shipping prices (one per shipping service). In the calculation rule for each shipping service I should set two conditions:
1. the first checking wheter the line item is of shipping type and this works;
2. the second condition should be checking the shipping service, when I set up a data comparison and select "commerce-line-item:commerce-shipping-service" as data to compare, below the data value to compare is rendered as a drop list but without any values in the list. So I am not able to complete the condition.

Any suggestion. I have checked the issue ques for both Shipping and Flat rate but didn't find anything referencing to this kind of problem.

Thanks!

Asked by: Valter Beakovic
on July 7, 2014

4 Answers

Vote up!
1
Vote down!

This is tricky. You actually have to create a condition "Entity has field" and pick "Shipping Service" for the field. And then add a "Data comparison" condition on the shipping service field.

I do this in the following video (linking to the direct section where I demonstrate this):

http://youtu.be/trLydGpimD4?t=10m7s

Josh

Josh Miller
Answer by: Josh Miller
Posted: Sep 24, 2014
Vote up!
1
Vote down!

Hello,

This is going to drive me crazy.

When I go to data comparison I set "Data to compare: commerce-line-item:commerce-shipping-service"
and in "Data value" I have no option, the field just say "select".

Do you have any idea what's going on?Any help will be life saving.

Posted: May 27, 2016
Vote up!
0
Vote down!

Same issue, the select no longer works as it is in the video - it is empty!

Answer by: bisonbleu
Posted: Jun 6, 2016
Vote up!
0
Vote down!

At the present time the only way out is to use a place holder data value e.g. [site:name], export the rule, edit the export array and replace ["site:name"] with "your_flatrate_service" and re-import the modified rule.

Answer by: bisonbleu
Posted: Jun 7, 2016