Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a lot of shipping rules using "Order has a specific quantity of products" condition to see if the products will fit in a small package for shipping. With the latest update of this module, all of those rules no longer worked.
I wanted to post the fix here in case anyone comes looking.
You have to enable the Commerce Discount module in order for these conditions to be available in Rules. I don't use this module so it was disabled on my build.
Comments
Comment #1
zmove CreditAttribution: zmove commentedSame problem here, it seems related to #2500407: function '_inline_conditions_operator_options' not found. The original post is for commerce discount but I think the issue is more related to inline condition.
As it break all rules operator, I think it can be considered as critical.
Comment #2
jkuma CreditAttribution: jkuma as a volunteer commentedHello,
I'm currently quite busy and i'll do my best to jump into this issue this afternoon. Since the business rules have moved to commerce_discount, this function might have been removed during the migration. You can try to reimplement that function into inline_conditions own rules files in order to attempt resolving this issue.
Comment #3
jkuma CreditAttribution: jkuma as a volunteer commentedComment #4
jkuma CreditAttribution: jkuma as a volunteer commentedThis issue has been tackled and fixed by joelpittet and I from issue #2534972: Rules lost its operator with the latest update. So this issue is no longer in effect and must be updated to fixed. Please feel free to re-open it if you are still encountering that kind of problem.