Hi,

Would it be possible to add bulk order operation for sending emails? Similar VBO exists already for nodes and comments.

Thanks!

CommentFileSizeAuthor
#8 1847146-vbo-order-mail-sender.patch900 byteslongwave
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave’s picture

Do you mean send an order invoice? Or something else?

Neo13’s picture

I mean sending custom email, for example I select some orders and I want to send them email like:
Hi, I am sending you email completely independent on order status or any triggers.

longwave’s picture

Category: feature » support
Status: Active » Fixed

You can already do this. Edit the view that uses Bulk Operations, edit the Bulk Operations field, then check "Send e-mail" under "Selected operations".

Neo13’s picture

Yes, but I can not use token for order email so it really does not work... :)

longwave’s picture

You can use the [uc_order:email] token in the subject and body, but not sure why it doesn't work in the recipient. Maybe http://drupal.org/project/views_send would work better for you.

Neo13’s picture

Title: Allow [uc_order:email] token in VBO system send email action » Add order VBO send email
Category: feature » support
Priority: Minor » Normal
Status: Active » Fixed

This module does the work, but it would be nicer to use [uc_order:email] in the recipient so I do not have one extra column in view. Would that be possible? But thank you anyway, longwave! Keep up the good work!

longwave’s picture

Title: Add order VBO send email » Allow [uc_order:email] token in VBO system send email action
Category: support » feature
Priority: Normal » Minor
Status: Fixed » Active
longwave’s picture

Title: Add order VBO send email » Allow [uc_order:email] token in VBO system send email action
Category: support » feature
Priority: Normal » Minor
Status: Fixed » Needs review
FileSize
900 bytes

VBO requires that the token is [uc_order:mail]. The attached patch duplicates the [uc_order:email] token to provide this; this isn't the cleanest solution but it looks like the only way to solve this.

Neo13’s picture

Status: Needs review » Reviewed & tested by the community

It may not be the cleanest solution but it sure works fine. Thank you!

longwave’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.