Is it possible to trigger a rules action when adding an item to the cart? I'd like to automatically flag the item when it's added to the cart.

CommentFileSizeAuthor
#3 rules-1930632-3.patch842 bytesdeciphered

Comments

katrialesser’s picture

I would really love to have this capability - is there any way to make this plug in to rules - i.e. when an item is added to the cart & if the item was ____. or just several options like 'when a book was added to the cart' and 'when a magazine was added to the cart'

I'd like to redirect from clicking the 'Add to Cart' button to specific pages according to the type of product added - that is the action I would add in rules.

Is there any way to accomplish this type of thing with views??

jenlampton’s picture

Title: Trigger Rules Action » Rules integration
Version: 7.x-2.0-rc1 » 7.x-3.x-dev
Category: Support request » Feature request
Issue summary: View changes

Rules integration is quite straightforward, but will probably need to be done on the 2.x or 3.x dev versions. Anyone working on patches?

deciphered’s picture

Status: Active » Needs review
StatusFileSize
new842 bytes

I've need for an 'empty cart' rule, so I've implemented one, super simple rules action.

I'm sure more actions, conditions and such could be added, but this at least gets this issue started.

norman.lol’s picture

Status: Needs review » Closed (outdated)

Thank you everyone for taking the time to report and discuss this issue. 🙇🏻‍♂️

As the Drupal 7 versions of this module are no longer supported, I’ll be closing this issue. 🔚

Huge thanks and credit to everyone who contributed in any way. ✨

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.