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.
Not all events from entity_rules_event_info() are triggered correctly. For example for uc_cart module from ubercart the following events are defined by entity_rules_event_info()
uc_cart_item_insert [FAILED]
uc_cart_item_update [FAILED]
uc_cart_item_presave [FAILED]
uc_cart_item_delete [OK]
To reproduce this error use the following rule:
{ "rules_alter_product_quantity" : {
"LABEL" : "TEST UBERCART RULE",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules", "entity" ],
"ON" : [ "uc_cart_item_insert", "uc_cart_item_delete" ],
"DO" : [ { "drupal_message" : { "message" : "IT WORKS!" } } ]
}
}
Change the rule to react on above events. Only the delete event is working.
Original thread here: #1492626: "Cart Items" triggers dont work
Comments
Comment #1
SilviuChingaru CreditAttribution: SilviuChingaru commentedThe problem is from Ubercart uc_cart module so no bug in entity module. Sorry for these Issue.