hi

I add a taxonomy field with 2 term A and B to line item type of the product.

and I set a rule:

event:
Calculating the sell price of a product

Conditions:
Data comparison
Parameter: Data to compare: [commerce-line-item:quantity], Operator: is greater than, Data value: 3
Line item contains a specific product type
Parameter: Line item: [commerce_line_item], Type: category1

Actions:
Multiply the unit price by some amount
Parameter: Line item: [commerce_line_item], Amount: 0.88, Price component type: Discount

how can I add this condition to it?
condition:
if user select A taxonomy in line item.

please help me

Comments

TR’s picture

Status: Active » Fixed
Issue tags: -line item field

If your line_item object has a taxonomy field, then you can just use the data_comparison condition to test the value of that taxonomy term. If it's more involved than that, then you need to ask your question in the Commerce issue queue.

TR’s picture

Status: Fixed » Closed (fixed)