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.
Hi i have issue for commerce kickstart, this is related with Rules UI
http://drupal.org/node/1926718
When editing rule for commerce line item quantity condition data compare using operator is one of
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'RulesDataUI' does not have a method 'render' in RulesPluginUI->buildContent() (line 716 of C:\mynginx\mysite\profiles\commerce_kickstart\modules\contrib\rules\ui\ui.core.inc).
I'm successfully creating rules via copy paste rule configuration (Rules Import) but when editing the rule always show up that error. The rule is working fine but cannot edit via Rules UI or Product Pricing Rules
Im using Commerce Kickstart 2.0
Maybe similiar case with this link
http://www.drupalcommerce.org/discussions/3907/error-predefined-pricing-...
My Rule configuration:
{ "rules_con_postal_2960_3670_qty_even" : {
"LABEL" : "Container Postal Code 2960-3670 Qty Even",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules", "commerce_line_item", "commerce_product_reference" ],
"ON" : [ "commerce_product_calculate_sell_price" ],
"IF" : [
{ "entity_has_field" : { "entity" : [ "commerce-line-item" ], "field" : "field_post_code" } },
{ "data_is" : {
"data" : [ "commerce-line-item:field-post-code" ],
"op" : "IN",
"value" : { "value" : [ "2960", "2961", "3670" ] }
}
},
{ "data_is" : {
"data" : [ "commerce-line-item:quantity" ],
"op" : "IN",
"value" : { "value" : [ 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 ] }
}
}
],
"DO" : [
{ "commerce_line_item_unit_price_amount" : {
"commerce_line_item" : [ "commerce_line_item" ],
"amount" : "70000",
"component_name" : "base_price",
"round_mode" : "1"
}
}
]
}
}
Thanks
Comments
Comment #1
lsolesen CreditAttribution: lsolesen commentedCould you please try with 2.13?
Comment #2
lsolesen CreditAttribution: lsolesen commentedClosed for inactivity.