Patch (to be ported)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Rules
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2013 at 07:05 UTC
Updated:
26 Dec 2017 at 06:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
longwaveIf you use the "Send an order email" action in Rules you can include whatever tokens you like in the email body; [order:last-comment] will include the last comment.
Comment #2
remkovdz commentedThanks, but... is there also a suitable event to react on? There is no such thing as a "New comment entry" event?
Comment #3
longwaveOh sorry, you didn't mention you actually wanted to send the email when the comment was entered :)
Changing to a feature request.
Comment #4
remkovdz commentedOk!
Comment #5
tr commentedComment #6
tr commentedChanged title.
This is for adding a Rules Event to fire when an order comment has been added. Use cases would be to give the admin notice that the customer added a comment, or to notify the customer if the admin added a comment.
Maybe also an "Add order comment" Action so that order comments may be automatically added by Rules in response to some event (for example, changing order status to "shipped" could trigger an order comment noting that the order shipped and entering the tracking number...)
Will be working on this for D8 only.
Comment #7
tr commentedAdded "Rules" component.
Comment #8
tr commentedI see we already have an "Add an order comment" action, so that doesn't need to be done.
The attached patch just adds the "An order comment is added" Event.
Comment #10
tr commentedFunny, applied just fine on my machine...
Comment #12
tr commentedCommitted.
Comment #13
tr commentedLet me mark this for backport to 7.x-3.x. I don't have plans to work on it myself ...