Different Order Emails for Anonymous?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
sweeperq
Commodore (COMO)
Commodore (COMO)
Posts: 497
Joined: Tue Jan 03, 2006 2:45 pm

Different Order Emails for Anonymous?

Post by sweeperq » Mon Nov 21, 2011 10:33 am

Is there a way to send a different Order Confirmation email for users that decided to place their orders anonymously (choose not to provide a password)? We've had a couple of people place anonymous orders, then try to view the order status online using the link in the email. Well, they don't have an account so there is no way for them to check the order status online. We'd like to simply omit the order status row from the email for anonymous users.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Different Order Emails for Anonymous?

Post by AbleMods » Tue Nov 29, 2011 11:16 pm

Wow old post and should have been answered long ago.

Just edit the email template and add a #IF (!$user.IsAnonymous) section that encloses the order-status row. That should prevent the row from rendering in the email if the user is anonymous.

Check out other email templates to see examples of how IF statements are handled. If the syntax is off by a single character, it'll blow up the whole email.

You can test email templates by clicking the address on the View Order page of any order. There's a Preview and Send button that let's you render the email to the screen before it ever gets emailed.

Don't use the AC7 HTML editor to edit email templates either. Tends to mess them up. Use a regular text editor and copy/paste to get done what you need.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

sweeperq
Commodore (COMO)
Commodore (COMO)
Posts: 497
Joined: Tue Jan 03, 2006 2:45 pm

Re: Different Order Emails for Anonymous?

Post by sweeperq » Thu Dec 01, 2011 3:44 pm

Don't know how I overlooked that one. Thanks Joe.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Different Order Emails for Anonymous?

Post by AbleMods » Thu Dec 01, 2011 3:51 pm

If I had but only a nickel every time I said that to myself........
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply