We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e129c commit 394e83dCopy full SHA for 394e83d
promotions/app/models/solidus_promotions/conditions/line_item_option_value.rb
@@ -10,7 +10,7 @@ class LineItemOptionValue < Condition
10
11
def line_item_eligible?(line_item, _options = {})
12
pid = line_item.product.id
13
- ovids = line_item.variant.option_values.pluck(:id)
+ ovids = line_item.variant.option_value_ids
14
15
product_ids.include?(pid) && (value_ids(pid) & ovids).present?
16
end
0 commit comments