Closed (works as designed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Product
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2011 at 12:34 UTC
Updated:
24 Feb 2011 at 13:01 UTC
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).
| Comment | File | Size | Author |
|---|---|---|---|
| Screen shot 2011-02-24 at 12.28.26 PM.png | 30.31 KB | aidanlis | |
| Screen shot 2011-02-24 at 12.27.34 PM.png | 44.49 KB | aidanlis |
Comments
Comment #1
pcambraYou 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