Problem

It seems that some of the "Cart Item" events do not work with rules and ubercart.

To test it, a made a rule like this

{ "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!" } } ]
}
}

Whenever I try to add a new item to the cart or to update the quantity of an existing cart, no message is shown. When I delete a cart item, a message is shown to the screen.

Comments

denisr’s picture

Issue summary: View changes

improved reporting

Feet’s picture

Component: Rules Core » Rules Engine

I can confirm I've found the same

The event After deleting a cart item does work but

Cart Items
After saving a new cart item
; &
After updating an existing cart item
do not

Feet’s picture

Title: Ubercart "Cart Item" events don't work » Some "Cart Item" Rules events don't work
Project: Rules » Ubercart
Version: 7.x-2.0 » 7.x-3.1
Component: Rules Engine » Cart/checkout
Category: support » bug

I think the problem for this will be in Ubercart so changing the tags (hope that's alright).

I've looked but couldn't find the events in uc_cart.rules.inc where I thought they'd be, so I'm not much help. But will keep hunting.

Feet’s picture

Woops, have just seen #1492626: "Cart Items" triggers dont work so will return labels to how they were.

Don't mind me. Ha

Feet’s picture

Issue summary: View changes

better explanation

Feet’s picture

Title: Some "Cart Item" Rules events don't work » Ubercart "Cart Item" events don't work
Project: Ubercart » Rules
Version: 7.x-3.1 » 7.x-2.0
Component: Cart/checkout » Rules Engine
Category: bug » support

Woops, have just seen #1492626: "Cart Items" triggers dont work so will return labels to how they were.

Don't mind me. Ha

TR’s picture

Component: Rules Engine » Rules Core
Issue summary: View changes
Status: Active » Closed (outdated)