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

SilviuChingaru’s picture

Status: Active » Closed (works as designed)

The problem is from Ubercart uc_cart module so no bug in entity module. Sorry for these Issue.