If I create two product types on admin/commerce/products/types, then try and add a rule the line-item:type does not show both products.

(Trying to handle the conditional australian tax by having two products for each item).

Comments

pcambra’s picture

Status: Active » Closed (works as designed)

You can't do this directly as the line item type that you are comparing is not the real product type but the generic line item type "product"

If you want to compare the actual product type in rules starting from line item entity, you have to load it first in the condition using "Entity has field" and selecting the field commerce product.
Then you need to add an additional condition "Data comparison", and the product entity should be available through the line item in a chain similar to line-item:commerce-product:type