Warehouses have email addresses that are editable through the administration. How do I set up an order email alert to be sent when an order is placed that ships through a specific warehouse?
The keywords in the email template are customer and vendor, but could I add $warehouse.email ?
warehouse alert email
- ryanstowasser
- Lieutenant Commander (LCDR)
- Posts: 90
- Joined: Tue Oct 30, 2007 4:28 pm
- Contact:
warehouse alert email
Ryan Stowasser (ablehelp@vortx.com)
Vortx Inc
Custom Development for AbleCommerce Solutions
Vortx is an AbleCommerce Development Partner
Vortx Inc
Custom Development for AbleCommerce Solutions
Vortx is an AbleCommerce Development Partner
- ryanstowasser
- Lieutenant Commander (LCDR)
- Posts: 90
- Joined: Tue Oct 30, 2007 4:28 pm
- Contact:
Re: warehouse alert email
bump.
I'm still looking for a way to send emails to the relavent warehouse when an order is placed.
Thanks.
I'm still looking for a way to send emails to the relavent warehouse when an order is placed.
Thanks.

Ryan Stowasser (ablehelp@vortx.com)
Vortx Inc
Custom Development for AbleCommerce Solutions
Vortx is an AbleCommerce Development Partner
Vortx Inc
Custom Development for AbleCommerce Solutions
Vortx is an AbleCommerce Development Partner
Re: warehouse alert email
If the warehouse id is arbitrary or external, you can get hold of the email this way:
If you have a shipment object available, use:
Code: Select all
#set ($foo = YourWarehouseIdValue + 0 )
$store.Warehouses.get_item($store.Warehouses.IndexOf($foo)).Email
Code: Select all
$shipment.Warehouse.Email
Nick Cole
http://www.ethofy.com
http://www.ethofy.com
Re: warehouse alert email
Hmm. Might have misread your intent. You could inject some code into the "CheckedOut" method of OnePageCheckout.ascx.cs. You'd load the order, iterate each shipment (where you can read the warehouse email) and send mail. Able's email templating is available in CommerceBuilder.Messaging:
In this example, "$templateparameter" in the email template would evaluate to the assignment above.
Code: Select all
EmailTemplate message = new EmailTemplate();
message.Load(messageId);
message.AddToAddress(email);
message.Parameters["templateparameter"] = value;
message.Send();
Nick Cole
http://www.ethofy.com
http://www.ethofy.com
Re: warehouse alert email
Hi, I am running AbleCommerce 7.0.2 build 11659 and I don't see a way to notify a warehouse via e-mail that an order has been placed. Other than using the code shown in the forum post, shouldn't there be a way to configure this in the admin tool?