This module assumes that an order is coming through a checkout process since the default Rule action is on Commerce Checkout Complete (commerce_checkout_complete).

Ideally, it should execute on Order Insert, Order Update, and Order Delete.
This way the contribution record is kept in sync with the Commerce Purchase.

thanks!

CommentFileSizeAuthor
#1 rule-1896936-1.patch829 bytesdavidwbarratt

Comments

davidwbarratt’s picture

Status: Active » Needs review
StatusFileSize
new829 bytes

Attached is a patch that changes the default actions so they align with Order Insert, Order Update, and Order Delete.

thanks!

muhleder’s picture

Issue summary: View changes
Status: Needs review » Fixed

Ok, this looks good. I'm going to commit it but might back it out if we see issues with it.

muhleder’s picture

Status: Fixed » Closed (won't fix)

Actually, going to back this one out. It means the order is processed multiple times if another module saves the order on insert etc.

muhleder’s picture

Would rather see this using hooks rather than rules in any case.