Download & Extend

Adding stock and order object to stock threshold notification for better mail customization via hook_mail_alter()

Project:Ubercart
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I am entering this feature request and patch because of what's discussed/requested in #411184: uc_stock notify seller instead of store owner on low stock threashold.

There's a hack proposed there for uc_stock.module which I rather not encourage. I was looking at alternatives way and hook_mail_alter() was the immediate thought, but then I realize I don't have all the information I need for that.

Normally I do not do this, but I really didn't try this patch, it seems like an easy harmless patch so just review for syntax errors, but otherwise, it should be straightforward to be accepted :).

Comments

#1

Status:active» needs review
AttachmentSizeStatusTest resultOperations
1127126-more-data-into-stock-threshold-emails.patch830 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 1,304 pass(es).View details

#2

Status:needs review» fixed

Thanks. Committed to 6.x-2.x and 7.x-3.x.

#3

Status:fixed» closed (fixed)

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

nobody click here