Page 1 of 1
warehouse alert email
Posted: Mon Mar 09, 2009 3:33 pm
by ryanstowasser
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 ?
Re: warehouse alert email
Posted: Wed Mar 11, 2009 1:52 pm
by ryanstowasser
bump.
I'm still looking for a way to send emails to the relavent warehouse when an order is placed.
Thanks.

Re: warehouse alert email
Posted: Wed Mar 11, 2009 2:40 pm
by nickc
If the warehouse id is arbitrary or external, you can get hold of the email this way:
Code: Select all
#set ($foo = YourWarehouseIdValue + 0 )
$store.Warehouses.get_item($store.Warehouses.IndexOf($foo)).Email
If you have a shipment object available, use:
Re: warehouse alert email
Posted: Wed Mar 11, 2009 2:58 pm
by nickc
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:
Code: Select all
EmailTemplate message = new EmailTemplate();
message.Load(messageId);
message.AddToAddress(email);
message.Parameters["templateparameter"] = value;
message.Send();
In this example, "$templateparameter" in the email template would evaluate to the assignment above.
Re: warehouse alert email
Posted: Sat Apr 04, 2009 4:46 pm
by hbcondo
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?