Drupal 7, Commerce
The Setup: A store with two products. They are a shippable item and a gift certificate.
The shippable item has a number of shipping options available.
Gift certificates have free shipping, and always go via first class mail.
I added a 'free shipping' shipping method. Unfortunately this always shows up in all checkouts, so someone could order a hundred shippable items and then select free shipping.
When I 'configure component' for the free shipping method, it lets me define a rule as to how this method is applied.
In this rule, I need to make a loop that goes through all line items, and if there are only products marked with a field called 'field_free_shipping', then show this method.
However.... Rules sucks. :-) I can make a loop, but then I can't ask it about the product node or the field.
What am I doing wrong? Any assistance appreciated.
I'll be adding a bounty to this question when it becomes eligible.